FileDocCategorySizeDatePackage
RestoreSet.javaAPI DocAndroid 5.1 API2501Thu Mar 12 22:22:10 GMT 2015android.app.backup

RestoreSet

public class RestoreSet extends Object implements android.os.Parcelable
Descriptive information about a set of backed-up app data available for restore. Used by IRestoreSession clients.
hide

Fields Summary
public String
name
Name of this restore set. May be user generated, may simply be the name of the handset model, e.g. "T-Mobile G1".
public String
device
Identifier of the device whose data this is. This will be as unique as is practically possible; for example, it might be an IMEI.
public long
token
Token that identifies this backup set unambiguously to the backup/restore transport. This is guaranteed to be valid for the duration of a restore session, but is meaningless once the session has ended.
public static final Parcelable.Creator
CREATOR
Constructors Summary
public RestoreSet()

        // Leave everything zero / null
    
public RestoreSet(String _name, String _dev, long _token)

        name = _name;
        device = _dev;
        token = _token;
    
private RestoreSet(android.os.Parcel in)


       
        name = in.readString();
        device = in.readString();
        token = in.readLong();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeString(name);
        out.writeString(device);
        out.writeLong(token);