WalletCard.Builder.SetCardIcon(Icon) 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.
An icon 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("setCardIcon", "(Landroid/graphics/drawable/Icon;)Landroid/service/quickaccesswallet/WalletCard$Builder;", "", ApiSince=30)]
public Android.Service.QuickAccessWallet.WalletCard.Builder SetCardIcon(Android.Graphics.Drawables.Icon? cardIcon);
[<Android.Runtime.Register("setCardIcon", "(Landroid/graphics/drawable/Icon;)Landroid/service/quickaccesswallet/WalletCard$Builder;", "", ApiSince=30)>]
member this.SetCardIcon : Android.Graphics.Drawables.Icon -> Android.Service.QuickAccessWallet.WalletCard.Builder
Parameters
- cardIcon
- Icon
The optional icon that describes how to use the card, or null. A bitmap icon should have the width and height specified by IconSizePx.
Returns
This builder.
- Attributes
Remarks
An icon 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 logo could indicate that the card is NFC-enabled and will be provided to an NFC terminal if the phone is held in close proximity to the NFC reader. This field is optional.
If the supplied Icon is backed by a bitmap, it should have width and height GetWalletCardsRequest.getIconSizePx().
Android reference for android.service.quickaccesswallet.WalletCard.Builder.setCardIcon.
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.