public interface ISimpleSignInResponseHandler
ISimpleSignInResponseHandler
and register their implementation instance of response handler by calling
SimpleSignInService.registerResponseHandler(android.content.Context, ISimpleSignInResponseHandler)
before calling any of the APIs listed in SimpleSignInService
Your registered implementation of this response handler will receive a asynchronous
callback as soon as Amazon completes the request made through available APIs.Modifier and Type | Method and Description |
---|---|
void |
onGetUserAndLinksResponse(GetUserAndLinksResponse getUserAndLinksResponse)
This callback method is invoked when the response
GetUserAndLinksResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.getUserAndLinks(String) |
void |
onLinkUserAccountResponse(LinkUserAccountResponse linkUserAccountResponse)
This callback method is invoked when the response
LinkUserAccountResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.linkUserAccount(com.amazon.device.simplesignin.model.request.LinkUserAccountRequest) |
void |
onRecordMetricsEventResponse(RecordMetricsEventResponse recordMetricsEventResponse)
This callback method is invoked when the response
RecordMetricsEventResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.recordMetricEvent(SSIEventRequest) |
void |
onShowLoginSelectionResponse(ShowLoginSelectionResponse showLoginSelectionResponse)
This callback method is invoked when the response
ShowLoginSelectionResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.showLoginSelection(java.util.Map) |
void onGetUserAndLinksResponse(GetUserAndLinksResponse getUserAndLinksResponse)
GetUserAndLinksResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.getUserAndLinks(String)
getUserAndLinksResponse
- response object containing directed ID and links established.void onLinkUserAccountResponse(LinkUserAccountResponse linkUserAccountResponse)
LinkUserAccountResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.linkUserAccount(com.amazon.device.simplesignin.model.request.LinkUserAccountRequest)
linkUserAccountResponse
- response object containing unique linkId that denotes
a link between user's amazon account and 3P account.void onShowLoginSelectionResponse(ShowLoginSelectionResponse showLoginSelectionResponse)
ShowLoginSelectionResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.showLoginSelection(java.util.Map)
showLoginSelectionResponse
- response object containing enum to sepcify the user's action
and unique linkId of the login name, if login is selected.void onRecordMetricsEventResponse(RecordMetricsEventResponse recordMetricsEventResponse)
RecordMetricsEventResponse
is available on Amazon side, which is initiated by our service API
SimpleSignInService.recordMetricEvent(SSIEventRequest)
recordMetricsEventResponse
-