Mobizion

Mircophone Power Plugin

This plugin allows you to access mircophone power(Decible).

Platforms:

Android 4.1+ and iOS 8+

Setup:

Add permissions in plist for iOS:

NSMicrophoneUsageDescription = "This app would like to access the microphone."

Add permissions in usesPermissions for Android:

"android.permission.RECORD_AUDIO"

Functions:

microphonePower.init(listener)

listener(function) if event.name == "power" then event.value will have the microphone power value in 'Double'.

microphonePower.getPower()

-- get microphone power

-- when getPower mehthod will be called it will invoked the listener which is register earlier in 'init' method.