Package com.castlabs.android.player
Class AudioAttributes.Builder
java.lang.Object
com.castlabs.android.player.AudioAttributes.Builder
- Enclosing class:
AudioAttributes
Builder for
AudioAttributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Creates anAudioAttributesinstance from this builder.setContentType(int contentType) Sets the content type.setFlags(int flags) Sets the flags.setUsage(int usage) Sets the usage.
-
Constructor Details
-
Builder
public Builder()Creates a new builder forAudioAttributes.By default the content type is
C.CONTENT_TYPE_MOVIE, usage isC.USAGE_MEDIA, and no flags are set.
-
-
Method Details
-
setContentType
Sets the content type.- Parameters:
contentType- The content type.- Returns:
- This builder.
- See Also:
-
setFlags
Sets the flags.- Parameters:
flags- The flags.- Returns:
- This builder.
- See Also:
-
setUsage
Sets the usage.- Parameters:
usage- The usage.- Returns:
- This builder.
- See Also:
-
get
Creates anAudioAttributesinstance from this builder.- Returns:
- The
AudioAttributesinstance.
-