Package com.zebra.bluetooth.btinsightlib
Class BtProfileEvent
- java.lang.Object
-
- com.zebra.bluetooth.btinsightlib.BtProfileEvent
-
- All Implemented Interfaces:
android.os.Parcelable
public class BtProfileEvent extends java.lang.Object implements android.os.ParcelableClass that provides more information about profile connections w.r.t remote device
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BtProfileEvent>CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protectedBtProfileEvent(android.os.Parcel in)creates object of the class using serialized data given as inputBtProfileEvent(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)java.util.List<java.util.UUID>getCustomProfilesConnectedList()Get list of custom profiles, identified by UUID, connected with remote devicejava.util.List<java.util.UUID>getCustomProfilesSupportedList()Get list of custom profiles, identified by UUID, supported from remote devicejava.lang.StringgetIdentityAddress()Get BT address of remote deviceintgetProfilesConnectedNum()Get total number of profiles(standard + custom) connected with remote deviceintgetProfilesSupportedNum()Get total number of profiles(standard + custom) supported from remote devicejava.util.List<java.lang.Integer>getStdProfilesConnectedList()Get list of standard profiles(as per SIG defined) connected with remote device.java.util.List<java.lang.Integer>getStdProfilesSupportedList()Get list of standard profiles(as per SIG defined) supported from remote device.inthashCode()voidsetProfilesConnectedNum(int profilesConnectedNum)Set total number of profiles(standard + custom) connected with remote devicevoidsetProfilesSupportedNum(int profilesSupportedNum)Set total number of profiles(standard + custom) supported from remote devicejava.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
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:
hashCodein classjava.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.ProfileTypeprofile 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.ProfileTypeprofile 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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
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
-
-