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

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 android.service.quickaccesswallet.WalletServiceEvent#TYPE_NFC_PAYMENT_STARTED, or android.service.quickaccesswallet.WalletServiceEvent.TYPE_WALLET_CARDS_UPDATED

Public methods

describeContents

Added in API level 30
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getEventType

Added in API level 30
fun getEventType(): Int
Return
Int the event type Value is android.service.quickaccesswallet.WalletServiceEvent#TYPE_NFC_PAYMENT_STARTED, or android.service.quickaccesswallet.WalletServiceEvent.TYPE_WALLET_CARDS_UPDATED

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 android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

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