Class BtDeviceInfoEvent

  • All Implemented Interfaces:
    android.os.Parcelable

    public class BtDeviceInfoEvent
    extends java.lang.Object
    implements android.os.Parcelable
    Class that provides more information about the remote device attributes
    • 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<BtDeviceInfoEvent> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BtDeviceInfoEvent​(android.os.Parcel in)  
        BtDeviceInfoEvent​(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<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.IllegalArgumentException
        Set device info object reference of remote device See also getDeviceInfo()
        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 like BtScannerDeviceInfo
        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:
        toString in class java.lang.Object
      • describeContents

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

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