public class

LineLoginResult

extends Object
implements Parcelable
java.lang.Object
   ↳ com.linecorp.linesdk.auth.LineLoginResult

Class Overview

Represents a login result that is returned from the LINE Platform.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<LineLoginResult> CREATOR
Public Methods
static LineLoginResult authenticationAgentError(LineApiError errorData)
static LineLoginResult canceledError()
static LineLoginResult error(LineApiResponseCode resultCode, LineApiError errorData)
static LineLoginResult error(LineApiResponse<?> apiResponse)
LineApiError getErrorData()
Gets information about a login error that has occurred.
Boolean getFriendshipStatusChanged()
Gets the friendship status of the user and the bot linked to your LINE Login channel.
LineCredential getLineCredential()
Gets the user's credentials.
LineIdToken getLineIdToken()
Gets the ID token that contains the user's information.
LineProfile getLineProfile()
Gets the user's profile information.
String getNonce()
Gets the `nonce` value used for performing login in LINE.
LineApiResponseCode getResponseCode()
Gets the response code that the login returned.
static LineLoginResult internalError(Exception e)
static LineLoginResult internalError(LineApiError errorData)
static LineLoginResult internalError(String errorMessage)
boolean isSuccess()
Checks whether the login was successful.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<LineLoginResult> CREATOR

Public Methods

public static LineLoginResult authenticationAgentError (LineApiError errorData)

public static LineLoginResult canceledError ()

public static LineLoginResult error (LineApiResponseCode resultCode, LineApiError errorData)

public static LineLoginResult error (LineApiResponse<?> apiResponse)

public LineApiError getErrorData ()

Gets information about a login error that has occurred. This method should only be called if the login has failed.

Returns
  • A LineApiError object that contains information about the error if a login error has occurred. Contains a response of 0 and a null string if no error occurs.

public Boolean getFriendshipStatusChanged ()

Gets the friendship status of the user and the bot linked to your LINE Login channel.

Returns
  • True if the user has added the bot as a friend and has not blocked the bot; false otherwise.

public LineCredential getLineCredential ()

Gets the user's credentials.

Returns

public LineIdToken getLineIdToken ()

Gets the ID token that contains the user's information.

Returns

public LineProfile getLineProfile ()

Gets the user's profile information.

Returns

public String getNonce ()

Gets the `nonce` value used for performing login in LINE.

Returns
  • The `nonce` value used for performing login in LINE.

public LineApiResponseCode getResponseCode ()

Gets the response code that the login returned.

Returns
  • A LineApiResponseCode object with the response code that indicates whether the login was successful or not.

public static LineLoginResult internalError (Exception e)

public static LineLoginResult internalError (LineApiError errorData)

public static LineLoginResult internalError (String errorMessage)

public boolean isSuccess ()

Checks whether the login was successful.

Returns
  • True if the login is successful; false otherwise.