Class: AirplaneModeTrigger

Inherits:
DeviceEventsTrigger show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Device Events

Airplane Mode Changed

options:

Airplane Mode Enabled
Airplane Mode Disabled

shorthand example:

airplanemode: enabled

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ AirplaneModeTrigger

Returns a new instance of AirplaneModeTrigger.



1870
1871
1872
1873
1874
1875
1876
1877
1878
# File 'lib/ruby-macrodroid.rb', line 1870

def initialize(h={})

  options = {
    airplane_mode_enabled: true
  }

  super(options.merge h)

end