Class: FlipDeviceTrigger

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



1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
# File 'lib/ruby-macrodroid.rb', line 1550

def initialize(h={})

  options = {
    any_start: false,
    face_down: true,
    work_with_screen_off: false
  }

  super(options.merge h)

end