Class: ScreenOnOffTrigger

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

Overview

Category: Device Events

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

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.



2019
2020
2021
2022
2023
2024
2025
2026
2027
# File 'lib/ruby-macrodroid.rb', line 2019

def initialize(h={})

  options = {
    screen_on: true
  }

  super(options.merge h)

end