com.samsung.android.sdk.accessory
Interface SAAgentV2.RequestAgentCallback
-
- Enclosing class:
- SAAgentV2
public static interface SAAgentV2.RequestAgentCallback
Callback interface forSAAgentV2.requestAgent(Context, String, RequestAgentCallback)
to receiveSAAgentV2
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
onAgentAvailable(SAAgentV2 agent)
Called when creating a newSAAgentV2
instance or getting existed instance from static HashMap are completed.void
onError(int errorCode, java.lang.String message)
Called when requestingSAAgentV2
instance is failed with error.
-
-
-
Method Detail
-
onAgentAvailable
void onAgentAvailable(SAAgentV2 agent)
Called when creating a newSAAgentV2
instance or getting existed instance from static HashMap are completed.- Parameters:
agent
- The instance of implementedSAAgentV2
.- Since:
- 2.6.0
-
onError
void onError(int errorCode, java.lang.String message)
Called when requestingSAAgentV2
instance is failed with error.- Parameters:
errorCode
- The error code corresponding toSAAgentV2.ERROR_CLASS_NOT_FOUND
,SAAgentV2.ERROR_CONSTRUCTOR_NOT_FOUND
,SAAgentV2.ERROR_CONSTRUCTOR_EXCEPTION
, orSAAgentV2.ERROR_AGENT_REQUEST_IN_PROGRESS
.message
- The message of error.- Since:
- 2.6.0
-
-