AudioOffloadSupport.Builder


class AudioOffloadSupport.Builder


A builder to create AudioOffloadSupport instances.

Summary

Public constructors

Builder(audioOffloadSupport: AudioOffloadSupport!)

Public functions

AudioOffloadSupport!

Builds the AudioOffloadSupport.

AudioOffloadSupport.Builder!

Sets if media format is supported in offload playback.

AudioOffloadSupport.Builder!

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

AudioOffloadSupport.Builder!

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

Public constructors

Builder

Builder()

Builder

Builder(audioOffloadSupport: AudioOffloadSupport!)

Public functions

setIsFormatSupported

@CanIgnoreReturnValue
fun setIsFormatSupported(isFormatSupported: Boolean): AudioOffloadSupport.Builder!

Sets if media format is supported in offload playback.

Default is false.

setIsGaplessSupported

@CanIgnoreReturnValue
fun setIsGaplessSupported(isGaplessSupported: Boolean): AudioOffloadSupport.Builder!

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

Default is false.

setIsSpeedChangeSupported

@CanIgnoreReturnValue
fun setIsSpeedChangeSupported(isSpeedChangeSupported: Boolean): AudioOffloadSupport.Builder!

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

Default is false.