Class BtAudioEvent

  • All Implemented Interfaces:
    android.os.Parcelable

    public class BtAudioEvent
    extends java.lang.Object
    implements android.os.Parcelable
    Class that provides more information about audio connections and its playing status
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<BtAudioEvent> CREATOR
    • Constructor Detail

      • BtAudioEvent

        public BtAudioEvent​(java.lang.String identityAddress)
        constructor of the class that creates object using identityAddress as input.
        Parameters:
        identityAddress - MAC address of remote device
      • BtAudioEvent

        protected BtAudioEvent​(android.os.Parcel in)
    • Method Detail

      • setBrEdrScoAudioState

        public void setBrEdrScoAudioState​(int brEdrScoAudioState)
        Set the SCO audio state w.r.t remote device See also BtInsightConstants.AudioState
        Parameters:
        brEdrScoAudioState - SCO audio state w.r.t remote device
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • setBrEdrA2dpMediaState

        public void setBrEdrA2dpMediaState​(int brEdrA2dpMediaState)
        Set the Media playing state w.r.t remote device See also BtInsightConstants.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:
        equals in class java.lang.Object
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBrEdrScoAudioState

        public int getBrEdrScoAudioState()
        Get the sco audio state w.r.t remote device See also BtInsightConstants.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 also BtInsightConstants.AudioState
        Returns:
        A2DP media playing state w.r.t remote device
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable