public class SAPeerAccessory
extends java.lang.Object
This class encapsulates the information about a remote Accessory Device that the Accessory Peer Agent runs on.
For more information about using Accessory, please refer to the Accessory Programming Guide.
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.
|
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.
|
public static final int TRANSPORT_WIFI
Constant Value: 1 (0x00000001)
public static final int TRANSPORT_BT
Constant Value: 2 (0x00000002)
public static final int TRANSPORT_BLE
Constant Value: 4 (0x00000004)
public static final int TRANSPORT_USB
Constant Value: 8 (0x00000008)
public java.lang.String getAddress()
public java.lang.String getAccessoryId()
public java.lang.String getName()
public java.lang.String getProductId()
public int getTransportType()
public java.lang.String getVendorId()
Copyright © Samsung Electronics, Co., Ltd. All rights reserved.