#if !__has_include() || PK_USE_PUBLIC_PASSKIT // // PKAddPassesViewController.h // PassKit // // Copyright (c) 2011 Apple, Inc. All rights reserved. // #ifndef __PKADDPASSESVIEWCONTROLLER_H #define __PKADDPASSESVIEWCONTROLLER_H #import #if TARGET_OS_IPHONE #import @class PKPass; @class PKAddPassesViewController; NS_ASSUME_NONNULL_BEGIN @protocol PKAddPassesViewControllerDelegate @optional -(void)addPassesViewControllerDidFinish:(PKAddPassesViewController *)controller; // delegate should dismiss presentation @end API_AVAILABLE(ios(6.0)) @interface PKAddPassesViewController : UIViewController /* controller should be presented with -presentViewController:animated:completion: pass should be a pass you want the user to add. */ - (nullable instancetype)initWithPass:(PKPass *)pass; - (nullable instancetype)initWithPasses:(NSArray *)passes API_AVAILABLE(ios(7.0)); - (nullable instancetype)initWithIssuerData:(NSData *)issuerData signature:(NSData *)signature error:(NSError **)error API_AVAILABLE(ios(16.4)); + (BOOL)canAddPasses API_AVAILABLE(ios(8.0)); @property(nonatomic, weak, nullable) id delegate; @end NS_ASSUME_NONNULL_END #endif #endif #else #if !TARGET_OS_OSX #import #import #endif #endif