to top
Android APIs
public class

ContentProviderResult

extends Object
implements Parcelable
java.lang.Object
   ↳ android.content.ContentProviderResult

Class Overview

Contains the result of the application of a ContentProviderOperation. It is guaranteed to have exactly one of uri or count set.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<ContentProviderResult> CREATOR
public final Integer count
public final Uri uri
Public Constructors
ContentProviderResult(Uri uri)
ContentProviderResult(int count)
ContentProviderResult(Parcel source)
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
String toString()
Returns a string containing a concise, human-readable description of this object.
void writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<ContentProviderResult> CREATOR

Added in API level 5

public final Integer count

Added in API level 5

public final Uri uri

Added in API level 5

Public Constructors

public ContentProviderResult (Uri uri)

Added in API level 5

public ContentProviderResult (int count)

Added in API level 5

public ContentProviderResult (Parcel source)

Added in API level 5

Public Methods

public int describeContents ()

Added in API level 5

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public String toString ()

Added in API level 5

Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:

   getClass().getName() + '@' + Integer.toHexString(hashCode())

See Writing a useful toString method if you intend implementing your own toString method.

Returns
  • a printable representation of this object.

public void writeToParcel (Parcel dest, int flags)

Added in API level 5

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written.
flags Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.