# Class LoginCallback

java.lang.Object
com.codename1.social.LoginCallback

public abstract class LoginCallback extends java.lang.Object
This class is used to indicate whether login was successful or not, it is an abstract class rather than an interface in order to allow additional features in the future.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LoginCallback()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `loginFailed(String errorMessage)`
  Indicates that logging in to the social network has failed
  `void`
  `loginSuccessful()`
  Indicates that logging in to the social network has been successful

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LoginCallback

    public LoginCallback()

- ## Method Details

  - ### loginSuccessful

    public void loginSuccessful()
    Indicates that logging in to the social network has been successful

  - ### loginFailed

    public void loginFailed(String errorMessage)

    Indicates that logging in to the social network has failed

    ###### Parameters

    - `errorMessage`: the error message corresponding to this