Package com.zebra.bluetooth.btinsightlib
Class BtDeviceInfoEvent
- java.lang.Object
-
- com.zebra.bluetooth.btinsightlib.BtDeviceInfoEvent
-
- All Implemented Interfaces:
android.os.Parcelable
public class BtDeviceInfoEvent extends java.lang.Object implements android.os.ParcelableClass that provides more information about the remote device attributes
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<BtDeviceInfoEvent>CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protectedBtDeviceInfoEvent(android.os.Parcel in)BtDeviceInfoEvent(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()BtDeviceInfogetDeviceInfo()Get device info of remote devicejava.lang.StringgetIdentityAddress()Get BT address of remote deviceBtScannerDeviceInfogetScannerDeviceInfo()Get device info of scanner accessory devicevoidsetDeviceInfo(BtDeviceInfo deviceInfo)Set device info object reference of remote device See alsogetDeviceInfo()java.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<BtDeviceInfoEvent> CREATOR
-
-
Constructor Detail
-
BtDeviceInfoEvent
public BtDeviceInfoEvent(java.lang.String identityAddress)
constructor of the class that creates object using identityAddress as input.- Parameters:
identityAddress- MAC address of remote device
-
BtDeviceInfoEvent
protected BtDeviceInfoEvent(android.os.Parcel in)
-
-
Method Detail
-
getIdentityAddress
public java.lang.String getIdentityAddress()
Get BT address of remote device- Returns:
- Bluetooth MAC address of remote device
-
getDeviceInfo
public BtDeviceInfo getDeviceInfo()
Get device info of remote device- Returns:
- Reference to device info object
Note: the reference device info object can also represent its derived object in case of accessory specific details are exists.
See also like
BtScannerDeviceInfo
-
setDeviceInfo
public void setDeviceInfo(@NonNull BtDeviceInfo deviceInfo) throws java.lang.IllegalArgumentExceptionSet device info object reference of remote device See alsogetDeviceInfo()- Parameters:
deviceInfo- reference to device info object Note: the reference device info object can also represent its derived object in case of accessory specific details are exists. See also likeBtScannerDeviceInfo- Throws:
java.lang.IllegalArgumentException
-
getScannerDeviceInfo
public BtScannerDeviceInfo getScannerDeviceInfo()
Get device info of scanner accessory device- Returns:
- Reference to scanner device info object if remote is of scanner type and in SSI mode. NULL otherwise. Note: Scanner does support exchange if it's status with UUT when in SSI mode
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
-