Added in API level 33
  
  
  
  
  
   
  
  
  
  
Capability.Builder
  public
  static
  final
  
  class
  Capability.Builder
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.content.pm.Capability.Builder | 
Builder class for Capability.
Summary
Public constructors | |
|---|---|
      
      Builder(String name)
      
      
        Constructor.  | 
  |
Public methods | |
|---|---|
        
        
        
        
        
        Capability
     | 
  
    
      
      build()
      
      
        Creates an instance of   | 
  
Inherited methods | |
|---|---|
Public constructors
Builder
    Added in API level 33
  
      
  
    public Builder (String name)
Constructor.
| Parameters | |
|---|---|
name | 
        
          String: Name of the capability, usually maps to a built-in intent,
            e.g. actions.intent.GET_MESSAGE. Note the character "/" is not permitted.
 This value cannot be null. | 
      
| Throws | |
|---|---|
IllegalArgumentException | 
          If specified capability name contains the character "/". | 
Public methods
build
    Added in API level 33
  
      
  
    public Capability build ()
Creates an instance of Capability
| Returns | |
|---|---|
Capability | 
        This value cannot be null. |