Added in API level 30

WalletServiceEvent


class WalletServiceEvent : Parcelable
kotlin.Any
   ↳ android.service.quickaccesswallet.WalletServiceEvent

Represents a request from the wallet app to the Quick Access Wallet in System UI. Background events may necessitate that the Quick Access Wallet update its view. For example, if the wallet application handles an NFC payment while the Quick Access Wallet is being shown, it needs to tell the Quick Access Wallet so that the wallet can be dismissed and Activity showing the payment can be displayed to the user.

Summary

Constants
static Int

An NFC payment has started.

Inherited constants
Public constructors
WalletServiceEvent(eventType: Int)

Creates a new DismissWalletRequest.

Public methods
Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

Int

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<WalletServiceEvent!>

Constants

TYPE_NFC_PAYMENT_STARTED

Added in API level 30
static val TYPE_NFC_PAYMENT_STARTED: Int

An NFC payment has started. If the Quick Access Wallet is in a system window, it will need to be dismissed so that an Activity showing the payment can be displayed.

Value: 1

Public constructors

WalletServiceEvent

Added in API level 30
WalletServiceEvent(eventType: Int)

Creates a new DismissWalletRequest.

Parameters
eventType Int: Value is one of the following:

Public methods

describeContents

Added in API level 30
fun describeContents(): Int

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
Value is either 0 or

getEventType

Added in API level 30
fun getEventType(): Int
Return
Int the event type.
Value is one of the following:

writeToParcel

Added in API level 30
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of the following:

Properties

CREATOR

Added in API level 30
static val CREATOR: Parcelable.Creator<WalletServiceEvent!>