Android SDK Version
All Implemented Interfaces:
android.os.Parcelable


public class DeviceAuthMethodHandler
extends LoginMethodHandler
Nested Class Summary
Modifier and TypeClassDescription
public classDeviceAuthMethodHandler.Companion
Field Summary
Modifier and TypeFieldDescription
private final StringnameForLogging
private Map<String, String>methodLoggingExtras
private LoginClientloginClient
Constructor Summary
ConstructorDescription
DeviceAuthMethodHandler(LoginClient loginClient)
Method Summary
Modifier and TypeMethodDescription
StringgetNameForLogging()
final Map<String, String>getMethodLoggingExtras()
final UnitsetMethodLoggingExtras(Map<String, String> methodLoggingExtras)
final LoginClientgetLoginClient()
final UnitsetLoginClient(LoginClient loginClient)
IntegertryAuthorize(LoginClient.Request request)
UnitonCancel() Invoke it when the user cancels the login.
UnitonError(Exception ex) Invoke it when an error is received.
UnitonSuccess(String accessToken, String applicationId, String userId, Collection<String> permissions, Collection<String> declinedPermissions, Collection<String> expiredPermissions, AccessTokenSource accessTokenSource, Date expirationTime, Date lastRefreshTime, Date dataAccessExpirationTime) Invoke it when the login flow succeeds and the access token is returned.
IntegerdescribeContents()
Methods inherited from class com.facebook.login.DeviceAuthMethodHandler
cancel, needsInternetPermission, onActivityResult, putChallengeParam, shouldKeepTrackOfMultipleIntents, writeToParcel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

DeviceAuthMethodHandler

DeviceAuthMethodHandler(LoginClient loginClient)
Method Detail

getNameForLogging

StringgetNameForLogging()

getMethodLoggingExtras

 final Map<String, String> getMethodLoggingExtras()

setMethodLoggingExtras

 final UnitsetMethodLoggingExtras(Map<String, String> methodLoggingExtras)

getLoginClient

 final LoginClientgetLoginClient()

setLoginClient

 final UnitsetLoginClient(LoginClient loginClient)

onCancel

UnitonCancel()
Invoke it when the user cancels the login.

onError

UnitonError(Exception ex)
Invoke it when an error is received.

onSuccess

UnitonSuccess(String accessToken, String applicationId, String userId, Collection<String> permissions, Collection<String> declinedPermissions, Collection<String> expiredPermissions, AccessTokenSource accessTokenSource, Date expirationTime, Date lastRefreshTime, Date dataAccessExpirationTime)
Invoke it when the login flow succeeds and the access token is returned.

describeContents

IntegerdescribeContents()