FileDocCategorySizeDatePackage
AccountManagerResponse.javaAPI DocAndroid 5.1 API2283Thu Mar 12 22:22:08 GMT 2015android.accounts

AccountManagerResponse

public class AccountManagerResponse extends Object implements android.os.Parcelable
Used to return a response to the AccountManager.
hide

Fields Summary
private IAccountManagerResponse
mResponse
public static final Creator
CREATOR
Constructors Summary
public AccountManagerResponse(IAccountManagerResponse response)

hide

        mResponse = response;
    
public AccountManagerResponse(android.os.Parcel parcel)

hide

        mResponse =
                IAccountManagerResponse.Stub.asInterface(parcel.readStrongBinder());
    
Methods Summary
public intdescribeContents()

hide

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

        try {
            mResponse.onError(errorCode, errorMessage);
        } catch (RemoteException e) {
            // this should never happen
        }
    
public voidonResult(android.os.Bundle result)

        try {
            mResponse.onResult(result);
        } catch (RemoteException e) {
            // this should never happen
        }
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

hide

        dest.writeStrongBinder(mResponse.asBinder());