Api29Impl

public final class Api29Impl
extends Object

java.lang.Object
   ↳ androidx.camera.video.internal.compat.Api29Impl


Helper class to avoid verification errors for methods introduced in Android 10.0 (API 29).

Summary

Public methods

static boolean isClientSilenced(AudioRecordingConfiguration configuration)

Checks whether a AudioRecordingConfiguration shows that the client is silenced.

static void registerAudioRecordingCallback(AudioRecord audioRecord, Executor executor, AudioManager.AudioRecordingCallback callback)

Registers a AudioManager.AudioRecordingCallback to a AudioRecord.

static void unregisterAudioRecordingCallback(AudioRecord audioRecord, AudioManager.AudioRecordingCallback callback)

Unregisters a AudioManager.AudioRecordingCallback previously registered from a AudioRecord.

Inherited methods

Public methods

isClientSilenced

public static boolean isClientSilenced (AudioRecordingConfiguration configuration)

Checks whether a AudioRecordingConfiguration shows that the client is silenced.

Parameters
configuration AudioRecordingConfiguration

Returns
boolean

registerAudioRecordingCallback

public static void registerAudioRecordingCallback (AudioRecord audioRecord, 
                Executor executor, 
                AudioManager.AudioRecordingCallback callback)

Registers a AudioManager.AudioRecordingCallback to a AudioRecord.

Parameters
audioRecord AudioRecord

executor Executor

callback AudioManager.AudioRecordingCallback

unregisterAudioRecordingCallback

public static void unregisterAudioRecordingCallback (AudioRecord audioRecord, 
                AudioManager.AudioRecordingCallback callback)

Unregisters a AudioManager.AudioRecordingCallback previously registered from a AudioRecord.

Parameters
audioRecord AudioRecord

callback AudioManager.AudioRecordingCallback