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 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.
2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 |
# File 'lib/ruby-macrodroid.rb', line 2832 def initialize(h={}) = { launch_foreground: false, state: 0 } super(.merge h) end |
Instance Method Details
#to_pc ⇒ Object
2843 2844 2845 |
# File 'lib/ruby-macrodroid.rb', line 2843 def to_pc() 'torch :on' end |
#to_s ⇒ Object
2847 2848 2849 |
# File 'lib/ruby-macrodroid.rb', line 2847 def to_s() 'Torch On' end |