public static interface SAAgentV2.RequestAgentCallback
SAAgentV2.requestAgent(Context, String, RequestAgentCallback)
to receive SAAgentV2
instance.Modifier and Type | Method and Description |
---|---|
void |
onAgentAvailable(SAAgentV2 agent)
Called when creating a new
SAAgentV2 instance or getting existed instance from static HashMap are completed. |
void |
onError(int errorCode,
java.lang.String message)
Called when requesting
SAAgentV2 instance is failed with error. |
void onAgentAvailable(SAAgentV2 agent)
SAAgentV2
instance or getting existed instance from static HashMap are completed.agent
- The instance of implemented SAAgentV2
.void onError(int errorCode, java.lang.String message)
SAAgentV2
instance is failed with error.errorCode
- The error code corresponding to SAAgentV2.ERROR_CLASS_NOT_FOUND
, SAAgentV2.ERROR_CONSTRUCTOR_NOT_FOUND
,
SAAgentV2.ERROR_CONSTRUCTOR_EXCEPTION
, or SAAgentV2.ERROR_AGENT_REQUEST_IN_PROGRESS
.message
- The message of error.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.