#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIActivityItemsConfiguration.h // UIKit // // Copyright © 2019 Apple Inc. All rights reserved. // #import #import #import #import NS_HEADER_AUDIT_BEGIN(nullability, sendability) @class UIActivity; @class UIViewController; @class UIView; // A configuration that allows a responder to export data through a variety of interactions. UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos) NS_SWIFT_UI_ACTOR @interface UIActivityItemsConfiguration : NSObject @property (nonatomic, strong, nullable) id localObject; // A local object retained for the convenience of the app developer @property (nonatomic, copy) NSArray *supportedInteractions; // Defaults to all known interactions @property (nonatomic, strong, nullable) id _Nullable (^metadataProvider)(UIActivityItemsConfigurationMetadataKey key); @property (nonatomic, strong, nullable) id _Nullable (^perItemMetadataProvider)(NSInteger index, UIActivityItemsConfigurationMetadataKey key); @property (nonatomic, strong, nullable) NSItemProvider *_Nullable (^previewProvider)(NSInteger index, UIActivityItemsConfigurationPreviewIntent intent, CGSize suggestedSize); @property (nonatomic, strong, nullable) NSArray *(^applicationActivitiesProvider)(void); + (instancetype)activityItemsConfigurationWithObjects:(NSArray > *)objects; // Provide data up front + (instancetype)activityItemsConfigurationWithItemProviders:(NSArray *)itemProviders; // Provide promised items - (instancetype)initWithObjects:(NSArray > *)objects NS_DESIGNATED_INITIALIZER; // Provide data up front - (instancetype)initWithItemProviders:(NSArray *)itemProviders NS_DESIGNATED_INITIALIZER; // Provide promised items - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @end NS_HEADER_AUDIT_END(nullability, sendability) #else #import #endif