Package apple.passkit
Class PKPassLibrary
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.passkit.PKPassLibrary
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePKPassLibrary.Block_activatePaymentPassWithActivationCodeCompletionstatic interfacePKPassLibrary.Block_activatePaymentPassWithActivationDataCompletionstatic interfacePKPassLibrary.Block_activateSecureElementPassWithActivationDataCompletionstatic interfacePKPassLibrary.Block_addPassesWithCompletionHandlerstatic interfacePKPassLibrary.Block_requestAutomaticPassPresentationSuppressionWithResponseHandlerstatic interfacePKPassLibrary.Block_signDataWithSecureElementPassCompletion-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPKPassLibrary(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()voidactivatePaymentPassWithActivationCodeCompletion(PKPaymentPass paymentPass, java.lang.String activationCode, PKPassLibrary.Block_activatePaymentPassWithActivationCodeCompletion completion)Deprecated.voidactivatePaymentPassWithActivationDataCompletion(PKPaymentPass paymentPass, NSData activationData, PKPassLibrary.Block_activatePaymentPassWithActivationDataCompletion completion)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.voidactivateSecureElementPassWithActivationDataCompletion(PKSecureElementPass secureElementPass, NSData activationData, PKPassLibrary.Block_activateSecureElementPassWithActivationDataCompletion completion)voidaddPassesWithCompletionHandler(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.static PKPassLibraryalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleancanAddFelicaPass()If the library can add Felica passes, this method will return YES.booleancanAddPaymentPassWithPrimaryAccountIdentifier(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.booleancanAddSecureElementPassWithPrimaryAccountIdentifier(java.lang.String primaryAccountIdentifier)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()booleancontainsPass(PKPass pass)This returns YES even if the process is not entitled to access the pass in the library.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static voidendAutomaticPassPresentationSuppressionWithRequestToken(long requestToken)static longhash_static()PKPassLibraryinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisPassLibraryAvailable()The library is not available on iPad in 6.0.booleanisPaymentPassActivationAvailable()If this pass library supports activating payment passes, this method will return YES.static booleanisPaymentPassActivationAvailable_static()Deprecated.booleanisSecureElementPassActivationAvailable()static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static booleanisSuppressingAutomaticPassPresentation()static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()voidopenPaymentSetup()Opens the card setup flow (in Wallet on iPhone, Settings on iPad).NSArray<? extends PKPass>passes()These return only local passes the process is entitled to access.NSArray<? extends PKPass>passesOfType(long passType)PKPasspassWithPassTypeIdentifierSerialNumber(java.lang.String identifier, java.lang.String serialNumber)voidpresentPaymentPass(PKPaymentPass pass)Presents the pass for use above the current application.voidpresentSecureElementPass(PKSecureElementPass pass)NSArray<? extends PKPaymentPass>remotePaymentPasses()This returns the remote payment passes from attached devicesNSArray<? extends PKSecureElementPass>remoteSecureElementPasses()voidremovePass(PKPass pass)booleanreplacePassWithPass(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.static longrequestAutomaticPassPresentationSuppressionWithResponseHandler(PKPassLibrary.Block_requestAutomaticPassPresentationSuppressionWithResponseHandler responseHandler)These methods may be used to temporarily disable the automatic presentation of passes when a device encounters a contactless field.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)voidsignDataWithSecureElementPassCompletion(NSData signData, PKSecureElementPass secureElementPass, PKPassLibrary.Block_signDataWithSecureElementPassCompletion completion)Sign a payload using the passstatic org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static PKPassLibrary alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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()
-
activatePaymentPassWithActivationCodeCompletion
@Deprecated public void activatePaymentPassWithActivationCodeCompletion(PKPaymentPass paymentPass, java.lang.String activationCode, PKPassLibrary.Block_activatePaymentPassWithActivationCodeCompletion completion)
Deprecated.
-
activatePaymentPassWithActivationDataCompletion
public void activatePaymentPassWithActivationDataCompletion(PKPaymentPass paymentPass, NSData activationData, PKPassLibrary.Block_activatePaymentPassWithActivationDataCompletion completion)
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.
-
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.
-
init
public PKPassLibrary init()
-
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.
-
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.
-
activateSecureElementPassWithActivationDataCompletion
public void activateSecureElementPassWithActivationDataCompletion(PKSecureElementPass secureElementPass, NSData activationData, PKPassLibrary.Block_activateSecureElementPassWithActivationDataCompletion completion)
-
canAddSecureElementPassWithPrimaryAccountIdentifier
public boolean canAddSecureElementPassWithPrimaryAccountIdentifier(java.lang.String primaryAccountIdentifier)
-
isSecureElementPassActivationAvailable
public boolean isSecureElementPassActivationAvailable()
-
presentSecureElementPass
public void presentSecureElementPass(PKSecureElementPass pass)
-
remoteSecureElementPasses
public NSArray<? extends PKSecureElementPass> remoteSecureElementPasses()
-
signDataWithSecureElementPassCompletion
public void signDataWithSecureElementPassCompletion(NSData signData, PKSecureElementPass secureElementPass, PKPassLibrary.Block_signDataWithSecureElementPassCompletion completion)
Sign a payload using the pass
-
-