Class: HeadphonesTrigger

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

Overview

Category: Connectivity

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

Returns a new instance of HeadphonesTrigger.



1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
# File 'lib/ruby-macrodroid.rb', line 1057

def initialize(h={})

  options = {
    headphones_connected: true,
    mic_option: 0
  }

  super(options.merge h)

end