Package com.zebra.bluetooth.btinsightlib
Class BtAudioEvent
- java.lang.Object
-
- com.zebra.bluetooth.btinsightlib.BtAudioEvent
-
- All Implemented Interfaces:
android.os.Parcelable
public class BtAudioEvent extends java.lang.Object implements android.os.ParcelableClass that provides more information about audio connections and its playing status
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BtAudioEvent>CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protectedBtAudioEvent(android.os.Parcel in)BtAudioEvent(java.lang.String identityAddress)constructor of the class that creates object using identityAddress as input.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(java.lang.Object o)intgetBrEdrA2dpMediaState()Get the A2DP media playing state w.r.t remote device See alsoBtInsightConstants.AudioStateintgetBrEdrScoAudioState()Get the sco audio state w.r.t remote device See alsoBtInsightConstants.AudioStatejava.lang.StringgetIdentityAddress()Get BT address of remote deviceinthashCode()voidsetBrEdrA2dpMediaState(int brEdrA2dpMediaState)Set the Media playing state w.r.t remote device See alsoBtInsightConstants.AudioStatevoidsetBrEdrScoAudioState(int brEdrScoAudioState)Set the SCO audio state w.r.t remote device See alsoBtInsightConstants.AudioStatejava.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BtAudioEvent> CREATOR
-
-
Method Detail
-
setBrEdrScoAudioState
public void setBrEdrScoAudioState(int brEdrScoAudioState)
Set the SCO audio state w.r.t remote device See alsoBtInsightConstants.AudioState- Parameters:
brEdrScoAudioState- SCO audio state w.r.t remote device
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
setBrEdrA2dpMediaState
public void setBrEdrA2dpMediaState(int brEdrA2dpMediaState)
Set the Media playing state w.r.t remote device See alsoBtInsightConstants.AudioState- Parameters:
brEdrA2dpMediaState- Media playing state w.r.t remote device
-
getIdentityAddress
public java.lang.String getIdentityAddress()
Get BT address of remote device- Returns:
- Bluetooth MAC address of remote device
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getBrEdrScoAudioState
public int getBrEdrScoAudioState()
Get the sco audio state w.r.t remote device See alsoBtInsightConstants.AudioState- Returns:
- SCO audio state w.r.t remote device
-
getBrEdrA2dpMediaState
public int getBrEdrA2dpMediaState()
Get the A2DP media playing state w.r.t remote device See alsoBtInsightConstants.AudioState- Returns:
- A2DP media playing state w.r.t remote device
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
-