Class LoginDialog
- java.lang.Object
-
- android.app.Dialog
-
- com.spotify.sdk.android.auth.browser.LoginDialog
-
- All Implemented Interfaces:
android.content.DialogInterface,android.view.KeyEvent.Callback,android.view.View.OnCreateContextMenuListener,android.view.Window.Callback
public class LoginDialog extends android.app.Dialog
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface android.content.DialogInterface
android.content.DialogInterface.OnCancelListener, android.content.DialogInterface.OnClickListener, android.content.DialogInterface.OnDismissListener, android.content.DialogInterface.OnKeyListener, android.content.DialogInterface.OnMultiChoiceClickListener, android.content.DialogInterface.OnShowListener
-
-
Field Summary
Fields Modifier and Type Field Description static intCUSTOM_TAB_HIDDEN
-
Constructor Summary
Constructors Constructor Description LoginDialog(android.app.Activity contextActivity, int theme, AuthorizationRequest request)LoginDialog(android.app.Activity contextActivity, AuthorizationRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidonAttachedToWindow()protected voidonCreate(android.os.Bundle savedInstanceState)voidonDetachedFromWindow()protected voidonStop()voidsetOnCompleteListener(AuthorizationHandler.OnCompleteListener listener)voidunbindCustomTabsService()Unbinds from the Custom Tabs Service.-
Methods inherited from class android.app.Dialog
addContentView, cancel, closeOptionsMenu, create, dismiss, dispatchGenericMotionEvent, dispatchKeyEvent, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchTouchEvent, dispatchTrackballEvent, findViewById, getActionBar, getContext, getCurrentFocus, getLayoutInflater, getOwnerActivity, getSearchEvent, getVolumeControlStream, getWindow, hide, invalidateOptionsMenu, isShowing, onActionModeFinished, onActionModeStarted, onBackPressed, onContentChanged, onContextItemSelected, onContextMenuClosed, onCreateContextMenu, onCreateOptionsMenu, onCreatePanelMenu, onCreatePanelView, onGenericMotionEvent, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyShortcut, onKeyUp, onMenuItemSelected, onMenuOpened, onOptionsItemSelected, onOptionsMenuClosed, onPanelClosed, onPrepareOptionsMenu, onPreparePanel, onRestoreInstanceState, onSaveInstanceState, onSearchRequested, onSearchRequested, onStart, onTouchEvent, onTrackballEvent, onWindowAttributesChanged, onWindowFocusChanged, onWindowStartingActionMode, onWindowStartingActionMode, openContextMenu, openOptionsMenu, registerForContextMenu, requestWindowFeature, requireViewById, setCancelable, setCanceledOnTouchOutside, setCancelMessage, setContentView, setContentView, setContentView, setDismissMessage, setFeatureDrawable, setFeatureDrawableAlpha, setFeatureDrawableResource, setFeatureDrawableUri, setOnCancelListener, setOnDismissListener, setOnKeyListener, setOnShowListener, setOwnerActivity, setTitle, setTitle, setVolumeControlStream, show, takeKeyEvents, unregisterForContextMenu
-
-
-
-
Field Detail
-
CUSTOM_TAB_HIDDEN
public static final int CUSTOM_TAB_HIDDEN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LoginDialog
public LoginDialog(android.app.Activity contextActivity, AuthorizationRequest request)
-
LoginDialog
public LoginDialog(android.app.Activity contextActivity, int theme, AuthorizationRequest request)
-
-
Method Detail
-
setOnCompleteListener
public void setOnCompleteListener(@Nullable AuthorizationHandler.OnCompleteListener listener)
-
onCreate
protected void onCreate(android.os.Bundle savedInstanceState)
- Overrides:
onCreatein classandroid.app.Dialog
-
unbindCustomTabsService
public void unbindCustomTabsService()
Unbinds from the Custom Tabs Service.
-
onAttachedToWindow
public void onAttachedToWindow()
- Specified by:
onAttachedToWindowin interfaceandroid.view.Window.Callback- Overrides:
onAttachedToWindowin classandroid.app.Dialog
-
onDetachedFromWindow
public void onDetachedFromWindow()
- Specified by:
onDetachedFromWindowin interfaceandroid.view.Window.Callback- Overrides:
onDetachedFromWindowin classandroid.app.Dialog
-
onStop
protected void onStop()
- Overrides:
onStopin classandroid.app.Dialog
-
close
public void close()
-
-