Class: CameraFlashLightAction

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

Overview

Category: Device Settings

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ CameraFlashLightAction

Returns a new instance of CameraFlashLightAction.



2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
# File 'lib/ruby-macrodroid.rb', line 2735

def initialize(h={})

  options = {
    launch_foreground: false,
    state: 0
  }

  super(options.merge h)

end

Instance Method Details

#to_pc ⇒ Object



2746
2747
2748
# File 'lib/ruby-macrodroid.rb', line 2746

def to_pc()
  'torch :on'
end

#to_s ⇒ Object



2750
2751
2752
# File 'lib/ruby-macrodroid.rb', line 2750

def to_s()
  'Torch On'
end