Class: SetKeyguardAction

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

Overview

Category: Device Settings

Instance Attribute Summary

Attributes inherited from Action

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SetKeyguardAction

Returns a new instance of SetKeyguardAction.



3628
3629
3630
3631
3632
3633
3634
3635
3636
# File 'lib/ruby-macrodroid.rb', line 3628

def initialize(h={})

  options = {
    keyguard_on: true
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



3638
3639
3640
# File 'lib/ruby-macrodroid.rb', line 3638

def to_s(colour: false)
  'SetKeyguardAction ' + @h.inspect
end