AudioOutputProvider.FormatSupport.Builder


public final class AudioOutputProvider.FormatSupport.Builder


A builder to create FormatSupport instances.

Summary

Public constructors

Public methods

AudioOutputProvider.FormatSupport

Builds the FormatSupport.

AudioOutputProvider.FormatSupport.Builder

Sets the level of support for this support.

AudioOutputProvider.FormatSupport.Builder
@CanIgnoreReturnValue
setIsFormatSupportedForOffload(boolean isFormatSupportedForOffload)

Sets if media format is supported in offload playback.

AudioOutputProvider.FormatSupport.Builder
@CanIgnoreReturnValue
setIsGaplessSupportedForOffload(boolean isGaplessSupportedForOffload)

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

AudioOutputProvider.FormatSupport.Builder
@CanIgnoreReturnValue
setIsSpeedChangeSupportedForOffload(
    boolean isSpeedChangeSupportedForOffload
)

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

Public constructors

Builder

public Builder()

Public methods

setFormatSupportLevel

@CanIgnoreReturnValue
public AudioOutputProvider.FormatSupport.Builder setFormatSupportLevel(
    @AudioOutputProvider.SupportLevel int supportLevel
)

Sets the level of support for this support.

setIsFormatSupportedForOffload

@CanIgnoreReturnValue
public AudioOutputProvider.FormatSupport.Builder setIsFormatSupportedForOffload(boolean isFormatSupportedForOffload)

Sets if media format is supported in offload playback.

Default is false.

setIsGaplessSupportedForOffload

@CanIgnoreReturnValue
public AudioOutputProvider.FormatSupport.Builder setIsGaplessSupportedForOffload(boolean isGaplessSupportedForOffload)

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

Default is false.

setIsSpeedChangeSupportedForOffload

@CanIgnoreReturnValue
public AudioOutputProvider.FormatSupport.Builder setIsSpeedChangeSupportedForOffload(
    boolean isSpeedChangeSupportedForOffload
)

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

Default is false.