Provides an abstract class to contain Open Graph values.
Use ShareOpenGraphValueContainer.Builder to create instances
Mở rộng: | Object |
Triển khai: | ShareModel |
Gói: | model |
get(String)
Gets a value out of the object.
public Object get(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getBoolean(String, boolean)
Gets a boolean value out of the object.
public boolean getBoolean(String key, boolean defaultValue)
Thông số | Mô tả |
---|---|
key | The key for the value. |
defaultValue | The value to return if no value is found for the specified key. |
getBooleanArray(String)
Gets an array of boolean values out of the object.
public boolean getBooleanArray(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getDouble(String, double)
Gets a double value out of the object.
public double getDouble(String key, double defaultValue)
Thông số | Mô tả |
---|---|
key | The key for the value. |
defaultValue | The value to return if no value is found for the specified key. |
getDoubleArray(String)
Gets an array of double values out of the object.
public double getDoubleArray(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getInt(String, int)
Gets an int value out of the object.
public int getInt(String key, int defaultValue)
Thông số | Mô tả |
---|---|
key | The key for the value. |
defaultValue | The value to return if no value is found for the specified key. |
getIntArray(String)
Gets an array of int values out of the object.
public int getIntArray(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getLong(String, long)
Gets an long value out of the object.
public long getLong(String key, long defaultValue)
Thông số | Mô tả |
---|---|
key | The key for the value. |
defaultValue | The value to return if no value is found for the specified key. |
getLongArray(String)
Gets an array of long values out of the object.
public long getLongArray(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getObject(String)
Gets an object value out of the object.
public ShareOpenGraphObject getObject(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getObjectArrayList(String)
Gets an array of object values out of the object.
public ArrayList getObjectArrayList(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getPhoto(String)
Gets a photo value out of the object.
public SharePhoto getPhoto(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getPhotoArrayList(String)
Gets an array of photo values out of the object.
public ArrayList getPhotoArrayList(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getString(String)
Gets a string value out of the object.
public String getString(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getStringArrayList(String)
Gets an array of string values out of the object.
public ArrayList getStringArrayList(String key)
Thông số | Mô tả |
---|---|
key | The key for the value. |
getBundle()
Returns the values in the container packaged in a bundle.
public Bundle getBundle()
keySet()
Returns a set of the keys contained in this object.
public Set keySet()
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
public int describeContents()
describeContents()
public int describeContents()
writeToParcel(Parcel, int)
Flatten this object in to a Parcel.
public void writeToParcel(Parcel dest, int flags)
Thông số | Mô tả |
---|---|
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.PARCELABLE_WRITE_RETURN_VALUE. |
writeToParcel(Parcel, int)
public void writeToParcel(Parcel out, int flags)
Thông số | Mô tả |
---|---|
out | |
flags |