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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidbooleanstart(Activity contextActivity, AuthorizationRequest request) voidstop()voidUnbinds from the Custom Tabs Service.
-
Constructor Details
-
BrowserAuthHandler
public BrowserAuthHandler()
-
-
Method Details
-
start
- Specified by:
startin interfaceAuthorizationHandler
-
stop
public void stop()- Specified by:
stopin interfaceAuthorizationHandler
-
setOnCompleteListener
- Specified by:
setOnCompleteListenerin interfaceAuthorizationHandler
-
isAuthInProgress
public boolean isAuthInProgress()- Specified by:
isAuthInProgressin interfaceAuthorizationHandler
-
unbindCustomTabsService
public void unbindCustomTabsService()Unbinds from the Custom Tabs Service.
-