Class: ScreenOnOffTrigger

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

Overview

Category: Device Events

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

Returns a new instance of ScreenOnOffTrigger.



1323
1324
1325
1326
1327
1328
1329
1330
1331
# File 'lib/ruby-macrodroid.rb', line 1323

def initialize(h={})

  options = {
    screen_on: true
  }

  super(options.merge h)

end