Class BrowserAuthHandler
java.lang.Object
com.spotify.sdk.android.auth.browser.BrowserAuthHandler
- All Implemented Interfaces:
AuthorizationHandler
An AuthorizationHandler that opens the Spotify web auth page in a Custom Tab or users default web browser.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.spotify.sdk.android.auth.AuthorizationHandler
AuthorizationHandler.OnCompleteListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
boolean
start
(Activity contextActivity, AuthorizationRequest request) void
stop()
void
Unbinds from the Custom Tabs Service.
-
Constructor Details
-
BrowserAuthHandler
public BrowserAuthHandler()
-
-
Method Details
-
start
- Specified by:
start
in interfaceAuthorizationHandler
-
stop
public void stop()- Specified by:
stop
in interfaceAuthorizationHandler
-
setOnCompleteListener
- Specified by:
setOnCompleteListener
in interfaceAuthorizationHandler
-
isAuthInProgress
public boolean isAuthInProgress()- Specified by:
isAuthInProgress
in interfaceAuthorizationHandler
-
unbindCustomTabsService
public void unbindCustomTabsService()Unbinds from the Custom Tabs Service.
-