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

Returns a new instance of MediaButtonPressedTrigger.



1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
# File 'lib/ruby-macrodroid.rb', line 1560

def initialize(h={})

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

  super(options.merge h)

end