Class BrowserAuthHandler
- java.lang.Object
-
- com.spotify.sdk.android.auth.browser.BrowserAuthHandler
-
- All Implemented Interfaces:
AuthorizationHandler
public class BrowserAuthHandler extends java.lang.Object implements AuthorizationHandler
An AuthorizationHandler that opens the Spotify web auth page in a Custom Tab
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.spotify.sdk.android.auth.AuthorizationHandler
AuthorizationHandler.OnCompleteListener
-
-
Constructor Summary
Constructors Constructor Description BrowserAuthHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setOnCompleteListener(AuthorizationHandler.OnCompleteListener listener)
boolean
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)
- Specified by:
setOnCompleteListener
in interfaceAuthorizationHandler
-
-