Class: Google::Apis::AndroidmanagementV1::PersistentPreferredActivity
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidmanagementV1::PersistentPreferredActivity
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidmanagement_v1/classes.rb,
 generated/google/apis/androidmanagement_v1/representations.rb,
 generated/google/apis/androidmanagement_v1/representations.rb
Overview
A default activity for handling intents that match a particular intent filter.
Instance Attribute Summary collapse
- 
  
    
      #actions  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The intent actions to match in the filter. 
- 
  
    
      #categories  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The intent categories to match in the filter. 
- 
  
    
      #receiver_activity  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The activity that should be the default intent handler. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PersistentPreferredActivity 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PersistentPreferredActivity. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PersistentPreferredActivity
Returns a new instance of PersistentPreferredActivity
| 1605 1606 1607 | # File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1605 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#actions ⇒ Array<String>
The intent actions to match in the filter. If any actions are included in the
filter, then an intent's action must be one of those values for it to match.
If no actions are included, the intent action is ignored.
Corresponds to the JSON property actions
| 1586 1587 1588 | # File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1586 def actions @actions end | 
#categories ⇒ Array<String>
The intent categories to match in the filter. An intent includes the
categories that it requires, all of which must be included in the filter in
order to match. In other words, adding a category to the filter has no impact
on matching unless that category is specified in the intent.
Corresponds to the JSON property categories
| 1594 1595 1596 | # File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1594 def categories @categories end | 
#receiver_activity ⇒ String
The activity that should be the default intent handler. This should be an
Android component name, e.g. com.android.enterprise.app/.MainActivity.
Alternatively, the value may be the package name of an app, which causes
Android Device Policy to choose an appropriate activity from the app to handle
the intent.
Corresponds to the JSON property receiverActivity
| 1603 1604 1605 | # File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1603 def receiver_activity @receiver_activity end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1610 1611 1612 1613 1614 | # File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1610 def update!(**args) @actions = args[:actions] if args.key?(:actions) @categories = args[:categories] if args.key?(:categories) @receiver_activity = args[:receiver_activity] if args.key?(:receiver_activity) end |