categoryAllowsForegroundPreference method

Future<bool> categoryAllowsForegroundPreference(
  1. CardEmulationCategory category
)

Whether setPreferredService changes anything for category.

False for CardEmulationCategory.payment on a device where the user's wallet choice is final. The call still succeeds there and simply has no effect, so an app that assumed otherwise sits waiting for a tap that is being routed elsewhere.

Implementation

Future<bool> categoryAllowsForegroundPreference(CardEmulationCategory category) =>
    androidApi.hceCategoryAllowsForegroundPreference(_categoryToWire(category));