Class: MediaButtonPressedTrigger

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

Overview

Category: User Input

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ MediaButtonPressedTrigger



1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
# File 'lib/ruby-macrodroid.rb', line 1644

def initialize(h={})

  options = {
    option: 'Single Press',
    cancel_press: false
  }

  super(options.merge h)

end