Class: UIInteractionAction

Inherits:
DeviceAction show all
Defined in:
lib/ruby-macrodroid/actions.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.



797
798
799
800
801
802
803
804
805
806
# File 'lib/ruby-macrodroid/actions.rb', line 797

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



808
809
810
# File 'lib/ruby-macrodroid/actions.rb', line 808

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