AudioPresentation.Builder
public
static
final
class
AudioPresentation.Builder
extends Object
A builder class for creating AudioPresentation
objects.
Summary
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public constructors
Builder
public Builder (int presentationId)
Create a Builder
. Any field that should be included in the
AudioPresentation
must be added.
Parameters |
presentationId |
int : The presentation ID of this audio presentation. |
Public methods
setHasAudioDescription
public AudioPresentation.Builder setHasAudioDescription (boolean audioDescriptionAvailable)
Indicate whether the presentation contains audio description for the visually impaired.
Parameters |
audioDescriptionAvailable |
boolean : Audio description for the visually impaired. |
setHasDialogueEnhancement
public AudioPresentation.Builder setHasDialogueEnhancement (boolean dialogueEnhancementAvailable)
Indicate whether the presentation supports dialogue enhancement.
Parameters |
dialogueEnhancementAvailable |
boolean : Dialogue enhancement. |
setHasSpokenSubtitles
public AudioPresentation.Builder setHasSpokenSubtitles (boolean spokenSubtitlesAvailable)
Indicate whether the presentation contains spoken subtitles for the visually impaired.
Parameters |
spokenSubtitlesAvailable |
boolean : Spoken subtitles for the visually impaired. |
setLabels
public AudioPresentation.Builder setLabels (Map<ULocale, CharSequence> labels)
Sets locale / text label pairs describing the presentation.
Parameters |
labels |
Map : Text label indexed by its locale corresponding to the language code.
This value cannot be null . |
setLocale
public AudioPresentation.Builder setLocale (ULocale language)
Sets the language information of the audio presentation.
Parameters |
language |
ULocale : Locale corresponding to ISO 639-1/639-2 language code.
This value cannot be null . |
setMasteringIndication
public AudioPresentation.Builder setMasteringIndication (int masteringIndication)
Sets the mastering indication.
setProgramId
public AudioPresentation.Builder setProgramId (int programId)
Sets the ProgramId to which this audio presentation refers.
Parameters |
programId |
int : The program ID to be decoded. |