Package apple.passkit

Class PKPassLibrary

  • All Implemented Interfaces:
    NSObject

    public class PKPassLibrary
    extends NSObject
    • Constructor Detail

      • PKPassLibrary

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

        public static 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)
      • 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.
      • 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.
      • isSubclassOfClass

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

        public static boolean isSuppressingAutomaticPassPresentation()
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • requestAutomaticPassPresentationSuppressionWithResponseHandler

        public static long requestAutomaticPassPresentationSuppressionWithResponseHandler​(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.
      • 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()
      • addPassesWithCompletionHandler

        public void addPassesWithCompletionHandler​(NSArray<? extends PKPass> passes,
                                                   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.
      • canAddFelicaPass

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

        public boolean canAddPaymentPassWithPrimaryAccountIdentifier​(java.lang.String primaryAccountIdentifier)
        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.
      • containsPass

        public boolean containsPass​(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

        public boolean isPaymentPassActivationAvailable()
        If this pass library supports activating payment passes, this method will return YES. Otherwise, NO will be returned.
      • 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.
      • passWithPassTypeIdentifierSerialNumber

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

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

        public NSArray<? extends PKPass> passesOfType​(long passType)
      • presentPaymentPass

        public void presentPaymentPass​(PKPaymentPass pass)
        Presents the pass for use above the current application. The pass must already be in the pass library for this to have effect.
      • remotePaymentPasses

        public NSArray<? extends PKPaymentPass> remotePaymentPasses()
        This returns the remote payment passes from attached devices
      • removePass

        public void removePass​(PKPass pass)
      • replacePassWithPass

        public boolean replacePassWithPass​(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​(java.lang.String primaryAccountIdentifier)
      • isSecureElementPassActivationAvailable

        public boolean isSecureElementPassActivationAvailable()
      • presentSecureElementPass

        public void presentSecureElementPass​(PKSecureElementPass pass)