UriData | Doclava
public final class

UriData

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.wobs.UriData

Class Overview

Parcelable representing an uri.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<UriData> CREATOR
Public Constructors
UriData(String uri, String description)
Constructs uri with given uri value and description
Public Methods
String getDescription()
String getUri()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

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 String: A destination for a web page or image.
description String: 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
String the uri description

public String getUri ()

Returns
String the uri

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int