Class BtProfileEvent

  • All Implemented Interfaces:
    android.os.Parcelable

    public class BtProfileEvent
    extends java.lang.Object
    implements android.os.Parcelable
    Class that provides more information about profile connections w.r.t remote device
    • Nested Class Summary

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

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<BtProfileEvent> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BtProfileEvent​(android.os.Parcel in)
      creates object of the class using serialized data given as input
        BtProfileEvent​(java.lang.String identityAddress)
      constructor of the class that creates object using identityAddress as input.
    • Field Detail

      • CREATOR

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

      • BtProfileEvent

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

        protected BtProfileEvent​(android.os.Parcel in)
        creates object of the class using serialized data given as input
        Parameters:
        in - parcelable data might have been received over binder interfaces
    • Method Detail

      • getProfilesSupportedNum

        public int getProfilesSupportedNum()
        Get total number of profiles(standard + custom) supported from remote device
        Returns:
        number of profiles supported
      • hashCode

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

        public void setProfilesSupportedNum​(int profilesSupportedNum)
        Set total number of profiles(standard + custom) supported from remote device
        Parameters:
        profilesSupportedNum - number of profiles supported
      • getStdProfilesSupportedList

        public java.util.List<java.lang.Integer> getStdProfilesSupportedList()
        Get list of standard profiles(as per SIG defined) supported from remote device.
        Returns:
        list of integers mapped to BtInsightConstants.ProfileType profile type
      • getCustomProfilesSupportedList

        public java.util.List<java.util.UUID> getCustomProfilesSupportedList()
        Get list of custom profiles, identified by UUID, supported from remote device
        Returns:
        list of UUID corresponding to custom profile
      • getIdentityAddress

        public java.lang.String getIdentityAddress()
        Get BT address of remote device
        Returns:
        Bluetooth MAC address of remote device
      • getProfilesConnectedNum

        public int getProfilesConnectedNum()
        Get total number of profiles(standard + custom) connected with remote device
        Returns:
        number of profiles connected
      • setProfilesConnectedNum

        public void setProfilesConnectedNum​(int profilesConnectedNum)
        Set total number of profiles(standard + custom) connected with remote device
        Parameters:
        profilesConnectedNum - number of profiles connected
      • getStdProfilesConnectedList

        public java.util.List<java.lang.Integer> getStdProfilesConnectedList()
        Get list of standard profiles(as per SIG defined) connected with remote device.
        Returns:
        list of integers mapped to BtInsightConstants.ProfileType profile type
      • getCustomProfilesConnectedList

        public java.util.List<java.util.UUID> getCustomProfilesConnectedList()
        Get list of custom profiles, identified by UUID, connected with remote device
        Returns:
        list of UUID corresponding to custom profile
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • 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