Class AudioService.AudioServiceClientBinder

java.lang.Object
android.os.Binder
com.digimarc.capture.audio.AudioService.AudioServiceClientBinder
All Implemented Interfaces:
android.os.IBinder
Enclosing class:
AudioService

public static class AudioService.AudioServiceClientBinder extends android.os.Binder
This class contains the methods that the client is allowed to call on the service.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.IBinder

    android.os.IBinder.DeathRecipient
  • Field Summary

    Fields inherited from interface android.os.IBinder

    DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, LIKE_TRANSACTION, PING_TRANSACTION, TWEET_TRANSACTION
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addListener(com.digimarc.capture.audio.AudioServiceReceiver listener)
    Add a listener to receive audio buffers
    com.digimarc.capture.audio.AudioService.AudioState
    Return the current state of the service
    boolean
    initialize(com.digimarc.capture.audio.AudioConfiguration config)
    Initialize the AudioService with a specific configuration.
    void
    Release the audio object
    void
    removeListener(com.digimarc.capture.audio.AudioServiceReceiver listener)
    Remove a listener from receiving audio buffers
    void
    Start recording
    void
    Stop recording

    Methods inherited from class android.os.Binder

    attachInterface, clearCallingIdentity, clearCallingWorkSource, dump, dump, dumpAsync, flushPendingCommands, getCallingPid, getCallingUid, getCallingUidOrThrow, getCallingUserHandle, getCallingWorkSourceUid, getInterfaceDescriptor, isBinderAlive, joinThreadPool, linkToDeath, onTransact, pingBinder, queryLocalInterface, restoreCallingIdentity, restoreCallingWorkSource, setCallingWorkSourceUid, transact, unlinkToDeath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AudioServiceClientBinder

      protected AudioServiceClientBinder(AudioService audioService)
  • Method Details

    • getAudioState

      @NonNull public com.digimarc.capture.audio.AudioService.AudioState getAudioState()
      Return the current state of the service
      Returns:
      The state of the service
    • initialize

      public boolean initialize(@NonNull com.digimarc.capture.audio.AudioConfiguration config)
      Initialize the AudioService with a specific configuration.
      Parameters:
      config - The configuration
      Returns:
      True if the service was successfully initialized.
    • startRecording

      public void startRecording()
      Start recording
    • stopRecording

      public void stopRecording()
      Stop recording
    • release

      public void release()
      Release the audio object
    • addListener

      public void addListener(@NonNull com.digimarc.capture.audio.AudioServiceReceiver listener)
      Add a listener to receive audio buffers
      Parameters:
      listener - the listener
    • removeListener

      public void removeListener(@NonNull com.digimarc.capture.audio.AudioServiceReceiver listener)
      Remove a listener from receiving audio buffers
      Parameters:
      listener - the listener