Class: ProximityTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ ProximityTrigger

Returns a new instance of ProximityTrigger.



1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
# File 'lib/ruby-macrodroid.rb', line 1213

def initialize(h={})

  options = {
    near: true,
    selected_option: 0
  }

  super(options.merge h)

end