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.



2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
# File 'lib/ruby-macrodroid.rb', line 2657

def initialize(h={})

  options = {
    launch_foreground: false,
    state: 0
  }

  super(options.merge h)

end

Instance Method Details

#to_pcObject



2668
2669
2670
# File 'lib/ruby-macrodroid.rb', line 2668

def to_pc()
  'torch :on'
end

#to_sObject



2672
2673
2674
# File 'lib/ruby-macrodroid.rb', line 2672

def to_s()
  'Torch On'
end