AI-generated Key Takeaways
-
UriData is a Parcelable class representing a URI.
-
It has a constructor that takes a URI string and a description string.
-
You can retrieve the description and the URI value using the
getDescription()andgetUri()methods.
Parcelable representing an uri.
Inherited Constant Summary
Field Summary
| public static final Creator<UriData> | CREATOR |
Public Constructor Summary
Public Method Summary
| String |
getDescription()
Returns the uri description.
|
| String |
getUri()
Returns the uri.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Fields
Public Constructors
public UriData (String uri, String description)
Constructs uri with given uri value and description
Parameters
| uri | A destination for a web page or image. |
|---|---|
| description |
The URI's title appearing in the Google Wallet app as text. Recommended maximum
is 20 characters to ensure full string is displayed on smaller screens.
Note that in some contexts this text is not used, such as when description is part of an image. |
Public Methods
public String getDescription ()
Returns the uri description.
public String getUri ()
Returns the uri.