Class: KeepAwakeAction

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ KeepAwakeAction

Returns a new instance of KeepAwakeAction.



2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
# File 'lib/ruby-macrodroid.rb', line 2398

def initialize(h={})

  options = {
    enabled: true,
    permanent: true,
    screen_option: 0,
    seconds_to_stay_awake_for: 0
  }

  super(options.merge h)

end