Class: SwipeTrigger

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

Overview

Category: User Input

Instance Attribute Summary

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 = {}) ⇒ SwipeTrigger

Returns a new instance of SwipeTrigger.



2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
# File 'lib/ruby-macrodroid.rb', line 2130

def initialize(h={})

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

  super(options.merge h)

end