public interface UserProfileAccessListener
Clients must implement the UserProfileAccessListener and register an
instance of their implementation with
PurchasingService.registerUserProfileAccessListener(Context, UserProfileAccessListener)
before using other APIs in the PurchasingService.
Your registered implementation of UserProfileAccessListener
asynchronously receives callbacks when operations you initiate via methods in
the PurchasingService have completed.
For example, if you initiate a get auth code with
PurchasingService.requestUserProfileAccess(), you will eventually receive a
notification that the UserProfileAccessResponse is available by your
implemented onUserProfileAccessResponse(UserProfileAccessResponse)
method.
| Modifier and Type | Method and Description |
|---|---|
void |
onUserProfileAccessResponse(UserProfileAccessResponse userProfileAccessResponse)
This callback method is invoked when a
UserProfileAccessResponse is
available for a request initiated by
PurchasingService.requestUserProfileAccess(). |
void onUserProfileAccessResponse(UserProfileAccessResponse userProfileAccessResponse)
This callback method is invoked when a UserProfileAccessResponse is
available for a request initiated by
PurchasingService.requestUserProfileAccess().
userProfileAccessResponse - Response containing the auth code and status of the request.