Class: ScreenOnOffTrigger

Inherits:
DeviceEventsTrigger 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, #to_s

Constructor Details

#initialize(h = {}) ⇒ ScreenOnOffTrigger

Returns a new instance of ScreenOnOffTrigger.



1949
1950
1951
1952
1953
1954
1955
1956
1957
# File 'lib/ruby-macrodroid.rb', line 1949

def initialize(h={})

  options = {
    screen_on: true
  }

  super(options.merge h)

end