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, #to_s

Constructor Details

#initialize(h = {}) ⇒ HeadphonesTrigger

Returns a new instance of HeadphonesTrigger.



1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
# File 'lib/ruby-macrodroid.rb', line 1431

def initialize(h={})

  options = {
    headphones_connected: true,
    mic_option: 0
  }

  super(options.merge h)

end