Class: SwipeTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SwipeTrigger

Returns a new instance of SwipeTrigger.



1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
# File 'lib/ruby-macrodroid.rb', line 1340

def initialize(h={})

  options = {
    swipe_start_area: 0,
    swipe_motion: 0,
    cleared: true
  }

  super(options.merge h)

end