com.samsung.android.sdk.accessory

Class SAPeerAccessory

  • java.lang.Object
    • com.samsung.android.sdk.accessory.SAPeerAccessory


  • public class SAPeerAccessory
    extends java.lang.Object
    SAPeerAccessory represents a remote Accessory Device visible on one of the supported transports.

    This class encapsulates the information about a remote Accessory Device that the Accessory Peer Agent runs on.

    Developer Guides

    For more information about using Accessory, please refer to the Accessory Programming Guide.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int TRANSPORT_BLE
      Bluetooth Low Energy (Bluetooth v4.0) transport type.
      static int TRANSPORT_BT
      Bluetooth transport type.
      static int TRANSPORT_USB
      USB transport type.
      static int TRANSPORT_WIFI
      Wi-Fi transport type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getAccessoryId()
      Returns the unique Accessory ID of the connected remote Accessory Device.
      java.lang.String getAddress()
      Returns the current address of the connected remote Accessory Device.
      java.lang.String getName()
      Returns the human readable friendly name of the remote Accessory Device.
      java.lang.String getProductId()
      Returns the product ID of the remote Accessory Device.
      int getTransportType()
      Returns the current transport type supported by the connected remote Accessory Device.
      java.lang.String getVendorId()
      Returns the vendor ID of the connected remote Accessory Device.
    • Field Detail

      • TRANSPORT_WIFI

        public static final int TRANSPORT_WIFI
        Wi-Fi transport type.

        Constant Value: 1 (0x00000001)

        Since:
        2.0.19
        See Also:
        Constant Field Values
      • TRANSPORT_BT

        public static final int TRANSPORT_BT
        Bluetooth transport type.

        Constant Value: 2 (0x00000002)

        Since:
        2.0.19
        See Also:
        Constant Field Values
      • TRANSPORT_BLE

        public static final int TRANSPORT_BLE
        Bluetooth Low Energy (Bluetooth v4.0) transport type.

        Constant Value: 4 (0x00000004)

        Since:
        2.0.19
        See Also:
        Constant Field Values
      • TRANSPORT_USB

        public static final int TRANSPORT_USB
        USB transport type.

        Constant Value: 8 (0x00000008)

        Since:
        2.0.19
        See Also:
        Constant Field Values
    • Method Detail

      • getAddress

        public java.lang.String getAddress()
        Returns the current address of the connected remote Accessory Device.
        Returns:
        The address of connected remote Accessory Device.
        Since:
        2.0.19
      • getAccessoryId

        public java.lang.String getAccessoryId()
        Returns the unique Accessory ID of the connected remote Accessory Device.
        Returns:
        The unique Accessory ID.
        Since:
        2.1.8
      • getName

        public java.lang.String getName()
        Returns the human readable friendly name of the remote Accessory Device.
        Returns:
        The name of the connected remote Accessory Device
        Since:
        2.0.19
      • getProductId

        public java.lang.String getProductId()
        Returns the product ID of the remote Accessory Device.
        Returns:
        The product ID of connected remote Accessory Device.
        Since:
        2.0.19
      • getTransportType

        public int getTransportType()
        Returns the current transport type supported by the connected remote Accessory Device.
        Returns:
        Transport type corresponding to TRANSPORT_* values.
        Since:
        2.0.19
      • getVendorId

        public java.lang.String getVendorId()
        Returns the vendor ID of the connected remote Accessory Device.
        Returns:
        The vendor ID.
        Since:
        2.0.19