public class

Pass

extends Object
implements Parcelable
java.lang.Object
   ↳ com.urbanairship.wallet.Pass

Class Overview

Pass representing either an offer or loyalty wallet object.

Once a pass is obtained, call requestToSavePass(Context).

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Protected Constructors
Pass(Parcel in)
Public Methods
int describeContents()
String getId()
Get the pass ID.
Uri getPublicUri()
Get the pass URI to link to Android Pay.
void requestToSavePass(Context context)
Requests to save the pass.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Protected Constructors

protected Pass (Parcel in)

Public Methods

public int describeContents ()

public String getId ()

Get the pass ID.

Returns
  • The pass ID.

public Uri getPublicUri ()

Get the pass URI to link to Android Pay.

Returns
  • The pass URI.

public void requestToSavePass (Context context)

Requests to save the pass.

Parameters
context The application context.

public void writeToParcel (Parcel dest, int flags)