Class: CameraFlashLightAction
- Inherits:
-
DeviceSettingsAction
- Object
- MacroObject
- Action
- DeviceSettingsAction
- CameraFlashLightAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device Settings
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ CameraFlashLightAction
constructor
A new instance of CameraFlashLightAction.
- #to_pc ⇒ Object
- #to_s ⇒ Object
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ CameraFlashLightAction
Returns a new instance of CameraFlashLightAction.
3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 |
# File 'lib/ruby-macrodroid.rb', line 3075 def initialize(h={}) = { launch_foreground: false, state: 0 } super(.merge h) end |
Instance Method Details
#to_pc ⇒ Object
3086 3087 3088 |
# File 'lib/ruby-macrodroid.rb', line 3086 def to_pc() 'torch :on' end |
#to_s ⇒ Object
3090 3091 3092 |
# File 'lib/ruby-macrodroid.rb', line 3090 def to_s() 'Torch On' end |