public class

DriveId

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.drive.DriveId

Class Overview

Note: The Google Drive Android API is currently in developer preview. Applications compiled using this version of the API will continue to operate on devices using future versions of Google Play services; however, changes to the API are expected in future releases.

A canonical identifier for a Drive resource.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<DriveId> CREATOR
Public Methods
static DriveId createFromResourceId(String resourceId)
Creates a DriveId from the provided remote Drive resource id.
static DriveId decodeFromString(String s)
Decodes the result of encodeToString() back into a DriveId.
int describeContents()
final String encodeToString()
Returns a String representation of this DriveId that can be safely persisted, and from which an equal DriveId can later be reconstructed via decodeFromString(String).
boolean equals(Object obj)
String getResourceId()
Returns the remote Drive resource id associated with the resource.
int hashCode()
String toString()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<DriveId> CREATOR

Public Methods

public static DriveId createFromResourceId (String resourceId)

Creates a DriveId from the provided remote Drive resource id.

public static DriveId decodeFromString (String s)

Decodes the result of encodeToString() back into a DriveId.

Throws
IllegalArgumentException if the argument is not a valid result of encodeToString().

public int describeContents ()

public final String encodeToString ()

Returns a String representation of this DriveId that can be safely persisted, and from which an equal DriveId can later be reconstructed via decodeFromString(String).

public boolean equals (Object obj)

public String getResourceId ()

Returns the remote Drive resource id associated with the resource. May be null for local resources that have not yet been synchronized to the Drive service.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel out, int flags)