Codota Logo
LoginRestClient.loginWithUser
Code IndexAdd Codota to your IDE (free)

How to use
loginWithUser
method
in
org.matrix.androidsdk.rest.client.LoginRestClient

Best Java code snippets using org.matrix.androidsdk.rest.client.LoginRestClient.loginWithUser (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: matrix-org/matrix-android-sdk

/**
 * Attempt to login with username/password
 *
 * @param user     the username
 * @param password the password
 * @param callback the callback success and failure callback
 */
public void loginWithUser(final String user, final String password, final ApiCallback<Credentials> callback) {
  loginWithUser(user, password, null, null, callback);
}
origin: tijder/SmsMatrix

private void login(String username, String password) {
  new LoginRestClient(hsConfig).loginWithUser(username, password, deviceName, new SimpleApiCallback<Credentials>() {
    @Override
    public void onSuccess(Credentials credentials) {
      super.onSuccess(credentials);
      onLogin(credentials);
    }
    @Override
    public void onMatrixError(MatrixError e) {
      Log.e(TAG, "onLogin MatrixError" + e);
    }
    @Override
    public void onNetworkError(Exception e) {
      Log.e(TAG, "onLogin Network error" + e);
    }
    @Override
    public void onUnexpectedError(Exception e) {
      Log.e(TAG, "onLogin Unexpected error" + e);
    }
  });
}
origin: matrix-org/matrix-android-sdk

loginRestClient.loginWithUser(userName, password, new TestApiCallback<Credentials>(lock) {
  @Override
  public void onSuccess(Credentials credentials) {
org.matrix.androidsdk.rest.clientLoginRestClientloginWithUser

Javadoc

Attempt to login with username/password

Popular methods of LoginRestClient

  • <init>
    Public constructor.
  • register
    Request an account creation
  • getSupportedLoginFlows
    Retrieve the login supported flows. It should be done to check before displaying a default login for
  • getVersions
    Get Versions supported by the server and other server capabilities
  • login
    Make login request
  • loginWith3Pid
    Attempt to login with 3pid/password
  • loginWithPhoneNumber
    Attempt to login with phone number/password
  • loginWithToken
    Attempt a user/token log in.
  • logout
    Invalidate the access token, so that it can no longer be used for authorization.
  • setCredentials
  • setUnsentEventsManager
  • setUnsentEventsManager

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now