Class PlayStoreHandler
java.lang.Object
com.spotify.sdk.android.auth.store.PlayStoreHandler
- All Implemented Interfaces:
AuthorizationHandler
An AuthorizationHandler that opens the play store to download the main Spotify application
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.spotify.sdk.android.auth.AuthorizationHandler
AuthorizationHandler.OnCompleteListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidAuthorizationHandler.OnCompleteListener.onError(Throwable)will be called if no play store application is installedAuthorizationHandler.OnCompleteListener.onCancel()will be called if the play store is launchedbooleanstart(Activity contextActivity, AuthorizationRequest request) voidstop()
-
Constructor Details
-
PlayStoreHandler
public PlayStoreHandler()
-
-
Method Details
-
start
- Specified by:
startin interfaceAuthorizationHandler
-
stop
public void stop()- Specified by:
stopin interfaceAuthorizationHandler
-
setOnCompleteListener
AuthorizationHandler.OnCompleteListener.onError(Throwable)will be called if no play store application is installedAuthorizationHandler.OnCompleteListener.onCancel()will be called if the play store is launched- Specified by:
setOnCompleteListenerin interfaceAuthorizationHandler
-
isAuthInProgress
public boolean isAuthInProgress()- Specified by:
isAuthInProgressin interfaceAuthorizationHandler
-