Package com.castlabs.android.player
Class AudioAttributes
java.lang.Object
com.castlabs.android.player.AudioAttributes
- All Implemented Interfaces:
Parcelable
Attributes for audio playback.
These attributes are applied to audio output and, when enabled, audio focus management.
The content type, flags and usage values are the platform ones. Use the constants defined in
AudioAttributes, for example
AudioAttributes.USAGE_MEDIA or
AudioAttributes.CONTENT_TYPE_MOVIE.
- Since:
- 4.1.9
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parcelable.Creator<AudioAttributes> Creator forAudioAttributesfrom aParcel.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintReturns the content type.intgetFlags()Returns the flags.intgetUsage()Returns the usage.inthashCode()voidwriteToParcel(Parcel dest, int flags)
-
Field Details
-
CREATOR
Creator forAudioAttributesfrom aParcel.
-
-
Method Details
-
getContentType
public int getContentType()Returns the content type.- Returns:
- The content type, one of the
CONTENT_TYPE_*constants inAudioAttributes.
-
getFlags
public int getFlags()Returns the flags.- Returns:
- The flags, a combination of the
FLAG_*constants inAudioAttributes.
-
getUsage
public int getUsage()Returns the usage.- Returns:
- The usage, one of the
USAGE_*constants inAudioAttributes.
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-
equals
-
hashCode
public int hashCode()
-