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 int
CUSTOM_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 void
close()
void
onAttachedToWindow()
protected void
onCreate(android.os.Bundle savedInstanceState)
void
onDetachedFromWindow()
protected void
onStop()
void
setOnCompleteListener(AuthorizationHandler.OnCompleteListener listener)
void
unbindCustomTabsService()
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:
onCreate
in classandroid.app.Dialog
-
unbindCustomTabsService
public void unbindCustomTabsService()
Unbinds from the Custom Tabs Service.
-
onAttachedToWindow
public void onAttachedToWindow()
- Specified by:
onAttachedToWindow
in interfaceandroid.view.Window.Callback
- Overrides:
onAttachedToWindow
in classandroid.app.Dialog
-
onDetachedFromWindow
public void onDetachedFromWindow()
- Specified by:
onDetachedFromWindow
in interfaceandroid.view.Window.Callback
- Overrides:
onDetachedFromWindow
in classandroid.app.Dialog
-
onStop
protected void onStop()
- Overrides:
onStop
in classandroid.app.Dialog
-
close
public void close()
-
-