class WidgetPressedTrigger
Category: User Input
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Trigger::new
# File lib/ruby-macrodroid/triggers.rb, line 1830 def initialize(h={}) options = { :swipe_start_area=>0, :swipe_motion=>0, :cleared=>true, :image_id=>2130968576, :image_package_name=>"com.android.providers.settings", :image_resource_name=>"com.android.providers.settings", :widget_label=>"", :widget_type=>4 } super(options.merge h) end
Public Instance Methods
to_s(colour: false)
click to toggle source
Calls superclass method
Trigger#to_s
# File lib/ruby-macrodroid/triggers.rb, line 1843 def to_s(colour: false) # 4 == cutom , 0 = green, 1 = blue, 2 = red, 3 = yellow style = %w(Green Blue Red Yellow Custom)[@h[:widget_type]] @s = "Widget Button (%s)" % [style] #+ @h.inspect super() end
Also aliased as: to_summary