Class: UIInteractionAction

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

Overview

Category: Device Actions

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 = {}) ⇒ UIInteractionAction

Returns a new instance of UIInteractionAction.



3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
# File 'lib/ruby-macrodroid.rb', line 3415

def initialize(h={})

  options = {
    ui_interaction_configuration: {:type=>"Copy"},
    action: 2
  }

  super(options.merge h)

end

Instance Method Details

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



3426
3427
3428
# File 'lib/ruby-macrodroid.rb', line 3426

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