Class: RecordMicrophoneAction

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

Overview

Category: Media

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ RecordMicrophoneAction

Returns a new instance of RecordMicrophoneAction.



3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
# File 'lib/ruby-macrodroid.rb', line 3159

def initialize(h={})

  options = {
    path: '/storage/emulated/0/MacroDroid/Recordings',
    record_time_string: 'Cancel Recording',
    recording_format: 0,
    seconds_to_record_for: -2
  }

  super(options.merge h)

end