Class PlayStoreHandler
- java.lang.Object
-
- com.spotify.sdk.android.auth.store.PlayStoreHandler
-
- All Implemented Interfaces:
AuthorizationHandler
public class PlayStoreHandler extends java.lang.Object implements 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 Constructor Description PlayStoreHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setOnCompleteListener(AuthorizationHandler.OnCompleteListener listener)
AuthorizationHandler.OnCompleteListener.onError(Throwable)
will be called if no play store application is installedAuthorizationHandler.OnCompleteListener.onCancel()
will be called if the play store is launchedboolean
start(android.app.Activity contextActivity, AuthorizationRequest request)
void
stop()
-
-
-
Method Detail
-
start
public boolean start(android.app.Activity contextActivity, AuthorizationRequest request)
- Specified by:
start
in interfaceAuthorizationHandler
-
stop
public void stop()
- Specified by:
stop
in interfaceAuthorizationHandler
-
setOnCompleteListener
public void setOnCompleteListener(@Nullable AuthorizationHandler.OnCompleteListener listener)
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:
setOnCompleteListener
in interfaceAuthorizationHandler
-
-