AudioOffloadSupport.Builder


public final class AudioOffloadSupport.Builder


A builder to create AudioOffloadSupport instances.

Summary

Public constructors

Builder(AudioOffloadSupport audioOffloadSupport)

Public methods

AudioOffloadSupport

Builds the AudioOffloadSupport.

AudioOffloadSupport.Builder
@CanIgnoreReturnValue
setIsFormatSupported(boolean isFormatSupported)

Sets if media format is supported in offload playback.

AudioOffloadSupport.Builder
@CanIgnoreReturnValue
setIsGaplessSupported(boolean isGaplessSupported)

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

AudioOffloadSupport.Builder
@CanIgnoreReturnValue
setIsSpeedChangeSupported(boolean isSpeedChangeSupported)

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

Public constructors

Builder

public Builder()

Builder

public Builder(AudioOffloadSupport audioOffloadSupport)

Public methods

setIsFormatSupported

@CanIgnoreReturnValue
public AudioOffloadSupport.Builder setIsFormatSupported(boolean isFormatSupported)

Sets if media format is supported in offload playback.

Default is false.

setIsGaplessSupported

@CanIgnoreReturnValue
public AudioOffloadSupport.Builder setIsGaplessSupported(boolean isGaplessSupported)

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

Default is false.

setIsSpeedChangeSupported

@CanIgnoreReturnValue
public AudioOffloadSupport.Builder setIsSpeedChangeSupported(boolean isSpeedChangeSupported)

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

Default is false.