FileDocCategorySizeDatePackage
RestoreDescription.javaAPI DocAndroid 5.1 API3405Thu Mar 12 22:22:10 GMT 2015android.app.backup

RestoreDescription

public class RestoreDescription extends Object implements android.os.Parcelable
Description of the available restore data for a given package. Returned by a BackupTransport in response to a request about the next available restorable package.
see
BackupTransport#nextRestorePackage()
hide

Fields Summary
private final String
mPackageName
private final int
mDataType
private static final String
NO_MORE_PACKAGES_SENTINEL
public static final RestoreDescription
NO_MORE_PACKAGES
Return this constant RestoreDescription from BackupTransport.nextRestorePackage() to indicate that no more package data is available in the current restore operation.
public static final int
TYPE_KEY_VALUE
This package's restore data is an original-style key/value dataset
public static final int
TYPE_FULL_STREAM
This package's restore data is a tarball-type full data stream
public static final Parcelable.Creator
CREATOR
Constructors Summary
public RestoreDescription(String packageName, int dataType)

        mPackageName = packageName;
        mDataType = dataType;
    
private RestoreDescription(android.os.Parcel in)


       
        mPackageName = in.readString();
        mDataType = in.readInt();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public intgetDataType()

        return mDataType;
    
public java.lang.StringgetPackageName()

        return mPackageName;
    
public java.lang.StringtoString()


    
       
        return "RestoreDescription{" + mPackageName + " : "
                + ((mDataType == TYPE_KEY_VALUE) ? "KEY_VALUE" : "STREAM")
                + '}";
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeString(mPackageName);
        out.writeInt(mDataType);