FileDocCategorySizeDatePackage
AccountAuthenticatorResponse.javaAPI DocAndroid 5.1 API3260Thu Mar 12 22:22:08 GMT 2015android.accounts

AccountAuthenticatorResponse

public class AccountAuthenticatorResponse extends Object implements android.os.Parcelable
Object used to communicate responses back to the AccountManager

Fields Summary
private static final String
TAG
private IAccountAuthenticatorResponse
mAccountAuthenticatorResponse
public static final Creator
CREATOR
Constructors Summary
public AccountAuthenticatorResponse(IAccountAuthenticatorResponse response)

hide


          
       
        mAccountAuthenticatorResponse = response;
    
public AccountAuthenticatorResponse(android.os.Parcel parcel)

        mAccountAuthenticatorResponse =
                IAccountAuthenticatorResponse.Stub.asInterface(parcel.readStrongBinder());
    
Methods Summary
public intdescribeContents()

        return 0;
    
public voidonError(int errorCode, java.lang.String errorMessage)

        if (Log.isLoggable(TAG, Log.VERBOSE)) {
            Log.v(TAG, "AccountAuthenticatorResponse.onError: " + errorCode + ", " + errorMessage);
        }
        try {
            mAccountAuthenticatorResponse.onError(errorCode, errorMessage);
        } catch (RemoteException e) {
            // this should never happen
        }
    
public voidonRequestContinued()

        if (Log.isLoggable(TAG, Log.VERBOSE)) {
            Log.v(TAG, "AccountAuthenticatorResponse.onRequestContinued");
        }
        try {
            mAccountAuthenticatorResponse.onRequestContinued();
        } catch (RemoteException e) {
            // this should never happen
        }
    
public voidonResult(android.os.Bundle result)

        if (Log.isLoggable(TAG, Log.VERBOSE)) {
            result.keySet(); // force it to be unparcelled
            Log.v(TAG, "AccountAuthenticatorResponse.onResult: "
                    + AccountManager.sanitizeResult(result));
        }
        try {
            mAccountAuthenticatorResponse.onResult(result);
        } catch (RemoteException e) {
            // this should never happen
        }
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeStrongBinder(mAccountAuthenticatorResponse.asBinder());