Class ShadowCardEmulation

    • Constructor Detail

      • ShadowCardEmulation

        public ShadowCardEmulation()
    • Method Detail

      • isDefaultServiceForCategory

        @Implementation(minSdk=19)
        public boolean isDefaultServiceForCategory​(ComponentName service,
                                                   String category)
      • setPreferredService

        @Implementation(minSdk=21)
        public boolean setPreferredService​(Activity activity,
                                           ComponentName service)
      • unsetPreferredService

        @Implementation(minSdk=21)
        public boolean unsetPreferredService​(Activity activity)
      • setCategoryPaymentAllowsForegroundPreference

        public static void setCategoryPaymentAllowsForegroundPreference​(boolean value)
        Modifies the behavior of categoryAllowsForegroundPreference(String) to return the given value for the CardEmulation.CATEGORY_PAYMENT.
      • reset

        @Resetter
        public static void reset()