public final class

AudioOffloadSupport.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.audio.AudioOffloadSupport.Builder

Overview

A builder to create AudioOffloadSupport instances.

Summary

Constructors
publicBuilder()

publicBuilder(AudioOffloadSupport audioOffloadSupport)

Methods
public AudioOffloadSupportbuild()

Builds the AudioOffloadSupport.

public AudioOffloadSupport.BuildersetIsFormatSupported(boolean isFormatSupported)

Sets if media format is supported in offload playback.

public AudioOffloadSupport.BuildersetIsGaplessSupported(boolean isGaplessSupported)

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

public AudioOffloadSupport.BuildersetIsSpeedChangeSupported(boolean isSpeedChangeSupported)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

public Builder(AudioOffloadSupport audioOffloadSupport)

Methods

public AudioOffloadSupport.Builder setIsFormatSupported(boolean isFormatSupported)

Sets if media format is supported in offload playback.

Default is false.

public AudioOffloadSupport.Builder setIsGaplessSupported(boolean isGaplessSupported)

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

Default is false.

public AudioOffloadSupport.Builder setIsSpeedChangeSupported(boolean isSpeedChangeSupported)

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

Default is false.

public AudioOffloadSupport build()

Builds the AudioOffloadSupport.