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, #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.



1786
1787
1788
1789
1790
1791
1792
1793
1794
# File 'lib/ruby-macrodroid.rb', line 1786

def initialize(h={})

  options = {
    airplane_mode_enabled: true
  }

  super(options.merge h)

end