Class: AirplaneModeTrigger

Inherits:
Trigger 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 MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ AirplaneModeTrigger

Returns a new instance of AirplaneModeTrigger.



1201
1202
1203
1204
1205
1206
1207
1208
1209
# File 'lib/ruby-macrodroid.rb', line 1201

def initialize(h={})

  options = {
    airplane_mode_enabled: true
  }

  super(options.merge h)

end