@nativescript-community/audio
    Preparing search index...

    Class TNSRecorder

    Index

    Constructors

    Properties

    android: any
    debug: boolean

    Set to true to enable console log output for debugging.

    ios: any
    ObjCProtocols: any[]

    Methods

    • Parameters

      • recorder: any
      • success: boolean

      Returns void

    • Disposes of the recorder session.

      Returns Promise<any>

    • Returns the maximum absolute amplitude that was sampled since the last call to this method.

      Parameters

      • Optionalchannel: number

        [number]

      Returns any

    • Android Only Returns true if the RECORD_AUDIO permission has been granted.

      Returns Promise<boolean>

    • iOS Only Returns value indicating the recorder is currently recording.

      Returns any

    • Pauses the recorder.

      Returns Promise<any>

    • Android Only Promise will resolve if the user grants the permission or if the permission has already been granted.

      Returns Promise<boolean>

    • Resumes the recorder.

      Returns Promise<any>

    • Starts a recording session with the provided options.

      Parameters

      Returns Promise<any>

    • Stops the recording.

      Returns Promise<any>

    • Returns true if the device is capable of recording, false otherwise.

      Returns boolean