UriData

public final class UriData extends AbstractSafeParcelable

Parcelable representing an uri.

Inherited Constant Summary

Field Summary

public static final Creator<UriData> CREATOR

Public Constructor Summary

UriData(String uri, String description)
Constructs uri with given uri value and description

Public Method Summary

String
String
getUri()
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<UriData> CREATOR

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

public void writeToParcel (Parcel dest, int flags)