Class: VolumeButtonTrigger

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

Returns a new instance of VolumeButtonTrigger.



1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
# File 'lib/ruby-macrodroid.rb', line 1541

def initialize(h={})

  options = {
    dont_change_volume: true,
    monitor_option: 1,
    not_configured: false,
    option: 0
  }

  super(options.merge h)

end