Class: OrientationTrigger

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

Overview

Category: Sensors

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

Returns a new instance of OrientationTrigger.



1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
# File 'lib/ruby-macrodroid.rb', line 1484

def initialize(h={})

  options = {
    check_orientation_alive: true,
    option: 0
  }

  super(options.merge h)

end