A
- acceptServiceConnectionRequest(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Accepts a Service Connection request from the remote Accessory Peer Agent.
- acceptServiceConnectionRequest(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Accepts a Service Connection request from the remote Accessory Peer Agent.
- ACTION_ACCESSORY_MESSAGE_DISABLED - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
Broadcast Action: Indicates the Message Service has been disabled.
- ACTION_ACCESSORY_MESSAGE_ENABLED - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
Broadcast Action: Indicates the Message Service has been enabled.
- ACTION_ACCESSORY_MESSAGE_RECEIVED - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
Broadcast Action: Indicates an incoming message from the remote Accessory Peer Agent has been received.
- ACTION_REGISTRATION_REQUIRED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Broadcast Action: Indicates that an installed peer agent has been required to register.
- ACTION_REGISTRATION_REQUIRED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Broadcast Action: Indicates that an installed peer agent has been required to register.
- ACTION_SAP_FILE_TRANSFER_REQUESTED - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Broadcast Action: Indicates an incoming file transfer request has been received.
- ACTION_SERVICE_CONNECTION_REQUESTED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Broadcast Action: Indicates that an incoming service connection request from remote Accessory Peer Agent has been received.
- ACTION_SERVICE_CONNECTION_REQUESTED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Broadcast Action: Indicates that an incoming service connection request from remote Accessory Peer Agent has been received.
- authenticatePeerAgent(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Authenticates an Accessory Peer Agent.
- authenticatePeerAgent(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Authenticates an Accessory Peer Agent.
- AUTHENTICATION_FAILURE_PEER_AGENT_NOT_SUPPORTED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
The remote Accessory Peer Agent does not support authentication.
- AUTHENTICATION_FAILURE_PEER_AGENT_NOT_SUPPORTED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
The remote Accessory Peer Agent does not support authentication.
- AUTHENTICATION_FAILURE_TOKEN_NOT_GENERATED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
The remote Accessory Peer Agent's authentication token is not generated.
- AUTHENTICATION_FAILURE_TOKEN_NOT_GENERATED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
The remote Accessory Peer Agent's authentication token is not generated.
- AUTHENTICATION_SUCCESS - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Authentication request succeeded.
- AUTHENTICATION_SUCCESS - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Authentication request succeeded.
- AUTHENTICATION_TYPE_CERTIFICATE_X509 - Static variable in class com.samsung.android.sdk.accessory.SAAuthenticationToken
-
X.509 Certificate authentication type.
- AUTHENTICATION_TYPE_NONE - Static variable in class com.samsung.android.sdk.accessory.SAAuthenticationToken
-
None or invalid authentication type Constant Value: 1547 (0x0000060B)
C
- cancel(int) - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Cancels an ongoing file transfer.
- cancelAll() - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Cancels all sending file transactions including ongoing and queued file transfer requests.
- close() - Method in class com.samsung.android.sdk.accessory.SASocket
-
Closes the Service Connection with the remote Accessory Peer Agent.
- close() - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Closes the bound connection with Accessory File Transfer Service and cleans up any resources it holds.
- com.samsung.android.sdk - package com.samsung.android.sdk
- com.samsung.android.sdk.accessory - package com.samsung.android.sdk.accessory
-
Provides the classes necessary to create the Accessory application and the classes an application uses to communicate with its peer application.
- com.samsung.android.sdk.accessoryfiletransfer - package com.samsung.android.sdk.accessoryfiletransfer
-
Provides the classes necessary to create the Accessory FileTransfer application and the classes an application uses to transfer a file to peer application.
- CONNECTION_ALREADY_EXIST - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed as another Service Connection request with the same remote Accessory Peer Agent has been already established.
- CONNECTION_ALREADY_EXIST - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed as another Service Connection request with the same remote Accessory Peer Agent has been already established.
- CONNECTION_DUPLICATE_REQUEST - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed as another attempt with same remote Accessory Peer Agent is still in progress.
- CONNECTION_DUPLICATE_REQUEST - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed as another attempt with same remote Accessory Peer Agent is still in progress.
- CONNECTION_FAILURE_DEVICE_UNREACHABLE - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed as the remote Accessory Peer Agent is unreachable.
- CONNECTION_FAILURE_DEVICE_UNREACHABLE - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed as the remote Accessory Peer Agent is unreachable.
- CONNECTION_FAILURE_INVALID_PEERAGENT - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed as the
SAPeerAgent
input argument is null or invalid. - CONNECTION_FAILURE_INVALID_PEERAGENT - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed as the
SAPeerAgent
input argument is null or invalid. - CONNECTION_FAILURE_NETWORK - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed due to network errors.
- CONNECTION_FAILURE_NETWORK - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed due to network errors.
- CONNECTION_FAILURE_PEERAGENT_NO_RESPONSE - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed as the remote Accessory Peer Agent does not give any response.
- CONNECTION_FAILURE_PEERAGENT_NO_RESPONSE - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed as the remote Accessory Peer Agent does not give any response.
- CONNECTION_FAILURE_PEERAGENT_REJECTED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed as the remote Accessory Peer Agent rejected the request.
- CONNECTION_FAILURE_PEERAGENT_REJECTED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed as the remote Accessory Peer Agent rejected the request.
- CONNECTION_FAILURE_SERVICE_LIMIT_REACHED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection establishment failed as the service limit set by the Accessory Peer Agent has been reached.
- CONNECTION_FAILURE_SERVICE_LIMIT_REACHED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection establishment failed as the service limit set by the Accessory Peer Agent has been reached.
- CONNECTION_LOST_DEVICE_DETACHED - Static variable in class com.samsung.android.sdk.accessory.SASocket
-
Service Connection lost as the Accessory Device was detached.
- CONNECTION_LOST_PEER_DISCONNECTED - Static variable in class com.samsung.android.sdk.accessory.SASocket
-
Service Connection lost as the remote Accessory Peer Agent closed the Service Connection.
- CONNECTION_LOST_RETRANSMISSION_FAILED - Static variable in class com.samsung.android.sdk.accessory.SASocket
-
Service Connection lost as it required retransmission.
- CONNECTION_LOST_UNKNOWN_REASON - Static variable in class com.samsung.android.sdk.accessory.SASocket
-
Service Connection lost as unspecified error is occurred by Samsung Accessory Service Framework.
- CONNECTION_SUCCESS - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Service Connection has been established successfully.
- CONNECTION_SUCCESS - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Service Connection has been established successfully.
D
- DEVICE_ACCESSORY - Static variable in class com.samsung.android.sdk.accessory.SA
-
Accessory feature ID
- DEVICE_ACCESSORY - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAft
-
Accessory feature ID
- DEVICE_NOT_SUPPORTED - Static variable in exception com.samsung.android.sdk.SsdkUnsupportedException
-
DEVICE_NOT_SUPPORTED indicates that Device does not supported.
E
- ERROR_AGENT_REQUEST_IN_PROGRESS - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Requested Agent Class is being released.
- ERROR_CHANNEL_IO - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending or receiving a file failed as the Samsung Accessory Service Framework failed to send or receive the file.
- ERROR_CLASS_NOT_FOUND - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Requested Agent Class is not found.
- ERROR_COMMAND_DROPPED - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Receiving a file failed as a request was made in an invalid state.
- ERROR_CONNECTION_INVALID_PARAM - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Data kept by Samsung Accessory Service Framework was lost and cannot be recovered from this error in runtime.
- ERROR_CONNECTION_INVALID_PARAM - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Data kept by Samsung Accessory Service Framework was lost and cannot be recovered from this error in runtime.
- ERROR_CONNECTION_LOST - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending or receiving a file failed as the Service Connection with the connected Peer Agent was lost. *
Note: In this case, the sender application should check if the Accessory device has been detached or not.
- ERROR_CONSTRUCTOR_EXCEPTION - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Requested Agent Class constructor threw an exception.
- ERROR_CONSTRUCTOR_NOT_FOUND - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Requested Agent Class Constructor is not found.
- ERROR_FATAL - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Fatal error occurred such as binding failure or if the Samsung Accessory Service Framework has stopped.
- ERROR_FATAL - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Fatal error occurred such as binding failure or if the Samsung Accessory Service Framework has stopped.
- ERROR_FATAL - Static variable in class com.samsung.android.sdk.accessory.SASocket
-
Service Connection lost as binding with Samsung Accessory Service Framework has stopped unexpectedly.
- ERROR_FATAL - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Fatal error occurred.
- ERROR_FILE_IO - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending or receiving a file failed as relevant file failed in reading or writing.
- ERROR_NONE - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
File transfer succeeded.
- ERROR_NOT_SUPPORTED - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Called method is not supported by Samsung Accessory File Transfer Service.
- ERROR_PEER_AGENT_BUSY - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending a file failed as the receiver Peer Agent was already busy receiving another file.
- ERROR_PEER_AGENT_NO_RESPONSE - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
The remote Accessory Peer Agent does not give any response within the timeout period which depends on Samsung Accessory Service Framework.
- ERROR_PEER_AGENT_NO_RESPONSE - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending or receiving a file failed as the connected Peer Agent was not responding.
- ERROR_PEER_AGENT_NOT_SUPPORTED - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
The remote Accessory Peer Agent does not support Message Service feature.
- ERROR_PEER_AGENT_REJECTED - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending a file failed as the connected Peer Agent rejected or cancelled the file transfer.
- ERROR_PEER_AGENT_UNREACHABLE - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
The remote Accessory Peer Agent is not reachable or not alive to receive any messages.
- ERROR_PEER_SERVICE_NOT_SUPPORTED - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
Samsung Accessory Service Framework on the remote device does not support Message Service feature.
- ERROR_PERMISSION_DENIED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Binding to Samsung Accessory Service failed due to permission issue.
- ERROR_PERMISSION_DENIED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Binding to Samsung Accessory Service failed due to permission issue.
- ERROR_PERMISSION_FAILED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Binding to Samsung Accessory Service failed due to permission mismatch.
- ERROR_PERMISSION_FAILED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Binding to Samsung Accessory Service failed due to permission mismatch.
- ERROR_REQUEST_NOT_QUEUED - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending a file failed as the Samsung Accessory Service Framework failed to queue the sending file request.
- ERROR_SDK_NOT_INITIALIZED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Samsung Accessory SDK is not initialized.
- ERROR_SDK_NOT_INITIALIZED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Samsung Accessory SDK is not initialized.
- ERROR_SERVICE_NOT_SUPPORTED - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
Samsung Accessory Service Framework on this device does not support Message Service feature.
- ERROR_SPACE_NOT_AVAILABLE - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sending a file failed as the connected Peer Agent did not have enough free space available.
- ERROR_TRANSACTION_NOT_FOUND - Static variable in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Canceling all transactions failed as there were no transactions being executed for the application.
- ERROR_UNKNOWN - Static variable in class com.samsung.android.sdk.accessory.SAMessage
-
The remote Accessory Peer Agent has some internal error which occurred on the remote device.
F
- FINDPEER_DEVICE_NOT_CONNECTED - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Accessory Devices are not connected.
- FINDPEER_DEVICE_NOT_CONNECTED - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Accessory Devices are not connected.
- FINDPEER_DUPLICATE_REQUEST - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Another request to find an Accessory Peer Agent calling
SAAgent.findPeerAgents()
is still in progress. - FINDPEER_DUPLICATE_REQUEST - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Another request to find an Accessory Peer Agent calling
SAAgentV2.findPeerAgents()
is still in progress. - FINDPEER_SERVICE_NOT_FOUND - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
No matching Accessory Peer Agents exist on connected Accessory Devices.
- FINDPEER_SERVICE_NOT_FOUND - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
No matching Accessory Peer Agents exist on connected Accessory Devices.
- findPeerAgents() - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Finds matching Accessory Peer Agents.
- findPeerAgents() - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Finds matching Accessory Peer Agents.
G
- getAccessory() - Method in class com.samsung.android.sdk.accessory.SAPeerAgent
-
Returns the instance of
SAPeerAccessory
hosting this Accessory Peer Agent. - getAccessoryId() - Method in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Returns the unique Accessory ID of the connected remote Accessory Device.
- getAddress() - Method in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Returns the current address of the connected remote Accessory Device.
- getAppName() - Method in class com.samsung.android.sdk.accessory.SAPeerAgent
-
Returns the name of the application to which the Accessory Peer Agent belongs.
- getAuthenticationType() - Method in class com.samsung.android.sdk.accessory.SAAuthenticationToken
-
Returns the authentication type.
- getConnectedPeerAgent() - Method in class com.samsung.android.sdk.accessory.SASocket
-
Returns the instance of the currently connected
SAPeerAgent
. - getKey() - Method in class com.samsung.android.sdk.accessory.SAAuthenticationToken
-
Returns the key corresponding to this authentication token.
- getMaxAllowedDataSize() - Method in class com.samsung.android.sdk.accessory.SAPeerAgent
-
Returns the maximum allowed data size on sending application data.
- getMaxAllowedMessageSize() - Method in class com.samsung.android.sdk.accessory.SAPeerAgent
-
Returns the maximum allowed message size on sending application message.
- getName() - Method in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Returns the human readable friendly name of the remote Accessory Device.
- getPeerId() - Method in class com.samsung.android.sdk.accessory.SAPeerAgent
-
Returns the Accessory Peer Agent ID.
- getProductId() - Method in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Returns the product ID of the remote Accessory Device.
- getProfileVersion() - Method in class com.samsung.android.sdk.accessory.SAPeerAgent
-
Returns the version of the Accessory Service Profile that the Accessory Peer Agent supports.
- getServiceChannelId(int) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Gets the service channel ID at the specific index of the list that is declared in the Service Profile XML.
- getServiceChannelId(int) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Gets the service channel ID at the specific index of the list that is declared in the Service Profile XML.
- getServiceChannelSize() - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Gets the size of the service channel list that is declared in the Service Profile XML.
- getServiceChannelSize() - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Gets the size of the service channel list that is declared in the Service Profile XML.
- getServiceProfileId() - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Gets the service profile ID that is declared in the Service Profile XML.
- getServiceProfileId() - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Gets the service profile ID that is declared in the Service Profile XML.
- getServiceProfileName() - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Gets the service profile name that is declared in the Service Profile XML.
- getServiceProfileName() - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Gets the service profile name that is declared in the Service Profile XML.
- getTransportType() - Method in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Returns the current transport type supported by the connected remote Accessory Device.
- getType() - Method in exception com.samsung.android.sdk.SsdkUnsupportedException
-
Returns error type when SDK failed to initialize.
- getVendorId() - Method in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Returns the vendor ID of the connected remote Accessory Device.
- getVersionCode() - Method in class com.samsung.android.sdk.accessory.SA
-
Returns the version number of the Samsung Accessory SDK.
- getVersionName() - Method in class com.samsung.android.sdk.accessory.SA
-
Returns the version name of the Samsung Accessory SDK.
I
- initialize(Context) - Method in class com.samsung.android.sdk.accessory.SA
-
Initializes an instance of the Samsung Accessory SDK.
- initialize(Context) - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAft
-
Initializes an instance of the Samsung Accessory File Transfer SDK.
- isConnected() - Method in class com.samsung.android.sdk.accessory.SASocket
-
Returns the status of the underlying Service Connection.
- isFeatureEnabled(int) - Method in class com.samsung.android.sdk.accessory.SA
-
Returns
true
if the Accessory feature on the device is enabled. - isFeatureEnabled(int) - Method in class com.samsung.android.sdk.accessory.SAPeerAgent
-
Returns
true
if the Accessory feature on the remote Accessory Peer Agent is enabled. - isFeatureEnabled(int) - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAft
-
Returns
true
if the Accessory File Transfer feature on the device is enabled.
L
- LIBRARY_NOT_INSTALLED - Static variable in exception com.samsung.android.sdk.SsdkUnsupportedException
-
LIBRARY_NOT_INSTALLED indicates that SDK library is not installed.
- LIBRARY_UPDATE_IS_RECOMMENDED - Static variable in exception com.samsung.android.sdk.SsdkUnsupportedException
-
LIBRARY_UPDATE_IS_RECOMMENDED indicates that SDK library update is recommended.
- LIBRARY_UPDATE_IS_REQUIRED - Static variable in exception com.samsung.android.sdk.SsdkUnsupportedException
-
LIBRARY_UPDATE_IS_REQUIRED indicates that user must install SDK library to use the application.
O
- onAgentAvailable(SAAgentV2) - Method in interface com.samsung.android.sdk.accessory.SAAgentV2.RequestAgentCallback
-
Called when creating a new
SAAgentV2
instance or getting existed instance from static HashMap are completed. - onAuthenticationResponse(SAPeerAgent, SAAuthenticationToken, int) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Called when the Accessory Peer Agent authentication is completed.
- onAuthenticationResponse(SAPeerAgent, SAAuthenticationToken, int) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Called when the Accessory Peer Agent authentication is completed.
- onCancelAllCompleted(int) - Method in interface com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer.EventListener
-
Called when canceling all of the transactions requested by application is completed.
- onError(SAPeerAgent, String, int) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Called when an
SAAgent
error occurs in Samsung Accessory Service Framework. - onError(SAPeerAgent, String, int) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Called when an
SAAgentV2
error occurs in Samsung Accessory Service Framework. - onError(int, String) - Method in interface com.samsung.android.sdk.accessory.SAAgentV2.RequestAgentCallback
-
Called when requesting
SAAgentV2
instance is failed with error. - onError(SAPeerAgent, int, int) - Method in class com.samsung.android.sdk.accessory.SAMessage
-
Called when the message cannot be sent or is not delivered to the remote Accessory Peer Agent.
- onError(int, String, int) - Method in class com.samsung.android.sdk.accessory.SASocket
-
Called when an error occurs.
- onFindPeerAgentsResponse(SAPeerAgent[], int) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Called when the discovery for matching Accessory Peer Agents is completed.
- onFindPeerAgentsResponse(SAPeerAgent[], int) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Called when the discovery for matching Accessory Peer Agents is completed.
- onPeerAgentsUpdated(SAPeerAgent[], int) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Called when the status of remote Accessory Peer Agent on a connected remote Accessory Devices changes.
- onPeerAgentsUpdated(SAPeerAgent[], int) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Called when the status of remote Accessory Peer Agent on a connected remote Accessory Devices changes.
- onProgressChanged(int, int) - Method in interface com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer.EventListener
-
Called when the progress of file transfer changes.
- onReceive(SAPeerAgent, byte[]) - Method in class com.samsung.android.sdk.accessory.SAMessage
-
Called when a message is received from a remote Accessory Peer Agent.
- onReceive(int, byte[]) - Method in class com.samsung.android.sdk.accessory.SASocket
-
Called when a data is received from the remote Accessory Peer Agent.
- onSent(SAPeerAgent, int) - Method in class com.samsung.android.sdk.accessory.SAMessage
-
Called when the message is successfully delivered to the remote Accessory Peer Agent.
- onServiceConnectionLost(int) - Method in class com.samsung.android.sdk.accessory.SASocket
-
Called when the Service Connection is lost with the remote Accessory Peer Agent by a hard loss of the network or when graceful Service Connection termination ends.
- onServiceConnectionRequested(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Called when a remote Accessory Peer Agent requests a Service Connection.
- onServiceConnectionRequested(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Called when a remote Accessory Peer Agent requests a Service Connection.
- onServiceConnectionResponse(SAPeerAgent, SASocket, int) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Called when a Service Connection to a remote Accessory Peer Agent is established or failed.
- onServiceConnectionResponse(SAPeerAgent, SASocket, int) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Called when a Service Connection to a remote Accessory Peer Agent is established or failed.
- onTransferCompleted(int, String, int) - Method in interface com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer.EventListener
-
Called when the file transfer is completed.
- onTransferRequested(int, String) - Method in interface com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer.EventListener
-
Called when a file transfer request from Peer Agent has arrived to the receiver Peer Agent.
P
- PEER_AGENT_AVAILABLE - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Accessory Peer Agents have been available on a remote Accessory Device.
- PEER_AGENT_AVAILABLE - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Accessory Peer Agents have been available on a remote Accessory Device.
- PEER_AGENT_FOUND - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Accessory Peer Agents have been found.
- PEER_AGENT_FOUND - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Accessory Peer Agents have been found.
- PEER_AGENT_UNAVAILABLE - Static variable in class com.samsung.android.sdk.accessory.SAAgent
-
Accessory Peer Agents have been unavailable on a remote Accessory Device.
- PEER_AGENT_UNAVAILABLE - Static variable in class com.samsung.android.sdk.accessory.SAAgentV2
-
Accessory Peer Agents have been unavailable on a remote Accessory Device.
R
- receive(int, String) - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Accepts a file transfer from a connected Peer Agent.
- reject(int) - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Rejects a file transfer from a connected Peer Agent.
- rejectServiceConnectionRequest(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Rejects a Service Connection request from the remote Accessory Peer Agent.
- rejectServiceConnectionRequest(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Rejects a Service Connection request from the remote Accessory Peer Agent.
- releaseAgent() - Method in class com.samsung.android.sdk.accessory.SAAgentV2
- requestAgent(Context, String, SAAgentV2.RequestAgentCallback) - Static method in class com.samsung.android.sdk.accessory.SAAgentV2
- requestServiceConnection(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgent
-
Requests a Service Connection with a remote Accessory Peer Agent.
- requestServiceConnection(SAPeerAgent) - Method in class com.samsung.android.sdk.accessory.SAAgentV2
-
Requests a Service Connection with a remote Accessory Peer Agent.
S
- SA - Class in com.samsung.android.sdk.accessory
-
SA is the entry class that provides access to the Samsung Accessory SDK.
- SA() - Constructor for class com.samsung.android.sdk.accessory.SA
-
Creates an SA instance.
- SAAgent - Class in com.samsung.android.sdk.accessory
-
SAAgent provides the main interface between Service Provider and Service Consumer applications and Samsung Accessory Service Framework.
- SAAgent(String, Class<? extends SASocket>) - Constructor for class com.samsung.android.sdk.accessory.SAAgent
- SAAgent(String) - Constructor for class com.samsung.android.sdk.accessory.SAAgent
-
Creates an
SAAgent
instance with the specified name. - SAAgentV2 - Class in com.samsung.android.sdk.accessory
-
SAAgentV2 provides the main interface between Service Provider and Service Consumer applications and Samsung Accessory Service Framework.
- SAAgentV2(String, Context) - Constructor for class com.samsung.android.sdk.accessory.SAAgentV2
-
Creates an
SAAgentV2
instance with the specified name. - SAAgentV2(String, Context, Class<? extends SASocket>) - Constructor for class com.samsung.android.sdk.accessory.SAAgentV2
- SAAgentV2.RequestAgentCallback - Interface in com.samsung.android.sdk.accessory
-
Callback interface for
SAAgentV2.requestAgent(Context, String, RequestAgentCallback)
to receiveSAAgentV2
instance. - SAAuthenticationToken - Class in com.samsung.android.sdk.accessory
-
SAAuthenticationToken stores the type of authentication (currently, only support X.509 certificate), and the key corresponding to the authentication type.
- SAFileTransfer - Class in com.samsung.android.sdk.accessoryfiletransfer
-
SAFileTransfer provides the main interface to exchange a file between the Accessory Peer Agents.
- SAFileTransfer(SAAgent, SAFileTransfer.EventListener) - Constructor for class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Creates an SAFileTransfer instance with the specified
SAAgent
andSAFileTransfer.EventListener
instances. - SAFileTransfer.EventListener - Interface in com.samsung.android.sdk.accessoryfiletransfer
-
Provides callbacks invoked when messages related to the file transfer transaction are received.
- SAft - Class in com.samsung.android.sdk.accessoryfiletransfer
-
SAft is the entry class that provides access to the Samsung Accessory File Transfer SDK.
- SAft() - Constructor for class com.samsung.android.sdk.accessoryfiletransfer.SAft
-
Creates an SAft instance
- SAMessage - Class in com.samsung.android.sdk.accessory
-
SAMessage represents an instance for a Message Service between a Service Provider and a Service Consumer.
- SAMessage(SAAgent) - Constructor for class com.samsung.android.sdk.accessory.SAMessage
-
Creates an
SAMessage
instance with the specified SAAgent. - SAPeerAccessory - Class in com.samsung.android.sdk.accessory
-
SAPeerAccessory represents a remote Accessory Device visible on one of the supported transports.
- SAPeerAgent - Class in com.samsung.android.sdk.accessory
-
SAPeerAgent represents a remote Accessory Peer Agent.
- SASocket - Class in com.samsung.android.sdk.accessory
-
SASocket represents an instance of a Service Connection between a Service Provider and a Service Consumer.
- SASocket(String) - Constructor for class com.samsung.android.sdk.accessory.SASocket
-
Creates an
SASocket
instance. - secureSend(SAPeerAgent, byte[]) - Method in class com.samsung.android.sdk.accessory.SAMessage
-
Same like
SAMessage.send(SAPeerAgent, byte[])
but the message will be encrypted internally. - secureSend(int, byte[]) - Method in class com.samsung.android.sdk.accessory.SASocket
-
Sends encrypted data to a remote Accessory Peer Agent.
- send(SAPeerAgent, byte[]) - Method in class com.samsung.android.sdk.accessory.SAMessage
-
Send a message to a remote Accessory Peer Agent.
- send(int, byte[]) - Method in class com.samsung.android.sdk.accessory.SASocket
-
Sends data to a remote Accessory Peer Agent.
- send(SAPeerAgent, String) - Method in class com.samsung.android.sdk.accessoryfiletransfer.SAFileTransfer
-
Sends a file to a connected Peer Agent.
- SERVICE_MESSAGE - Static variable in class com.samsung.android.sdk.accessory.SA
-
Message Service feature ID.
- SsdkUnsupportedException - Exception in com.samsung.android.sdk
-
This exception is thrown to indicate that vendor is not Samsung or device does not supported, or SDK version does not match.
- SsdkUnsupportedException(String, int) - Constructor for exception com.samsung.android.sdk.SsdkUnsupportedException
-
Constructs a
SsdkUnsupportedException
class with the specified detail message and error type.
T
- TRANSPORT_BLE - Static variable in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Bluetooth Low Energy (Bluetooth v4.0) transport type.
- TRANSPORT_BT - Static variable in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Bluetooth transport type.
- TRANSPORT_USB - Static variable in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
USB transport type.
- TRANSPORT_WIFI - Static variable in class com.samsung.android.sdk.accessory.SAPeerAccessory
-
Wi-Fi transport type.
V
- VENDOR_NOT_SUPPORTED - Static variable in exception com.samsung.android.sdk.SsdkUnsupportedException
-
VENDOR_NOT_SUPPORTED indicates that Vendor is not Samsung.