Api29Impl

@RequiresApi(29) class Api29Impl
kotlin.Any
   ↳ 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

Checks whether a AudioRecordingConfiguration shows that the client is silenced.

static Unit
registerAudioRecordingCallback(@NonNull audioRecord: AudioRecord, @NonNull executor: Executor, @NonNull callback: AudioRecordingCallback)

Registers a android.media.AudioManager.AudioRecordingCallback to a AudioRecord.

static Unit
unregisterAudioRecordingCallback(@NonNull audioRecord: AudioRecord, @NonNull callback: AudioRecordingCallback)

Unregisters a android.media.AudioManager.AudioRecordingCallback previously registered from a AudioRecord.

Public methods

isClientSilenced

static fun isClientSilenced(@NonNull configuration: AudioRecordingConfiguration): Boolean

Checks whether a AudioRecordingConfiguration shows that the client is silenced.

registerAudioRecordingCallback

static fun registerAudioRecordingCallback(
    @NonNull audioRecord: AudioRecord,
    @NonNull executor: Executor,
    @NonNull callback: AudioRecordingCallback
): Unit

Registers a android.media.AudioManager.AudioRecordingCallback to a AudioRecord.

unregisterAudioRecordingCallback

static fun unregisterAudioRecordingCallback(
    @NonNull audioRecord: AudioRecord,
    @NonNull callback: AudioRecordingCallback
): Unit

Unregisters a android.media.AudioManager.AudioRecordingCallback previously registered from a AudioRecord.