Class Dialog.LoginDialog

  • Enclosing class:
    Dialog

    public static class Dialog.LoginDialog
    extends Dialog.IdDialog
    Login Dialog Used to ask credentials to the user
    • Method Detail

      • getDefaultUsername

        @MainThread
        public String getDefaultUsername()
        Get the default user name that should be pre-filled
      • asksStore

        @MainThread
        public boolean asksStore()
        Should the dialog ask to the user to store the credentials ?
        Returns:
        if true, add a checkbox that ask to the user if he wants to store the credentials
      • postLogin

        @MainThread
        public void postLogin​(String username,
                              String password,
                              boolean store)
        Post an answer
        Parameters:
        username - valid username (can't be empty)
        password - valid password (can be empty)
        store - if true, store the credentials