AudioOutputProvider.FormatSupport.Builder


class AudioOutputProvider.FormatSupport.Builder


A builder to create FormatSupport instances.

Summary

Public constructors

Public functions

AudioOutputProvider.FormatSupport!

Builds the FormatSupport.

AudioOutputProvider.FormatSupport.Builder!

Sets the level of support for this support.

AudioOutputProvider.FormatSupport.Builder!

Sets if media format is supported in offload playback.

AudioOutputProvider.FormatSupport.Builder!

Sets whether playback of the format is supported with gapless transitions for offload.

AudioOutputProvider.FormatSupport.Builder!
@CanIgnoreReturnValue
setIsSpeedChangeSupportedForOffload(
    isSpeedChangeSupportedForOffload: Boolean
)

Sets whether playback of the format is supported with speed changes for offload.

Public constructors

Builder

Builder()

Public functions

setFormatSupportLevel

@CanIgnoreReturnValue
fun setFormatSupportLevel(
    @AudioOutputProvider.SupportLevel supportLevel: Int
): AudioOutputProvider.FormatSupport.Builder!

Sets the level of support for this support.

setIsFormatSupportedForOffload

@CanIgnoreReturnValue
fun setIsFormatSupportedForOffload(isFormatSupportedForOffload: Boolean): AudioOutputProvider.FormatSupport.Builder!

Sets if media format is supported in offload playback.

Default is false.

setIsGaplessSupportedForOffload

@CanIgnoreReturnValue
fun setIsGaplessSupportedForOffload(isGaplessSupportedForOffload: Boolean): AudioOutputProvider.FormatSupport.Builder!

Sets whether playback of the format is supported with gapless transitions for offload.

Default is false.

setIsSpeedChangeSupportedForOffload

@CanIgnoreReturnValue
fun setIsSpeedChangeSupportedForOffload(
    isSpeedChangeSupportedForOffload: Boolean
): AudioOutputProvider.FormatSupport.Builder!

Sets whether playback of the format is supported with speed changes for offload.

Default is false.