AI-generated Key Takeaways
-
DataMapItem is a class that creates a dataItem-like object containing structured and serializable data.
-
The
fromDataItemmethod is a static method that wraps a DataItem object in a DataMapItem, automatically freezing the DataItem. -
The
getDataMapmethod returns the DataMap associated with the DataMapItem. -
The
getUrimethod returns the Uri of the underlying DataItem.
Creates a new dataItem-like object containing structured and serializable data.
Public Method Summary
| static DataMapItem | |
| DataMap |
getDataMap()
Returns the
DataMap.
|
| Uri |
getUri()
Returns the underlying dataItem's Uri.
|
Inherited Method Summary
Public Methods
public static DataMapItem fromDataItem (DataItem dataItem)
Provides a DataMapItem
wrapping a dataItem.
A DataItem
passed to this method does not need to be frozen (Freezable.freeze()),
this method freezes the object.
Parameters
| dataItem | the base for the wrapped DataMapItem.
dataItem should not be modified after wrapping it. |
|---|
public Uri getUri ()
Returns the underlying dataItem's Uri.