Class: KeepAwakeAction
- Inherits:
-
ScreenAction
- Object
- MacroObject
- Action
- ScreenAction
- KeepAwakeAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Screen
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ KeepAwakeAction
constructor
A new instance of KeepAwakeAction.
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ KeepAwakeAction
Returns a new instance of KeepAwakeAction.
2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 |
# File 'lib/ruby-macrodroid.rb', line 2862 def initialize(h={}) = { enabled: true, permanent: true, screen_option: 0, seconds_to_stay_awake_for: 0 } super(.merge h) end |