AudioOffloadSupport.Builder
public final class AudioOffloadSupport.Builder
A builder to create AudioOffloadSupport instances.
Summary
Public constructors |
|---|
Builder() |
Builder(AudioOffloadSupport audioOffloadSupport) |
Public methods |
|
|---|---|
AudioOffloadSupport |
build()Builds the |
AudioOffloadSupport.Builder |
@CanIgnoreReturnValueSets if media format is supported in offload playback. |
AudioOffloadSupport.Builder |
@CanIgnoreReturnValueSets whether playback of the format is supported with gapless transitions. |
AudioOffloadSupport.Builder |
@CanIgnoreReturnValueSets whether playback of the format is supported with speed changes. |
Public constructors
Public methods
build
public AudioOffloadSupport build()
Builds the AudioOffloadSupport.
| Throws | |
|---|---|
java.lang.IllegalStateException |
If either |
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.