Package com.castlabs.android.player

# Class AudioAttributes

java.lang.Object
com.castlabs.android.player.AudioAttributes

All Implemented Interfaces:
  `Parcelable`

public final class AudioAttributes extends Object implements Parcelable
Attributes for audio playback.

These will affect how the Player interacts with `AudioFocusManager`.

Since:
  4.1.9

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `AudioAttributes.Builder`
  Builder for `AudioAttributes`.

  ## Nested classes/interfaces inherited from interface android.os.Parcelable

  `Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Parcelable.Creator<AudioAttributes>`
  `CREATOR`

  ### Fields inherited from interface android.os.Parcelable

  `CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `describeContents()`
  `boolean`
  `equals(Object o)`
  `int`
  `getContentType()`
  `int`
  `getFlags()`
  `int`
  `getUsage()`
  `int`
  `hashCode()`
  `void`
  `writeToParcel(Parcel dest, int flags)`

  ### Methods inherited from class java.lang.Object

  `getClass, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### CREATOR

    public static final Parcelable.Creator<AudioAttributes> CREATOR

- ## Method Details

  - ### getContentType

    @AudioContentType public int getContentType()

  - ### getFlags

    @AudioFlags public int getFlags()

  - ### getUsage

    @AudioUsage public int getUsage()

  - ### describeContents

    public int describeContents()
    Specified by:
      `describeContents` in interface `Parcelable`

  - ### writeToParcel

    public void writeToParcel(Parcel dest, int flags)
    Specified by:
      `writeToParcel` in interface `Parcelable`

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`