WalletCard.Builder.SetCardLabel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetCardLabel(ICharSequence) |
A card label may be shown alongside the card image to convey information about how the card can be used, or if some other action must be taken before using the card. |
| SetCardLabel(String) |
Sets the optional card label from a string. |
SetCardLabel(ICharSequence)
A card label may be shown alongside the card image to convey information about how the card can be used, or if some other action must be taken before using the card.
[Android.Runtime.Register("setCardLabel", "(Ljava/lang/CharSequence;)Landroid/service/quickaccesswallet/WalletCard$Builder;", "", ApiSince=30)]
public Android.Service.QuickAccessWallet.WalletCard.Builder SetCardLabel(Java.Lang.ICharSequence? cardLabel);
[<Android.Runtime.Register("setCardLabel", "(Ljava/lang/CharSequence;)Landroid/service/quickaccesswallet/WalletCard$Builder;", "", ApiSince=30)>]
member this.SetCardLabel : Java.Lang.ICharSequence -> Android.Service.QuickAccessWallet.WalletCard.Builder
Parameters
- cardLabel
- ICharSequence
The optional label that describes how to use the card, or null. Do not include personal information.
Returns
This builder.
- Attributes
Remarks
A card label may be shown alongside the card image to convey information about how the card can be used, or if some other action must be taken before using the card. For example, an NFC-enabled card could be labeled "Hold near reader" to inform the user of how to use NFC cards when interacting with an NFC reader. This field is optional. Note: this card label should not contain PII (Personally Identifiable Information, such as username or email address). If the provided label is too long to fit on one line, it may be truncated and ellipsized.
Android reference for android.service.quickaccesswallet.WalletCard.Builder.setCardLabel.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SetCardLabel(String)
Sets the optional card label from a string.
public Android.Service.QuickAccessWallet.WalletCard.Builder SetCardLabel(string? cardLabel);
member this.SetCardLabel : string -> Android.Service.QuickAccessWallet.WalletCard.Builder
Parameters
- cardLabel
- String
The optional label that describes how to use the card, or null. Do not include personal information.
Returns
This builder.
Remarks
A label can describe an action such as holding an NFC card near a reader. A label that does not fit on one line can be shortened and shown with an ellipsis.
This overload accepts a string for the label in the Android 16 card builder.