Api24Impl

public final class Api24Impl
extends Object

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


Helper class to avoid verification errors for methods introduced in Android 7.0 (API 24).

Summary

Public methods

static int getClientAudioSessionId(AudioRecordingConfiguration audioRecordingConfiguration)

Gets the audio session ID from a AudioRecordingConfiguration.

static int getTimestamp(AudioRecord audioRecord, AudioTimestamp audioTimestamp, int timeBase)

Gets the audio timestamp from a AudioRecord.

Inherited methods

Public methods

getClientAudioSessionId

public static int getClientAudioSessionId (AudioRecordingConfiguration audioRecordingConfiguration)

Gets the audio session ID from a AudioRecordingConfiguration.

Parameters
audioRecordingConfiguration AudioRecordingConfiguration

Returns
int

getTimestamp

public static int getTimestamp (AudioRecord audioRecord, 
                AudioTimestamp audioTimestamp, 
                int timeBase)

Gets the audio timestamp from a AudioRecord.

Parameters
audioRecord AudioRecord

audioTimestamp AudioTimestamp

timeBase int