SmartCardAppletIdGroupActivationPolicy Enum

Definition

Defines the valid values that can be passed to the RequestActivationPolicyChangeAsync method.

public enum class SmartCardAppletIdGroupActivationPolicy
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.SmartCards.SmartCardEmulatorContract, 65536)]
enum class SmartCardAppletIdGroupActivationPolicy
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.SmartCards.SmartCardEmulatorContract), 65536)]
public enum SmartCardAppletIdGroupActivationPolicy
var value = Windows.Devices.SmartCards.SmartCardAppletIdGroupActivationPolicy.disabled
Public Enum SmartCardAppletIdGroupActivationPolicy
Inheritance
SmartCardAppletIdGroupActivationPolicy
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.Devices.SmartCards.SmartCardEmulatorContract (introduced in v1.0)

Fields

Disabled 0

The activation policy is set to disabled.

Enabled 2

The activation policy is set to enabled.

ForegroundOverride 1

The activation policy is set to foreground override.

Remarks

If an app is running in the foreground with the screen on, that app can override any other app which may have been Enabled.

For payment scenarios, you choose your default payment card so it will be Enabled. You can tap and pay even if the app for that card is not running. Depending on your settings, you can even tap and pay with your phone screen off.

You could also have a separate app for another card which is disabled since it's not your default payment mechanism. If you're at a store that only takes the second card, you can open the app for the second card and it can request to set the policy to ForegroundOverride. This allows it to temporarily be the default for as long as the app is in the foreground and the screen is on or until the app asks to be Disabled.

The system prompts the user if an app asks to be Enabled, but the system won't prompt if an app asks for ForegroundOverride since it's just temporary and the app should be informing the user.

Applies to

See also