Api31Impl

@RequiresApi(31) class Api31Impl
kotlin.Any
   ↳ androidx.camera.video.internal.compat.Api31Impl

Helper class to avoid verification errors for methods introduced in Android 12 (API 31).

Summary

Public methods
static Array<Range<Int!>!>

Returns an array of ranges representing the number of input channels supported for MediaCodecInfo.AudioCapabilities.

static Int

Returns the minimum number of input channels supported for MediaCodecInfo.AudioCapabilities.

static Unit
setContext(@NonNull builder: Builder, @NonNull context: Context)

Sets the context used for attribution on an AudioRecord.

Public methods

getInputChannelCountRanges

@NonNull static fun getInputChannelCountRanges(@NonNull caps: AudioCapabilities): Array<Range<Int!>!>

Returns an array of ranges representing the number of input channels supported for MediaCodecInfo.AudioCapabilities.

getMinInputChannelCount

static fun getMinInputChannelCount(@NonNull caps: AudioCapabilities): Int

Returns the minimum number of input channels supported for MediaCodecInfo.AudioCapabilities.

setContext

static fun setContext(
    @NonNull builder: Builder,
    @NonNull context: Context
): Unit

Sets the context used for attribution on an AudioRecord.