Package apple.passkit

Class PKPassLibrary

  • All Implemented Interfaces:
    NSObject

    public class PKPassLibrary
    extends NSObject
    API-Since: 6.0
    • Constructor Detail

      • PKPassLibrary

        protected PKPassLibrary​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static PKPassLibrary allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • endAutomaticPassPresentationSuppressionWithRequestToken

        public static void endAutomaticPassPresentationSuppressionWithRequestToken​(long requestToken)
        API-Since: 9.0
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isPassLibraryAvailable

        public static boolean isPassLibraryAvailable()
        The library is not available on iPad in 6.0. API-Since: 6.0
      • isPaymentPassActivationAvailable_static

        @Deprecated
        public static boolean isPaymentPassActivationAvailable_static()
        Deprecated.
        If device supports adding payment passes, this method will return YES. Otherwise, NO will be returned. API-Since: 8.0 Deprecated-Since: 9.0 Deprecated-Message: Use -[PKPassLibrary isPaymentPassActivationAvailable] instead
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • isSuppressingAutomaticPassPresentation

        public static boolean isSuppressingAutomaticPassPresentation()
        API-Since: 9.0
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • requestAutomaticPassPresentationSuppressionWithResponseHandler

        public static long requestAutomaticPassPresentationSuppressionWithResponseHandler​(@NotNull
                                                                                          @NotNull PKPassLibrary.Block_requestAutomaticPassPresentationSuppressionWithResponseHandler responseHandler)
        These methods may be used to temporarily disable the automatic presentation of passes when a device encounters a contactless field. Use of these methods require an entitlement. Otherwise, requesting will always return a PKAutomaticPassPresentationSuppressionResultDenied as the result. API-Since: 9.0
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • activatePaymentPassWithActivationCodeCompletion

        @Deprecated
        public void activatePaymentPassWithActivationCodeCompletion​(@NotNull
                                                                    @NotNull PKPaymentPass paymentPass,
                                                                    @NotNull
                                                                    @NotNull java.lang.String activationCode,
                                                                    @Nullable
                                                                    @Nullable PKPassLibrary.Block_activatePaymentPassWithActivationCodeCompletion completion)
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 9.0 Deprecated-Message: Use activatePaymentPass:withActivationData:completion: instead
      • activatePaymentPassWithActivationDataCompletion

        @Deprecated
        public void activatePaymentPassWithActivationDataCompletion​(@NotNull
                                                                    @NotNull PKPaymentPass paymentPass,
                                                                    @NotNull
                                                                    @NotNull NSData activationData,
                                                                    @Nullable
                                                                    @Nullable PKPassLibrary.Block_activatePaymentPassWithActivationDataCompletion completion)
        Deprecated.
        These methods may be utilized to activate a payment pass that is provisioned but currently in the inactive state, by providing either a cryptographic OTP, or an activation code. API-Since: 8.0 Deprecated-Since: 100000.0 Deprecated-Message: Use activateSecureElementPass:withActivationData:completion: instead
      • addPassesWithCompletionHandler

        public void addPassesWithCompletionHandler​(@NotNull
                                                   @NotNull NSArray<? extends PKPass> passes,
                                                   @Nullable
                                                   @Nullable PKPassLibrary.Block_addPassesWithCompletionHandler completion)
        The user will be prompted to grant permission for the calling process to add passes to the Pass Library. The user may respond by allowing the passes to be added, or requesting to review the passes. The selection will be returned in the completionHandler as a PKPassLibraryAddPassesStatus. If PKPassLibraryPassesPresentReview is returned, you must present a PKAddPassesViewController initialized with the passes so that the user may review and add the passes manually. The completion handler for this method is called on an arbitrary queue - dispatch to the main queue if you're presenting UI. API-Since: 7.0
      • canAddFelicaPass

        public boolean canAddFelicaPass()
        If the library can add Felica passes, this method will return YES. Otherwise, NO will be returned. API-Since: 10.1
      • canAddPaymentPassWithPrimaryAccountIdentifier

        @Deprecated
        public boolean canAddPaymentPassWithPrimaryAccountIdentifier​(@NotNull
                                                                     @NotNull java.lang.String primaryAccountIdentifier)
        Deprecated.
        Returns YES if either the current device or an attached device both supports adding payment passes and does not already contain a payment pass with the supplied primary account identifier. API-Since: 9.0 Deprecated-Since: 100000.0 Deprecated-Message: Use -[PKPassLibrary canAddSecureElementPassWithPrimaryAccountIdentifier] instead
      • containsPass

        public boolean containsPass​(@NotNull
                                    @NotNull PKPass pass)
        This returns YES even if the process is not entitled to access the pass in the library. An app like Mail is not entitled to get pass from the library, but it should avoid presenting UI for adding an email attachment pass that is already in the library.
      • isPaymentPassActivationAvailable

        @Deprecated
        public boolean isPaymentPassActivationAvailable()
        Deprecated.
        If this pass library supports activating payment passes, this method will return YES. Otherwise, NO will be returned. API-Since: 9.0 Deprecated-Since: 100000.0 Deprecated-Message: Use -[PKPassLibrary isSecureElementPassActivationAvailable] instead
      • openPaymentSetup

        public void openPaymentSetup()
        Opens the card setup flow (in Wallet on iPhone, Settings on iPad). Use this to direct a user to card setup directly from your app. API-Since: 8.3
      • passWithPassTypeIdentifierSerialNumber

        @Nullable
        public @Nullable PKPass passWithPassTypeIdentifierSerialNumber​(@NotNull
                                                                       @NotNull java.lang.String identifier,
                                                                       @NotNull
                                                                       @NotNull java.lang.String serialNumber)
      • passes

        @NotNull
        public @NotNull NSArray<? extends PKPass> passes()
        These return only local passes the process is entitled to access.
      • passesOfType

        @NotNull
        public @NotNull NSArray<? extends PKPass> passesOfType​(long passType)
        API-Since: 8.0
      • presentPaymentPass

        @Deprecated
        public void presentPaymentPass​(@NotNull
                                       @NotNull PKPaymentPass pass)
        Deprecated.
        Presents the pass for use above the current application. The pass must already be in the pass library for this to have effect. API-Since: 10.0 Deprecated-Since: 100000.0 Deprecated-Message: Use -[PKPassLibrary presentSecureElementPass:] instead
      • remotePaymentPasses

        @NotNull
        @Deprecated
        public @NotNull NSArray<? extends PKPaymentPass> remotePaymentPasses()
        Deprecated.
        This returns the remote payment passes from attached devices API-Since: 9.0 Deprecated-Since: 100000.0 Deprecated-Message: Use -[PKPassLibrary remoteSecureElementPasses] instead
      • removePass

        public void removePass​(@NotNull
                               @NotNull PKPass pass)
      • replacePassWithPass

        public boolean replacePassWithPass​(@NotNull
                                           @NotNull PKPass pass)
        This will fail if a pass with matching identifier and serial number is not already present in the library, or if the process is not entitled to access the pass. To add a completely new pass, use PKAddPassesViewController.
      • canAddSecureElementPassWithPrimaryAccountIdentifier

        public boolean canAddSecureElementPassWithPrimaryAccountIdentifier​(@NotNull
                                                                           @NotNull java.lang.String primaryAccountIdentifier)
        API-Since: 13.4
      • isSecureElementPassActivationAvailable

        public boolean isSecureElementPassActivationAvailable()
        API-Since: 13.4
      • presentSecureElementPass

        public void presentSecureElementPass​(@NotNull
                                             @NotNull PKSecureElementPass pass)
        API-Since: 13.4
      • remoteSecureElementPasses

        @NotNull
        public @NotNull NSArray<? extends PKSecureElementPass> remoteSecureElementPasses()
        API-Since: 13.4
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.