[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
[iOS SDK] Where are they using block arguments?
This is a list of SDK header functions where arguments are defined as static ObjectiveC blocks.
Note | This list can be obtained from header files by simple parsing text, so it can contain false positives and miss a few situations, e.g. where they use types to declare block arguments. |
iOS SDK\Frameworks\Accounts.framework\Headers
ACAccountStore.h
typedef void(^ACAccountStoreSaveCompletionHandler)(BOOL success, NSError *error);
typedef void(^ACAccountStoreRemoveCompletionHandler)(BOOL success, NSError *error);
typedef void(^ACAccountStoreRequestAccessCompletionHandler)(BOOL granted, NSError *error);
typedef void(^ACAccountStoreCredentialRenewalHandler)(ACAccountCredentialRenewResult renewResult, NSError *error);
iOS SDK\Frameworks\AddressBook.framework\Headers
ABAddressBook.h
typedef void(^ABAddressBookRequestAccessCompletionHandler)(bool granted, CFErrorRef error);
iOS SDK\Frameworks\AssetsLibrary.framework\Headers
ALAssetsGroup.h
typedef void (^ALAssetsGroupEnumerationResultsBlock)(ALAsset *result, NSUInteger index, BOOL *stop);
ALAssetsLibrary.h
typedef void (^ALAssetsLibraryGroupsEnumerationResultsBlock)(ALAssetsGroup *group, BOOL *stop);
typedef void (^ALAssetsLibraryAssetForURLResultBlock)(ALAsset *asset);
typedef void (^ALAssetsLibraryGroupResultBlock)(ALAssetsGroup *group) __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_5_0);
typedef void (^ALAssetsLibraryAccessFailureBlock)(NSError *error);
typedef void (^ALAssetsLibraryWriteImageCompletionBlock)(NSURL *assetURL, NSError *error);
typedef void (^ALAssetsLibraryWriteVideoCompletionBlock)(NSURL *assetURL, NSError *error);
iOS SDK\Frameworks\AudioToolbox.framework\Headers
AudioQueue.h
typedef void (^AudioQueueOutputCallbackBlock)(
typedef void (^AudioQueueInputCallbackBlock)(
iOS SDK\Frameworks\AudioUnit.framework\Headers
AudioUnitProperties.h
typedef void (^AudioUnitRemoteControlEventListener)(AudioUnitRemoteControlEvent event);
iOS SDK\Frameworks\AVFoundation.framework\Headers
AVAssetExportSession.h
+ (void)determineCompatibilityOfExportPreset:(NSString *)presetName withAsset:(AVAsset *)asset outputFileType:(NSString *)outputFileType completionHandler:(void (^)(BOOL compatible))handler NS_AVAILABLE(10_9, 6_0);
(void)determineCompatibleFileTypesWithCompletionHandler:(void (^)(NSArray *compatibleFileTypes))handler:. */
- (void)determineCompatibleFileTypesWithCompletionHandler:(void (^)(NSArray *compatibleFileTypes))handler NS_AVAILABLE(10_9, 6_0);
- (void)exportAsynchronouslyWithCompletionHandler:(void (^)(void))handler;
AVAssetImageGenerator.h
typedef void (^AVAssetImageGeneratorCompletionHandler)(CMTime requestedTime, CGImageRef image, CMTime actualTime, AVAssetImageGeneratorResult result, NSError *error);
AVAssetWriter.h
- (void)finishWritingWithCompletionHandler:(void (^)(void))handler NS_AVAILABLE(10_9, 6_0);
AVAssetWriterInput.h
- (void)requestMediaDataWhenReadyOnQueue:(dispatch_queue_t)queue usingBlock:(void (^)(void))block;
AVAsynchronousKeyValueLoading.h
- (void)loadValuesAsynchronouslyForKeys:(NSArray *)keys completionHandler:(void (^)(void))handler;
AVAudioNode.h
typedef void (^AVAudioNodeTapBlock)(AVAudioPCMBuffer *buffer, AVAudioTime *when);
AVAudioSession.h
typedef void (^PermissionBlock)(BOOL granted);
AVAudioTypes.h
typedef void (^AVAudioNodeCompletionHandler)(void);
AVCaptureDevice.h
- (void)setFocusModeLockedWithLensPosition:(float)lensPosition completionHandler:(void (^)(CMTime syncTime))handler NS_AVAILABLE_IOS(8_0);
- (void)setExposureModeCustomWithDuration:(CMTime)duration ISO:(float)ISO completionHandler:(void (^)(CMTime syncTime))handler NS_AVAILABLE_IOS(8_0);
- (void)setExposureTargetBias:(float)bias completionHandler:(void (^)(CMTime syncTime))handler NS_AVAILABLE_IOS(8_0);
- (void)setWhiteBalanceModeLockedWithDeviceWhiteBalanceGains:(AVCaptureWhiteBalanceGains)whiteBalanceGains completionHandler:(void (^)(CMTime syncTime))handler NS_AVAILABLE_IOS(8_0);
+ (void)requestAccessForMediaType:(NSString *)mediaType completionHandler:(void (^)(BOOL granted))handler NS_AVAILABLE_IOS(7_0);
AVCaptureOutput.h
- (void)captureStillImageAsynchronouslyFromConnection:(AVCaptureConnection *)connection completionHandler:(void (^)(CMSampleBufferRef imageDataSampleBuffer, NSError *error))handler;
- (void)prepareToCaptureStillImageBracketFromConnection:(AVCaptureConnection *)connection withSettingsArray:(NSArray *)settings completionHandler:(void (^)(BOOL prepared, NSError *error))handler NS_AVAILABLE_IOS(8_0);
- (void)captureStillImageBracketAsynchronouslyFromConnection:(AVCaptureConnection *)connection withSettingsArray:(NSArray *)settings completionHandler:(void (^)(CMSampleBufferRef sampleBuffer, AVCaptureBracketedStillImageSettings *stillImageSettings, NSError *error))handler NS_AVAILABLE_IOS(8_0);
AVMetadataItem.h
- (void)loadValuesAsynchronouslyForKeys:(NSArray *)keys completionHandler:(void (^)(void))handler NS_AVAILABLE(10_7, 4_2);
AVMIDIPlayer.h
typedef void (^AVMIDIPlayerCompletionHandler)(void);
AVPlayer.h
- (void)seekToDate:(NSDate *)date completionHandler:(void (^)(BOOL finished))completionHandler NS_AVAILABLE(10_7, 5_0);
- (void)seekToTime:(CMTime)time completionHandler:(void (^)(BOOL finished))completionHandler NS_AVAILABLE(10_7, 5_0);
- (void)seekToTime:(CMTime)time toleranceBefore:(CMTime)toleranceBefore toleranceAfter:(CMTime)toleranceAfter completionHandler:(void (^)(BOOL finished))completionHandler NS_AVAILABLE(10_7, 5_0);
- (void)prerollAtRate:(float)rate completionHandler:(void (^)(BOOL finished))completionHandler NS_AVAILABLE(10_8, 6_0);
- (id)addPeriodicTimeObserverForInterval:(CMTime)interval queue:(dispatch_queue_t)queue usingBlock:(void (^)(CMTime time))block;
- (id)addBoundaryTimeObserverForTimes:(NSArray *)times queue:(dispatch_queue_t)queue usingBlock:(void (^)(void))block;
AVPlayerItem.h
- (void)seekToTime:(CMTime)time completionHandler:(void (^)(BOOL finished))completionHandler NS_AVAILABLE(10_7, 5_0);
- (void)seekToTime:(CMTime)time toleranceBefore:(CMTime)toleranceBefore toleranceAfter:(CMTime)toleranceAfter completionHandler:(void (^)(BOOL finished))completionHandler NS_AVAILABLE(10_7, 5_0);
- (BOOL)seekToDate:(NSDate *)date completionHandler:(void (^)(BOOL finished))completionHandler NS_AVAILABLE(10_9, 6_0);
AVSampleBufferDisplayLayer.h
- (void)requestMediaDataWhenReadyOnQueue:(dispatch_queue_t)queue usingBlock:(void (^)(void))block;
iOS SDK\Frameworks\AVKit.framework\Headers
iOS SDK\Frameworks\CFNetwork.framework\Headers
iOS SDK\Frameworks\CloudKit.framework\Headers
CKContainer.h
- (void)accountStatusWithCompletionHandler:(void (^)(CKAccountStatus accountStatus, NSError *error))completionHandler;
typedef void(^CKApplicationPermissionBlock)(CKApplicationPermissionStatus applicationPermissionStatus, NSError *error);
- (void)fetchUserRecordIDWithCompletionHandler:(void (^)(CKRecordID *recordID, NSError *error))completionHandler;
- (void)discoverAllContactUserInfosWithCompletionHandler:(void (^)(NSArray /* CKDiscoveredUserInfo */ *userInfos, NSError *error))completionHandler;
- (void)discoverUserInfoWithEmailAddress:(NSString *)email completionHandler:(void (^)(CKDiscoveredUserInfo *userInfo, NSError *error))completionHandler;
- (void)discoverUserInfoWithUserRecordID:(CKRecordID *)userRecordID completionHandler:(void (^)(CKDiscoveredUserInfo *userInfo, NSError *error))completionHandler;
CKDatabase.h
- (void)fetchRecordWithID:(CKRecordID *)recordID completionHandler:(void (^)(CKRecord *record, NSError *error))completionHandler;
- (void)saveRecord:(CKRecord *)record completionHandler:(void (^)(CKRecord *record, NSError *error))completionHandler;
- (void)deleteRecordWithID:(CKRecordID *)recordID completionHandler:(void (^)(CKRecordID *recordID, NSError *error))completionHandler;
- (void)performQuery:(CKQuery *)query inZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(NSArray /* CKRecord */ *results, NSError *error))completionHandler;
- (void)fetchAllRecordZonesWithCompletionHandler:(void (^)(NSArray /* CKRecordZone */ *zones, NSError *error))completionHandler;
- (void)fetchRecordZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(CKRecordZone *zone, NSError *error))completionHandler;
- (void)saveRecordZone:(CKRecordZone *)zone completionHandler:(void (^)(CKRecordZone *zone, NSError *error))completionHandler;
- (void)deleteRecordZoneWithID:(CKRecordZoneID *)zoneID completionHandler:(void (^)(CKRecordZoneID *zoneID, NSError *error))completionHandler;
- (void)fetchSubscriptionWithID:(NSString *)subscriptionID completionHandler:(void (^)(CKSubscription *subscription, NSError *error))completionHandler;
- (void)fetchAllSubscriptionsWithCompletionHandler:(void (^)(NSArray /* CKSubscription */ *subscriptions, NSError *error))completionHandler;
- (void)saveSubscription:(CKSubscription *)subscription completionHandler:(void (^)(CKSubscription *subscription, NSError *error))completionHandler;
- (void)deleteSubscriptionWithID:(NSString *)subscriptionID completionHandler:(void (^)(NSString *subscriptionID, NSError *error))completionHandler;
CKDiscoverAllContactsOperation.h
@property (nonatomic, copy) void (^discoverAllContactsCompletionBlock)(NSArray /* CKDiscoveredUserInfo */ *userInfos, NSError *operationError);
CKDiscoverUserInfosOperation.h
@property (nonatomic, copy) void (^discoverUserInfosCompletionBlock)(NSDictionary /* NSString -> CKDiscoveredUserInfo */ *emailsToUserInfos, NSDictionary /* CKRecordID -> CKDiscoveredUserInfo */ *userRecordIDsToUserInfos, NSError *operationError);
CKFetchNotificationChangesOperation.h
@property (nonatomic, copy) void (^notificationChangedBlock)(CKNotification *notification);
@property (nonatomic, copy) void (^fetchNotificationChangesCompletionBlock)(CKServerChangeToken *serverChangeToken, NSError *operationError);
CKFetchRecordChangesOperation.h
@property (nonatomic, copy) void (^recordChangedBlock)(CKRecord *record);
@property (nonatomic, copy) void (^recordWithIDWasDeletedBlock)(CKRecordID *recordID);
@property (nonatomic, copy) void (^fetchRecordChangesCompletionBlock)(CKServerChangeToken *serverChangeToken, NSData *clientChangeTokenData, NSError *operationError);
CKFetchRecordsOperation.h
@property (nonatomic, copy) void (^perRecordProgressBlock)(CKRecordID *recordID, double progress);
@property (nonatomic, copy) void (^perRecordCompletionBlock)(CKRecord *record, CKRecordID *recordID, NSError *error);
@property (nonatomic, copy) void (^fetchRecordsCompletionBlock)(NSDictionary /* CKRecordID * -> CKRecord */ *recordsByRecordID, NSError *operationError);
CKFetchRecordZonesOperation.h
@property (nonatomic, copy) void (^fetchRecordZonesCompletionBlock)(NSDictionary /* CKRecordZoneID -> CKRecordZone */ *recordZonesByZoneID, NSError *operationError);
CKFetchSubscriptionsOperation.h
@property (nonatomic, copy) void (^fetchSubscriptionCompletionBlock)(NSDictionary /* NSString -> CKSubscription */ *subscriptionsBySubscriptionID, NSError *operationError);
CKMarkNotificationsReadOperation.h
@property (nonatomic, copy) void (^markNotificationsReadCompletionBlock)(NSArray /* CKNotificationID */ *notificationIDsMarkedRead, NSError *operationError);
CKModifyBadgeOperation.h
@property (nonatomic, copy) void (^modifyBadgeCompletionBlock)(NSError *operationError);
CKModifyRecordsOperation.h
@property (nonatomic, copy) void (^perRecordProgressBlock)(CKRecord *record, double progress);
@property (nonatomic, copy) void (^perRecordCompletionBlock)(CKRecord *record, NSError *error);
@property (nonatomic, copy) void (^modifyRecordsCompletionBlock)(NSArray /* CKRecord */ *savedRecords, NSArray /* CKRecordID */ *deletedRecordIDs, NSError *operationError);
CKModifyRecordZonesOperation.h
@property (nonatomic, copy) void (^modifyRecordZonesCompletionBlock)(NSArray /* CKRecordZone */ *savedRecordZones, NSArray /* CKRecordZoneID */ *deletedRecordZoneIDs, NSError *operationError);
CKModifySubscriptionsOperation.h
@property (nonatomic, copy) void (^modifySubscriptionsCompletionBlock)(NSArray /* CKSubscription */ *savedSubscriptions, NSArray /* NSString */ *deletedSubscriptionIDs, NSError *operationError);
CKQueryOperation.h
@property (nonatomic, copy) void (^recordFetchedBlock)(CKRecord *record);
@property (nonatomic, copy) void (^queryCompletionBlock)(CKQueryCursor *cursor, NSError *operationError);
iOS SDK\Frameworks\CoreData.framework\Headers
NSManagedObjectContext.h
- (void)performBlock:(void (^)())block NS_AVAILABLE(10_7, 5_0);
- (void)performBlockAndWait:(void (^)())block NS_AVAILABLE(10_7, 5_0);
NSPersistentStoreCoordinator.h
- (void)performBlock:(void (^)())block NS_AVAILABLE(10_10, 8_0);
- (void)performBlockAndWait:(void (^)())block NS_AVAILABLE(10_10, 8_0);
NSPersistentStoreRequest.h
typedef void (^NSPersistentStoreAsynchronousFetchResultCompletionBlock)(NSAsynchronousFetchResult *result);
iOS SDK\Frameworks\CoreFoundation.framework\Headers
CFRunLoop.h
CF_EXPORT void CFRunLoopPerformBlock(CFRunLoopRef rl, CFTypeRef mode, void (^block)(void)) CF_AVAILABLE(10_6, 4_0);
CF_EXPORT CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler(CFAllocatorRef allocator, CFOptionFlags activities, Boolean repeats, CFIndex order, void (^block) (CFRunLoopObserverRef observer, CFRunLoopActivity activity)) CF_AVAILABLE(10_7, 5_0);
CF_EXPORT CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler(CFAllocatorRef allocator, CFAbsoluteTime fireDate, CFTimeInterval interval, CFOptionFlags flags, CFIndex order, void (^block) (CFRunLoopTimerRef timer)) CF_AVAILABLE(10_7, 5_0);
iOS SDK\Frameworks\CoreImage.framework\Headers
CIKernel.h
typedef CGRect (^CIKernelROICallback)(int index, CGRect rect);
iOS SDK\Frameworks\CoreLocation.framework\Headers
CLGeocoder.h
typedef void (^CLGeocodeCompletionHandler)(NSArray *placemarks, NSError *error);
iOS SDK\Frameworks\CoreMedia.framework\Headers
CMSampleBuffer.h
typedef void (^CMSampleBufferInvalidateHandler)
OSStatus (^handler)( CMSampleBufferRef sampleBuffer, CMItemCount index ) )
iOS SDK\Frameworks\CoreMotion.framework\Headers
CMAltimeter.h
typedef void (^CMAltitudeHandler)(CMAltitudeData *altitudeData, NSError *error) NS_AVAILABLE(NA,8_0);
CMMotionActivityManager.h
typedef void (^CMMotionActivityHandler)(CMMotionActivity *activity) NS_AVAILABLE(NA,7_0);
typedef void (^CMMotionActivityQueryHandler)(NSArray *activities, NSError *error) NS_AVAILABLE(NA,7_0);
CMMotionManager.h
typedef void (^CMAccelerometerHandler)(CMAccelerometerData *accelerometerData, NSError *error);
typedef void (^CMGyroHandler)(CMGyroData *gyroData, NSError *error);
typedef void (^CMDeviceMotionHandler)(CMDeviceMotion *motion, NSError *error);
typedef void (^CMMagnetometerHandler)(CMMagnetometerData *magnetometerData, NSError *error) NS_AVAILABLE(NA,5_0);
CMPedometer.h
typedef void (^CMPedometerHandler)(CMPedometerData *pedometerData, NSError *error);
CMStepCounter.h
typedef void (^CMStepQueryHandler)(NSInteger numberOfSteps, NSError *error);
typedef void (^CMStepUpdateHandler)(NSInteger numberOfSteps, NSDate *timestamp, NSError *error);
iOS SDK\Frameworks\CoreTelephony.framework\Headers
CTCallCenter.h
void (^_callEventHandler)(CTCall *);
@property(nonatomic, copy) void (^callEventHandler)(CTCall*) __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
CTTelephonyNetworkInfo.h
@property(nonatomic, copy) void (^subscriberCellularProviderDidUpdateNotifier)(CTCarrier*) __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);
iOS SDK\Frameworks\CoreText.framework\Headers
CTFontDescriptor.h
typedef bool (^CTFontDescriptorProgressHandler)(CTFontDescriptorMatchingState state, CFDictionaryRef progressParameter);
CTFontManager.h
CFArrayRef (^createMatchesCallback)(CFDictionaryRef requestAttributes, pid_t requestingProcess)) CT_AVAILABLE_MAC(10_6);
iOS SDK\Frameworks\EventKit.framework\Headers
EKEventStore.h
typedef void (^EKEventSearchCallback)(EKEvent *event, BOOL *stop);
typedef void(^EKEventStoreRequestAccessCompletionHandler)(BOOL granted, NSError *error);
- (id)fetchRemindersMatchingPredicate:(NSPredicate *)predicate completion:(void (^)(NSArray *reminders))completion __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_6_0);
iOS SDK\Frameworks\ExternalAccessory.framework\Headers
EAAccessoryManager.h
typedef void(^EABluetoothAccessoryPickerCompletion)(NSError *error);
iOS SDK\Frameworks\Foundation.framework\Headers
NSArray.h
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (NSUInteger)indexOfObjectPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
NSAttributedString.h
- (void)enumerateAttributesInRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (^)(NSDictionary *attrs, NSRange range, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateAttribute:(NSString *)attrName inRange:(NSRange)enumerationRange options:(NSAttributedStringEnumerationOptions)opts usingBlock:(void (^)(id value, NSRange range, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
NSCalendar.h
- (void)enumerateDatesStartingAfterDate:(NSDate *)start matchingComponents:(NSDateComponents *)comps options:(NSCalendarOptions)opts usingBlock:(void (^)(NSDate *date, BOOL exactMatch, BOOL *stop))block NS_AVAILABLE(10_9, 8_0);
NSData.h
- (void) enumerateByteRangesUsingBlock:(void (^)(const void *bytes, NSRange byteRange, BOOL *stop))block NS_AVAILABLE(10_9, 7_0);
- (instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length deallocator:(void (^)(void *bytes, NSUInteger length))deallocator NS_AVAILABLE(10_9, 7_0);
NSDictionary.h
- (void)enumerateKeysAndObjectsUsingBlock:(void (^)(id key, id obj, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateKeysAndObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id key, id obj, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (NSSet *)keysOfEntriesPassingTest:(BOOL (^)(id key, id obj, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSSet *)keysOfEntriesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id key, id obj, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
NSExpression.h
+ (NSExpression *)expressionForBlock:(id (^)(id evaluatedObject, NSArray *expressions, NSMutableDictionary *context))block arguments:(NSArray *)arguments NS_AVAILABLE(10_6, 4_0); // Expression that invokes the block with the parameters; note that block expressions are not encodable or representable as parseable strings.
@property (readonly, copy) id (^expressionBlock)(id, NSArray *, NSMutableDictionary *) NS_AVAILABLE(10_6, 4_0);
NSExtensionContext.h
- (void)completeRequestReturningItems:(NSArray *)items completionHandler:(void(^)(BOOL expired))completionHandler;
- (void)openURL:(NSURL *)URL completionHandler:(void (^)(BOOL success))completionHandler;
NSFileCoordinator.h
- (void)coordinateAccessWithIntents:(NSArray *)intents queue:(NSOperationQueue *)queue byAccessor:(void (^)(NSError *error))accessor NS_AVAILABLE(10_10, 8_0);
- (void)coordinateReadingItemAtURL:(NSURL *)url options:(NSFileCoordinatorReadingOptions)options error:(NSError **)outError byAccessor:(void (^)(NSURL *newURL))reader;
- (void)coordinateWritingItemAtURL:(NSURL *)url options:(NSFileCoordinatorWritingOptions)options error:(NSError **)outError byAccessor:(void (^)(NSURL *newURL))writer;
- (void)coordinateReadingItemAtURL:(NSURL *)readingURL options:(NSFileCoordinatorReadingOptions)readingOptions writingItemAtURL:(NSURL *)writingURL options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError **)outError byAccessor:(void (^)(NSURL *newReadingURL, NSURL *newWritingURL))readerWriter;
- (void)coordinateWritingItemAtURL:(NSURL *)url1 options:(NSFileCoordinatorWritingOptions)options1 writingItemAtURL:(NSURL *)url2 options:(NSFileCoordinatorWritingOptions)options2 error:(NSError **)outError byAccessor:(void (^)(NSURL *newURL1, NSURL *newURL2))writer;
- (void)prepareForReadingItemsAtURLs:(NSArray *)readingURLs options:(NSFileCoordinatorReadingOptions)readingOptions writingItemsAtURLs:(NSArray *)writingURLs options:(NSFileCoordinatorWritingOptions)writingOptions error:(NSError **)outError byAccessor:(void (^)(void (^completionHandler)(void)))batchAccessor;
NSFileHandle.h
@property (copy) void (^readabilityHandler)(NSFileHandle *) NS_AVAILABLE(10_7, 5_0);
@property (copy) void (^writeabilityHandler)(NSFileHandle *) NS_AVAILABLE(10_7, 5_0);
NSFileManager.h
- (NSDirectoryEnumerator *)enumeratorAtURL:(NSURL *)url includingPropertiesForKeys:(NSArray *)keys options:(NSDirectoryEnumerationOptions)mask errorHandler:(BOOL (^)(NSURL *url, NSError *error))handler NS_AVAILABLE(10_6, 4_0);
NSFilePresenter.h
- (void)relinquishPresentedItemToReader:(void (^)(void (^reacquirer)(void)))reader;
- (void)relinquishPresentedItemToWriter:(void (^)(void (^reacquirer)(void)))writer;
- (void)savePresentedItemChangesWithCompletionHandler:(void (^)(NSError *errorOrNil))completionHandler;
- (void)accommodatePresentedItemDeletionWithCompletionHandler:(void (^)(NSError *errorOrNil))completionHandler;
- (void)accommodatePresentedSubitemDeletionAtURL:(NSURL *)url completionHandler:(void (^)(NSError *errorOrNil))completionHandler;
NSFileVersion.h
+ (void)getNonlocalVersionsOfItemAtURL:(NSURL *)url completionHandler:(void (^)(NSArray *nonlocalFileVersions, NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
NSHTTPCookieStorage.h
- (void)getCookiesForTask:(NSURLSessionTask *)task completionHandler:(void (^) (NSArray *cookies))completionHandler NS_AVAILABLE(10_10, 8_0);
NSIndexSet.h
- (void)enumerateIndexesUsingBlock:(void (^)(NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateIndexesWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateIndexesInRange:(NSRange)range options:(NSEnumerationOptions)opts usingBlock:(void (^)(NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (NSUInteger)indexPassingTest:(BOOL (^)(NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSUInteger)indexWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSUInteger)indexInRange:(NSRange)range options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSIndexSet *)indexesPassingTest:(BOOL (^)(NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSIndexSet *)indexesWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSIndexSet *)indexesInRange:(NSRange)range options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (void)enumerateRangesUsingBlock:(void (^)(NSRange range, BOOL *stop))block NS_AVAILABLE(10_7, 5_0);
- (void)enumerateRangesWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(NSRange range, BOOL *stop))block NS_AVAILABLE(10_7, 5_0);
- (void)enumerateRangesInRange:(NSRange)range options:(NSEnumerationOptions)opts usingBlock:(void (^)(NSRange range, BOOL *stop))block NS_AVAILABLE(10_7, 5_0);
NSItemProvider.h
typedef void (^NSItemProviderCompletionHandler)(id <NSSecureCoding> item, NSError *error);
typedef void (^NSItemProviderLoadHandler)(NSItemProviderCompletionHandler completionHandler, Class expectedValueClass, NSDictionary *options);
NSLinguisticTagger.h
- (void)enumerateTagsInRange:(NSRange)range scheme:(NSString *)tagScheme options:(NSLinguisticTaggerOptions)opts usingBlock:(void (^)(NSString *tag, NSRange tokenRange, NSRange sentenceRange, BOOL *stop))block NS_AVAILABLE(10_7, 5_0);
- (void)enumerateLinguisticTagsInRange:(NSRange)range scheme:(NSString *)tagScheme options:(NSLinguisticTaggerOptions)opts orthography:(NSOrthography *)orthography usingBlock:(void (^)(NSString *tag, NSRange tokenRange, NSRange sentenceRange, BOOL *stop))block NS_AVAILABLE(10_7, 5_0);
NSMetadata.h
- (void)enumerateResultsUsingBlock:(void (^)(id result, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_9, 7_0);
- (void)enumerateResultsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id result, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_9, 7_0);
NSNotification.h
- (id <NSObject>)addObserverForName:(NSString *)name object:(id)obj queue:(NSOperationQueue *)queue usingBlock:(void (^)(NSNotification *note))block NS_AVAILABLE(10_6, 4_0);
NSObjCRuntime.h
typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
NSOperation.h
@property (copy) void (^completionBlock)(void) NS_AVAILABLE(10_6, 4_0);
+ (instancetype)blockOperationWithBlock:(void (^)(void))block;
- (void)addExecutionBlock:(void (^)(void))block;
- (void)addOperationWithBlock:(void (^)(void))block NS_AVAILABLE(10_6, 4_0);
NSOrderedSet.h
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
- (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
- (NSUInteger)indexOfObjectPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate;
- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate;
- (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate;
- (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate;
- (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate;
- (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate;
NSPredicate.h
+ (NSPredicate*)predicateWithBlock:(BOOL (^)(id evaluatedObject, NSDictionary *bindings))block NS_AVAILABLE(10_6, 4_0);
NSProcessInfo.h
- (void)performActivityWithOptions:(NSActivityOptions)options reason:(NSString *)reason usingBlock:(void (^)(void))block NS_AVAILABLE(10_9, 7_0);
NSProgress.h
void (^_cancellationHandler)(void);
void (^_pausingHandler)(void);
void (^_prioritizationHandler)(void);
@property (copy) void (^cancellationHandler)(void);
@property (copy) void (^pausingHandler)(void);
typedef void (^NSProgressUnpublishingHandler)(void);
typedef NSProgressUnpublishingHandler (^NSProgressPublishingHandler)(NSProgress *progress);
NSRegularExpression.h
- (void)enumerateMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range usingBlock:(void (^)(NSTextCheckingResult *result, NSMatchingFlags flags, BOOL *stop))block;
NSSet.h
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (NSSet *)objectsPassingTest:(BOOL (^)(id obj, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
- (NSSet *)objectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0);
NSString.h
- (void)enumerateSubstringsInRange:(NSRange)range options:(NSStringEnumerationOptions)opts usingBlock:(void (^)(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
- (void)enumerateLinesUsingBlock:(void (^)(NSString *line, BOOL *stop))block NS_AVAILABLE(10_6, 4_0);
NSURLCache.h
- (void)getCachedResponseForDataTask:(NSURLSessionDataTask *)dataTask completionHandler:(void (^) (NSCachedURLResponse *cachedResponse))completionHandler NS_AVAILABLE(10_10, 8_0);
NSURLConnection.h
completionHandler:(void (^)(NSURLResponse* response, NSData* data, NSError* connectionError)) handler NS_AVAILABLE(10_7, 5_0);
NSURLCredentialStorage.h
- (void)getCredentialsForProtectionSpace:(NSURLProtectionSpace *)protectionSpace task:(NSURLSessionTask *)task completionHandler:(void (^) (NSDictionary *credentials))completionHandler NS_AVAILABLE(10_10, 8_0);
- (void)getDefaultCredentialForProtectionSpace:(NSURLProtectionSpace *)space task:(NSURLSessionTask *)task completionHandler:(void (^) (NSURLCredential *credential))completionHandler NS_AVAILABLE(10_10, 8_0);
NSURLSession.h
- (void)resetWithCompletionHandler:(void (^)(void))completionHandler; /* empty all cookies, cache and credential stores, removes disk files, issues -flushWithCompletionHandler:. Invokes completionHandler() on the delegate queue if not nil. */
- (void)flushWithCompletionHandler:(void (^)(void))completionHandler; /* flush storage to disk and clear transient network caches. Invokes completionHandler() on the delegate queue if not nil. */
- (void)getTasksWithCompletionHandler:(void (^)(NSArray *dataTasks, NSArray *uploadTasks, NSArray *downloadTasks))completionHandler; /* invokes completionHandler with outstanding data, upload and download tasks. */
- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
- (NSURLSessionDataTask *)dataTaskWithURL:(NSURL *)url completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromFile:(NSURL *)fileURL completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request fromData:(NSData *)bodyData completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
- (NSURLSessionDownloadTask *)downloadTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSURL *location, NSURLResponse *response, NSError *error))completionHandler NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
- (NSURLSessionDownloadTask *)downloadTaskWithURL:(NSURL *)url completionHandler:(void (^)(NSURL *location, NSURLResponse *response, NSError *error))completionHandler NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
- (NSURLSessionDownloadTask *)downloadTaskWithResumeData:(NSData *)resumeData completionHandler:(void (^)(NSURL *location, NSURLResponse *response, NSError *error))completionHandler NS_CLASS_AVAILABLE(NSURLSESSION_AVAILABLE, 7_0);
- (void)cancelByProducingResumeData:(void (^)(NSData *resumeData))completionHandler;
completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler;
completionHandler:(void (^)(NSURLRequest *))completionHandler;
completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler;
needNewBodyStream:(void (^)(NSInputStream *bodyStream))completionHandler;
completionHandler:(void (^)(NSURLSessionResponseDisposition disposition))completionHandler;
completionHandler:(void (^)(NSCachedURLResponse *cachedResponse))completionHandler;
- (NSURLSessionDataTask *)dataTaskWithHTTPGetRequest:(NSURL *)url completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler NS_DEPRECATED(NSURLSESSION_AVAILABLE, NSURLSESSION_AVAILABLE, 7_0, 7_0);
NSUserActivity.h
- (void)getContinuationStreamsWithCompletionHandler:(void (^)(NSInputStream *inputStream, NSOutputStream *outputStream, NSError *error))completionHandler;
iOS SDK\Frameworks\GameController.framework\Headers
GCController.h
@property (copy) void (^controllerPausedHandler)(GCController *controller);
+ (void)startWirelessControllerDiscoveryWithCompletionHandler:(void (^)(void))completionHandler;
GCControllerAxisInput.h
typedef void (^GCControllerAxisValueChangedHandler)(GCControllerAxisInput *axis, float value);
GCControllerButtonInput.h
typedef void (^GCControllerButtonValueChangedHandler)(GCControllerButtonInput *button, float value, BOOL pressed);
GCControllerDirectionPad.h
typedef void (^GCControllerDirectionPadValueChangedHandler)(GCControllerDirectionPad *dpad, float xValue, float yValue);
GCExtendedGamepad.h
typedef void (^GCExtendedGamepadValueChangedHandler)(GCExtendedGamepad *gamepad, GCControllerElement *element);
GCGamepad.h
typedef void (^GCGamepadValueChangedHandler)(GCGamepad *gamepad, GCControllerElement *element);
GCMotion.h
typedef void (^GCMotionValueChangedHandler)(GCMotion *motion);
iOS SDK\Frameworks\GameKit.framework\Headers
GKAchievement.h
+ (void)loadAchievementsWithCompletionHandler:(void(^)(NSArray *achievements, NSError *error))completionHandler;
+ (void)resetAchievementsWithCompletionHandler:(void(^)(NSError *error))completionHandler;
+ (void)reportAchievements:(NSArray *)achievements withCompletionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_8, 6_0);
- (void)reportAchievementWithCompletionHandler:(void(^)(NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 4_1, 7_0, "Use +reportAchievements:withCompletionHandler:");
GKAchievementDescription.h
+ (void)loadAchievementDescriptionsWithCompletionHandler:(void(^)(NSArray *descriptions, NSError *error))completionHandler;
- (void)loadImageWithCompletionHandler:(void(^)(UIImage *image, NSError *error))completionHandler;
- (void)loadImageWithCompletionHandler:(void(^)(NSImage *image, NSError *error))completionHandler;
GKChallenge.h
typedef void (^GKChallengeComposeCompletionBlock)(UIViewController *composeController, BOOL didIssueChallenge, NSArray *sentPlayerIDs);
typedef void (^GKChallengeComposeCompletionBlock)(NSViewController *composeController, BOOL didIssueChallenge, NSArray *sentPlayerIDs);
+ (void)loadReceivedChallengesWithCompletionHandler:(void(^)(NSArray *challenges, NSError *error))completionHandler;
+ (void)reportScores:(NSArray *)scores withEligibleChallenges:(NSArray *)challenges withCompletionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)selectChallengeablePlayers:(NSArray *)players withCompletionHandler:(void(^)(NSArray *challengeablePlayers, NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
+ (void)reportAchievements:(NSArray *)achievements withEligibleChallenges:(NSArray *)challenges withCompletionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)selectChallengeablePlayerIDs:(NSArray *)playerIDs withCompletionHandler:(void(^)(NSArray *challengeablePlayerIDs, NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 6_0, 8_0, "pass GKPlayers to selectChallengeablePlayers:");
GKLeaderboard.h
- (void)loadScoresWithCompletionHandler:(void(^)(NSArray *scores, NSError *error))completionHandler;
+ (void)loadLeaderboardsWithCompletionHandler:(void(^)(NSArray *leaderboards, NSError *error))completionHandler NS_AVAILABLE(10_8, 6_0);
+ (void)loadCategoriesWithCompletionHandler:(void(^)(NSArray *categories, NSArray *titles, NSError *error))completionHandler NS_DEPRECATED(10_8, 10_9, 4_1, 6_0, "Use loadLeaderboardsWithCompletionHandler: instead");
+ (void)setDefaultLeaderboard:(NSString *)leaderboardIdentifier withCompletionHandler:(void(^)(NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 5_0, 7_0,"Use setDefaultLeaderboardIdentifier:completionHandler: on GKLocalPlayer instead");
- (void)loadImageWithCompletionHandler:(void(^)(UIImage *image, NSError *error))completionHandler NS_AVAILABLE(10_8, 7_0);
- (void)loadImageWithCompletionHandler:(void(^)(NSImage *image, NSError *error))completionHandler NS_AVAILABLE(10_8, 7_0);
GKLeaderboardSet.h
+ (void)loadLeaderboardSetsWithCompletionHandler:(void(^)(NSArray *leaderboardSets, NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)loadLeaderboardsWithCompletionHandler:(void(^)(NSArray *leaderboards, NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)loadImageWithCompletionHandler:(void(^)(UIImage *image, NSError *error))completionHandler;
- (void)loadImageWithCompletionHandler:(void(^)(NSImage *image, NSError *error))completionHandler;
GKLocalPlayer.h
@property(nonatomic, copy) void(^authenticateHandler)(UIViewController *viewController, NSError *error) NS_AVAILABLE_IOS(6_0);
@property(atomic, copy) void(^authenticateHandler)(NSViewController *viewController, NSError *error) NS_AVAILABLE_MAC(10_9);
- (void)loadFriendPlayersWithCompletionHandler:(void(^)(NSArray *friendPlayers, NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
- (void)setDefaultLeaderboardIdentifier:(NSString *)leaderboardIdentifier completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)loadDefaultLeaderboardIdentifierWithCompletionHandler:(void(^)(NSString *leaderboardIdentifier, NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)generateIdentityVerificationSignatureWithCompletionHandler:(void (^)(NSURL *publicKeyUrl, NSData *signature, NSData *salt, uint64_t timestamp, NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)setDefaultLeaderboardCategoryID:(NSString *)categoryID completionHandler:(void(^)(NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 6_0, 7_0,"Use setDefaultLeaderboardIdentifier:completionHandler: instead");
- (void)loadDefaultLeaderboardCategoryIDWithCompletionHandler:(void(^)(NSString *categoryID, NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 6_0, 7_0,"Use loadDefaultLeaderboardIdentifierWithCompletionHandler: instead");
- (void)loadFriendsWithCompletionHandler:(void(^)(NSArray *friendIDs, NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 4_1, 8_0, "use loadFriendPlayersWithCompletionHandler: instead");
- (void)authenticateWithCompletionHandler:(void(^)(NSError *error))completionHandler NS_DEPRECATED(10_8, 10_8, 4_1, 6_0, "Set the authenticateHandler instead");
GKMatch.h
- (void)chooseBestHostingPlayerWithCompletionHandler:(void(^)(GKPlayer *player))completionHandler NS_AVAILABLE(10_10, 8_0);
- (void)rematchWithCompletionHandler:(void(^)(GKMatch *match, NSError *error))completionHandler NS_AVAILABLE(10_9, 6_0);
- (void)chooseBestHostPlayerWithCompletionHandler:(void(^)(NSString *playerID))completionHandler NS_DEPRECATED(10_9, 10_10, 6_0, 8_0, "use chooseBestHostingPlayerWithCompletionHandler:");
GKMatchmaker.h
@property(copy) void(^recipientResponseHandler)(GKPlayer *player, GKInviteRecipientResponse response) NS_AVAILABLE(10_10, 8_0);
@property(copy) void(^inviteeResponseHandler)(NSString *playerID, GKInviteeResponse response) NS_DEPRECATED(10_9, 10_10, 6_0, 8_0, "use recipientResponseHandler");
- (void)matchForInvite:(GKInvite *)invite completionHandler:(void(^)(GKMatch *match, NSError *error))completionHandler NS_AVAILABLE(10_9, 6_0);
- (void)findMatchForRequest:(GKMatchRequest *)request withCompletionHandler:(void(^)(GKMatch *match, NSError *error))completionHandler;
- (void)findPlayersForHostedRequest:(GKMatchRequest *)request withCompletionHandler:(void(^)(NSArray *players, NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
- (void)addPlayersToMatch:(GKMatch *)match matchRequest:(GKMatchRequest *)matchRequest completionHandler:(void (^)(NSError *error))completionHandler;
- (void)queryPlayerGroupActivity:(NSUInteger)playerGroup withCompletionHandler:(void(^)(NSInteger activity, NSError *error))completionHandler;
- (void)queryActivityWithCompletionHandler:(void(^)(NSInteger activity, NSError *error))completionHandler;
- (void)startBrowsingForNearbyPlayersWithHandler:(void(^)(GKPlayer *player, BOOL reachable))reachableHandler NS_AVAILABLE(10_10, 8_0);
@property(nonatomic, copy) void(^inviteHandler)(GKInvite *acceptedInvite, NSArray *playerIDsToInvite) NS_DEPRECATED(10_8, 10_10, 4_1, 7_0, "Use registerListener on GKLocalPlayer to register an object that implements the GKInviteEventListenerProtocol instead");
- (void)startBrowsingForNearbyPlayersWithReachableHandler:(void(^)(NSString *playerID, BOOL reachable))reachableHandler NS_DEPRECATED(10_9, 10_10, 6_0, 8_0);
- (void)findPlayersForHostedMatchRequest:(GKMatchRequest *)request withCompletionHandler:(void(^)(NSArray *playerIDs, NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 4_1, 8_0, "use findPlayersForHostedRequest:");
GKNotificationBanner.h
+ (void)showBannerWithTitle:(NSString *)title message:(NSString *)message completionHandler:(void(^)(void))completionHandler NS_AVAILABLE(10_8, 5_0);
+ (void)showBannerWithTitle:(NSString *)title message:(NSString *)message duration:(NSTimeInterval)duration completionHandler:(void(^)(void))completionHandler NS_AVAILABLE(10_8, 6_0);
GKPlayer.h
+ (void)loadPlayersForIdentifiers:(NSArray *)identifiers withCompletionHandler:(void(^)(NSArray *players, NSError *error))completionHandler;
- (void)loadPhotoForSize:(GKPhotoSize)size withCompletionHandler:(void(^)(UIImage *photo, NSError *error))completionHandler NS_AVAILABLE(10_8, 5_0);
- (void)loadPhotoForSize:(GKPhotoSize)size withCompletionHandler:(void(^)(NSImage *photo, NSError *error))completionHandler NS_AVAILABLE(10_8, 5_0);
GKSavedGame.h
- (void)loadDataWithCompletionHandler:(void(^)(NSData *data, NSError *error))handler;
- (void)fetchSavedGamesWithCompletionHandler:(void(^)(NSArray *savedGames, NSError *error))handler;
- (void)saveGameData:(NSData *)data withName:(NSString *)name completionHandler:(void(^)(GKSavedGame *savedGame, NSError *error))handler;
- (void)deleteSavedGamesWithName:(NSString *)name completionHandler:(void(^)(NSError *error))handler;
- (void)resolveConflictingSavedGames:(NSArray *)conflictingSavedGames withData:(NSData *)data completionHandler:(void(^)(NSArray *savedGames, NSError *error))handler;
GKScore.h
+ (void)reportScores:(NSArray *)scores withCompletionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_8, 6_0);
- (void)reportScoreWithCompletionHandler:(void(^)(NSError *error))completionHandler NS_DEPRECATED(10_8, 10_10, 4_1, 7_0, "Use +reportScores:withCompletionhandler: instead");
GKTurnBasedMatch.h
+ (void)findMatchForRequest:(GKMatchRequest *)request withCompletionHandler:(void(^)(GKTurnBasedMatch *match, NSError *error))completionHandler;
+ (void)loadMatchesWithCompletionHandler:(void(^)(NSArray *matches, NSError *error))completionHandler;
+ (void)loadMatchWithID:(NSString *)matchID withCompletionHandler:(void(^)(GKTurnBasedMatch *match, NSError *error))completionHandler NS_AVAILABLE(10_8, 5_0);
- (void)rematchWithCompletionHandler:(void(^)(GKTurnBasedMatch *match, NSError *error))completionHandler NS_AVAILABLE(10_9, 6_0);
- (void)acceptInviteWithCompletionHandler:(void(^)(GKTurnBasedMatch *match, NSError *error))completionHandler NS_AVAILABLE(10_8, 5_0);
- (void)declineInviteWithCompletionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_8, 5_0);
- (void)removeWithCompletionHandler:(void(^)(NSError *error))completionHandler;
- (void)loadMatchDataWithCompletionHandler:(void(^)(NSData *matchData, NSError *error))completionHandler;
completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_9, 6_0);
completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_9, 6_0);
- (void)participantQuitOutOfTurnWithOutcome:(GKTurnBasedMatchOutcome)matchOutcome withCompletionHandler:(void(^)(NSError *error))completionHandler;
- (void)endMatchInTurnWithMatchData:(NSData*)matchData completionHandler:(void(^)(NSError *error))completionHandler;
- (void)endMatchInTurnWithMatchData:(NSData*)matchData scores:(NSArray *)scores achievements:(NSArray *)achievements completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)saveCurrentTurnWithMatchData:(NSData *)matchData completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_8, 6_0);
completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
completionHandler:(void(^)(GKTurnBasedExchange *exchange, NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)endTurnWithNextParticipant:(GKTurnBasedParticipant *)nextParticipant matchData:(NSData*)matchData completionHandler:(void(^)(NSError *error))completionHandler NS_DEPRECATED(10_8, 10_9, 5_0, 6_0, "Use endTurnWithNextParticipants:... instead");
- (void)participantQuitInTurnWithOutcome:(GKTurnBasedMatchOutcome)matchOutcome nextParticipant:(GKTurnBasedParticipant *)nextParticipant matchData:(NSData*)matchData completionHandler:(void(^)(NSError *error))completionHandler NS_DEPRECATED(10_8, 10_9, 5_0, 6_0, "Use participantQuitInTurnWithOutcome:nextParticipants:turnTimeout:... instead");
- (void)cancelWithLocalizableMessageKey:(NSString *)key arguments:(NSArray *)arguments completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
- (void)replyWithLocalizableMessageKey:(NSString *)key arguments:(NSArray *)arguments data:(NSData *)data completionHandler:(void(^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 7_0);
GKVoiceChat.h
@property(copy, NS_NONATOMIC_IOSONLY) void(^playerVoiceChatStateDidChangeHandler)(GKPlayer *player, GKVoiceChatPlayerState state) NS_AVAILABLE(10_10, 8_0);
@property(copy, NS_NONATOMIC_IOSONLY) void(^playerStateUpdateHandler)(NSString *playerID, GKVoiceChatPlayerState state) NS_DEPRECATED(10_8, 10_10, 4_1, 8_0, "use setPlayerVoiceChatStateDidChangeHandler:");
iOS SDK\Frameworks\GLKit.framework\Headers
GLKTextureLoader.h
typedef void (^GLKTextureLoaderCallback) (GLKTextureInfo *textureInfo, NSError *outError);
iOS SDK\Frameworks\GSS.framework\Headers
gssapi_protos.h
void (^useriter)(gss_iter_OID, gss_cred_id_t)) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_5_0);
iOS SDK\Frameworks\HealthKit.framework\Headers
HKAnchoredObjectQuery.h
completionHandler:(void(^)(HKAnchoredObjectQuery *query, NSArray *results, NSUInteger newAnchor, NSError *error))handler;
HKCorrelationQuery.h
completion:(void(^)(HKCorrelationQuery *query, NSArray *correlations, NSError *error))completion;
HKHealthStore.h
completion:(void (^)(BOOL success, NSError *error))completion;
- (void)saveObject:(HKObject *)object withCompletion:(void(^)(BOOL success, NSError *error))completion;
- (void)saveObjects:(NSArray *)objects withCompletion:(void(^)(BOOL success, NSError *error))completion;
- (void)deleteObject:(HKObject *)object withCompletion:(void(^)(BOOL success, NSError *error))completion;
- (void)addSamples:(NSArray *)samples toWorkout:(HKWorkout *)workout completion:(void(^)(BOOL success, NSError *error))completion;
- (void)enableBackgroundDeliveryForType:(HKObjectType *)type frequency:(HKUpdateFrequency)frequency withCompletion:(void(^)(BOOL success, NSError *error))completion;
- (void)disableBackgroundDeliveryForType:(HKObjectType *)type withCompletion:(void(^)(BOOL success, NSError *error))completion;
- (void)disableAllBackgroundDeliveryWithCompletion:(void(^)(BOOL success, NSError *error))completion;
HKObserverQuery.h
typedef void(^HKObserverQueryCompletionHandler)(void);
updateHandler:(void(^)(HKObserverQuery *query, HKObserverQueryCompletionHandler completionHandler, NSError *error))updateHandler;
HKSampleQuery.h
resultsHandler:(void(^)(HKSampleQuery *query, NSArray *results, NSError *error))resultsHandler;
HKSourceQuery.h
completionHandler:(void(^)(HKSourceQuery *query, NSSet *sources, NSError *error))completionHandler;
HKStatisticsCollectionQuery.h
- (void)enumerateStatisticsFromDate:(NSDate *)startDate toDate:(NSDate *)endDate withBlock:(void(^)(HKStatistics *result, BOOL *stop))block;
@property (nonatomic, copy) void(^initialResultsHandler)(HKStatisticsCollectionQuery *query, HKStatisticsCollection *result, NSError *error);
@property (nonatomic, copy) void(^statisticsUpdateHandler)(HKStatisticsCollectionQuery *query, HKStatistics *statistics, HKStatisticsCollection *collection, NSError *error);
HKStatisticsQuery.h
completionHandler:(void(^)(HKStatisticsQuery *query, HKStatistics *result, NSError *error))handler;
HKUnit.h
// Units can be combined using multiplication (. or *) and division (/), and raised to integral powers (^).
iOS SDK\Frameworks\HomeKit.framework\Headers
HMAccessory.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
- (void)identifyWithCompletionHandler:(void (^)(NSError *error))completion;
HMActionSet.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
- (void)addAction:(HMAction *)action completionHandler:(void (^)(NSError *error))completion;
- (void)removeAction:(HMAction *)action completionHandler:(void (^)(NSError *error))completion;
HMCharacteristic.h
- (void)writeValue:(id)value completionHandler:(void (^)(NSError *error))completion;
- (void)readValueWithCompletionHandler:(void (^)(NSError *error))completion;
- (void)enableNotification:(BOOL)enable completionHandler:(void (^)(NSError *error))completion;
- (void)updateAuthorizationData:(NSData *)data completionHandler:(void (^)(NSError *error))completion;
HMCharacteristicWriteAction.h
- (void)updateTargetValue:(id)targetValue completionHandler:(void (^)(NSError *error))completion;
HMHome.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
- (void)addAccessory:(HMAccessory *)accessory completionHandler:(void (^)(NSError *error))completion;
- (void)removeAccessory:(HMAccessory *)accessory completionHandler:(void (^)(NSError *error))completion;
- (void)assignAccessory:(HMAccessory *)accessory toRoom:(HMRoom *)room completionHandler:(void (^)(NSError *error))completion;
- (void)unblockAccessory:(HMAccessory *)accessory completionHandler:(void (^)(NSError *error))completion;
- (void)addUserWithCompletionHandler:(void (^)(HMUser *user, NSError *error))completion;
- (void)removeUser:(HMUser *)user completionHandler:(void (^)(NSError *error))completion;
- (void)addRoomWithName:(NSString *)roomName completionHandler:(void (^)(HMRoom *room, NSError *error))completion;
- (void)removeRoom:(HMRoom *)room completionHandler:(void (^)(NSError *error))completion;
- (void)addZoneWithName:(NSString *)zoneName completionHandler:(void (^)(HMZone *zone, NSError *error))completion;
- (void)removeZone:(HMZone *)zone completionHandler:(void (^)(NSError *error))completion;
- (void)addServiceGroupWithName:(NSString *)serviceGroupName completionHandler:(void (^)(HMServiceGroup *group, NSError *error))completion;
- (void)removeServiceGroup:(HMServiceGroup *)group completionHandler:(void (^)(NSError *error))completion;
- (void)addActionSetWithName:(NSString *)actionSetName completionHandler:(void (^)(HMActionSet *actionSet, NSError *error))completion;
- (void)removeActionSet:(HMActionSet *)actionSet completionHandler:(void (^)(NSError *error))completion;
- (void)executeActionSet:(HMActionSet *)actionSet completionHandler:(void (^)(NSError *error))completion;
- (void)addTrigger:(HMTrigger *)trigger completionHandler:(void (^)(NSError *error))completion;
- (void)removeTrigger:(HMTrigger *)trigger completionHandler:(void (^)(NSError *error))completion;
HMHomeManager.h
- (void)updatePrimaryHome:(HMHome *)home completionHandler:(void (^)(NSError *error))completion;
- (void)addHomeWithName:(NSString *)homeName completionHandler:(void (^)(HMHome *home, NSError *error))completion;
- (void)removeHome:(HMHome *)home completionHandler:(void (^)(NSError *error))completion;
HMRoom.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
HMService.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
- (void)updateAssociatedServiceType:(NSString *)serviceType completionHandler:(void (^)(NSError *error))completion;
HMServiceGroup.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
- (void)addService:(HMService *)service completionHandler:(void (^)(NSError *error))completion;
- (void)removeService:(HMService *)service completionHandler:(void (^)(NSError *error))completion;
HMTimerTrigger.h
- (void)updateFireDate:(NSDate *)fireDate completionHandler:(void (^)(NSError *error))completion;
- (void)updateTimeZone:(NSTimeZone *)timeZone completionHandler:(void (^)(NSError *error))completion;
- (void)updateRecurrence:(NSDateComponents *)recurrence completionHandler:(void (^)(NSError *error))completion;
HMTrigger.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
- (void)addActionSet:(HMActionSet *)actionSet completionHandler:(void (^)(NSError *error))completion;
- (void)removeActionSet:(HMActionSet *)actionSet completionHandler:(void (^)(NSError *error))completion;
- (void)enable:(BOOL)enable completionHandler:(void (^)(NSError *error))completion;
HMZone.h
- (void)updateName:(NSString *)name completionHandler:(void (^)(NSError *error))completion;
- (void)addRoom:(HMRoom *)room completionHandler:(void (^)(NSError *error))completion;
- (void)removeRoom:(HMRoom *)room completionHandler:(void (^)(NSError *error))completion;
iOS SDK\Frameworks\iAd.framework\Headers
ADClient.h
- (void)determineAppInstallationAttributionWithCompletionHandler:(void (^)(BOOL appInstallationWasAttributedToiAd))completionHandler NS_AVAILABLE_IOS(7_1);
- (void)lookupAdConversionDetails:(void (^)(NSDate *appPurchaseDate, NSDate *iAdImpressionDate))completionHandler NS_AVAILABLE_IOS(8_0);
AVPlayerViewController_iAdPreroll.h
- (void)playPrerollAdWithCompletionHandler:(void (^)(NSError *error))completionHandler NS_AVAILABLE_IOS(8_0);
MPMoviePlayerController_iAdPreroll.h
- (void)playPrerollAdWithCompletionHandler:(void (^)(NSError *error))completionHandler NS_AVAILABLE_IOS(7_0);
iOS SDK\Frameworks\ImageIO.framework\Headers
CGImageMetadata.h
typedef bool(^CGImageMetadataTagBlock)(CFStringRef path, CGImageMetadataTagRef tag);
iOS SDK\Frameworks\JavaScriptCore.framework\Headers
JSContext.h
@property (copy) void(^exceptionHandler)(JSContext *context, JSValue *exception);
iOS SDK\Frameworks\LocalAuthentication.framework\Headers
LAContext.h
reply:(void(^)(BOOL success, NSError *error))reply;
iOS SDK\Frameworks\MapKit.framework\Headers
MKDirections.h
typedef void (^MKDirectionsHandler)(MKDirectionsResponse *response, NSError *error);
typedef void (^MKETAHandler)(MKETAResponse *response, NSError *error);
MKLocalSearch.h
typedef void (^MKLocalSearchCompletionHandler)(MKLocalSearchResponse *response, NSError *error);
MKMapSnapshotter.h
typedef void (^MKMapSnapshotCompletionHandler)(MKMapSnapshot *snapshot, NSError *error);
MKTileOverlay.h
- (void)loadTileAtPath:(MKTileOverlayPath)path result:(void (^)(NSData *tileData, NSError *error))result;
iOS SDK\Frameworks\MediaPlayer.framework\Headers
MPMediaEntity.h
- (void)enumerateValuesForProperties:(NSSet *)properties usingBlock:(void (^)(NSString *property, id value, BOOL *stop))block NS_AVAILABLE_IOS(4_0);
MPPlayableContentDataSource.h
- (void)beginLoadingChildItemsAtIndexPath:(NSIndexPath *)indexPath completionHandler:(void(^)(NSError *))completionHandler;
MPPlayableContentDelegate.h
completionHandler:(void(^)(NSError *))completionHandler;
MPRemoteCommand.h
- (id)addTargetWithHandler:(MPRemoteCommandHandlerStatus(^)(MPRemoteCommandEvent *event))handler;
iOS SDK\Frameworks\Metal.framework\Headers
MTLCommandBuffer.h
typedef void (^MTLCommandBufferHandler)(id <MTLCommandBuffer>);
MTLDevice.h
- (id <MTLBuffer>)newBufferWithBytesNoCopy:(void *)pointer length:(NSUInteger)length options:(MTLResourceOptions)options deallocator:(void (^)(void *pointer, NSUInteger length))deallocator;
- (void)newLibraryWithSource:(NSString *)source options:(MTLCompileOptions *)options completionHandler:(void (^)(id <MTLLibrary> library, NSError *error))completionHandler;
- (void)newRenderPipelineStateWithDescriptor:(MTLRenderPipelineDescriptor *)descriptor completionHandler:(void (^)(id <MTLRenderPipelineState> renderPipelineState, NSError *error))completionHandler;
completionHandler:(void (^)(id <MTLRenderPipelineState> renderPipelineState, MTLRenderPipelineReflection* reflection, NSError *error))completionHandler;
- (void)newComputePipelineStateWithFunction:(id <MTLFunction>)computeFunction completionHandler:(void (^)(id <MTLComputePipelineState> computePipelineState, NSError *error))completionHandler;
- (void)newComputePipelineStateWithFunction:(id <MTLFunction>)computeFunction options:(MTLPipelineOption)options completionHandler:(void (^)(id <MTLComputePipelineState> computePipelineState, MTLComputePipelineReflection *reflection, NSError *error))completionHandler;
iOS SDK\Frameworks\MultipeerConnectivity.framework\Headers
MCNearbyServiceAdvertiser.h
- (void)advertiser:(MCNearbyServiceAdvertiser *)advertiser didReceiveInvitationFromPeer:(MCPeerID *)peerID withContext:(NSData *)context invitationHandler:(void(^)(BOOL accept, MCSession *session))invitationHandler;
MCSession.h
- (NSProgress *)sendResourceAtURL:(NSURL *)resourceURL withName:(NSString *)resourceName toPeer:(MCPeerID *)peerID withCompletionHandler:(void(^)(NSError *error))completionHandler;
- (void)session:(MCSession *)session didReceiveCertificate:(NSArray *)certificate fromPeer:(MCPeerID *)peerID certificateHandler:(void(^)(BOOL accept))certificateHandler;
- (void)nearbyConnectionDataForPeer:(MCPeerID *)peerID withCompletionHandler:(void(^)(NSData *connectionData, NSError *error))completionHandler;
iOS SDK\Frameworks\NetworkExtension.framework\Headers
NEVPNManager.h
- (void)loadFromPreferencesWithCompletionHandler:(void (^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
- (void)removeFromPreferencesWithCompletionHandler:(void (^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
- (void)saveToPreferencesWithCompletionHandler:(void (^)(NSError *error))completionHandler NS_AVAILABLE(10_10, 8_0);
iOS SDK\Frameworks\NotificationCenter.framework\Headers
NCWidgetProviding.h
- (void)widgetPerformUpdateWithCompletionHandler:(void (^)(NCUpdateResult result))completionHandler;
iOS SDK\Frameworks\PassKit.framework\Headers
PKPassLibrary.h
- (void)addPasses:(NSArray *)passes withCompletionHandler:(void(^)(PKPassLibraryAddPassesStatus status))completion NS_AVAILABLE_IOS(7_0);
- (void)activatePaymentPass:(PKPaymentPass *)paymentPass withActivationData:(NSData *)activationData completion:(void(^)(BOOL success, NSError* error))completion NS_AVAILABLE_IOS(8_0);
- (void)activatePaymentPass:(PKPaymentPass *)paymentPass withActivationCode:(NSString *)activationCode completion:(void(^)(BOOL success, NSError* error))completion NS_AVAILABLE_IOS(8_0);
PKPaymentAuthorizationViewController.h
completion:(void (^)(PKPaymentAuthorizationStatus status))completion;
completion:(void (^)(PKPaymentAuthorizationStatus status, NSArray *summaryItems))completion;
completion:(void (^)(PKPaymentAuthorizationStatus status, NSArray *shippingMethods, NSArray *summaryItems))completion;
iOS SDK\Frameworks\Photos.framework\Headers
PHAssetChangeRequest.h
@property (nonatomic, copy) BOOL (^canHandleAdjustmentData)(PHAdjustmentData *adjustmentData);
@property (nonatomic, copy) void (^progressHandler)(double progress, BOOL *stop);
- (PHContentEditingInputRequestID)requestContentEditingInputWithOptions:(PHContentEditingInputRequestOptions *)options completionHandler:(void (^)(PHContentEditingInput *contentEditingInput, NSDictionary *info))completionHandler NS_AVAILABLE_IOS(8_0);
PHChange.h
- (void)enumerateMovesWithBlock:(void(^)(NSUInteger fromIndex, NSUInteger toIndex))handler;
PHFetchResult.h
- (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
- (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block;
PHImageManager.h
typedef void (^ PHAssetImageProgressHandler)(double progress, NSError *error, BOOL *stop, NSDictionary *info) NS_AVAILABLE_IOS(8_0);
typedef void (^PHAssetVideoProgressHandler)(double progress, NSError *error, BOOL *stop, NSDictionary *info) NS_AVAILABLE_IOS(8_0);
- (PHImageRequestID)requestImageForAsset:(PHAsset *)asset targetSize:(CGSize)targetSize contentMode:(PHImageContentMode)contentMode options:(PHImageRequestOptions *)options resultHandler:(void (^)(UIImage *result, NSDictionary *info))resultHandler;
- (PHImageRequestID)requestImageDataForAsset:(PHAsset *)asset options:(PHImageRequestOptions *)options resultHandler:(void(^)(NSData *imageData, NSString *dataUTI, UIImageOrientation orientation, NSDictionary *info))resultHandler;
- (PHImageRequestID)requestPlayerItemForVideo:(PHAsset *)asset options:(PHVideoRequestOptions *)options resultHandler:(void (^)(AVPlayerItem *playerItem, NSDictionary *info))resultHandler;
- (PHImageRequestID)requestExportSessionForVideo:(PHAsset *)asset options:(PHVideoRequestOptions *)options exportPreset:(NSString *)exportPreset resultHandler:(void (^)(AVAssetExportSession *exportSession, NSDictionary *info))resultHandler;
- (PHImageRequestID)requestAVAssetForVideo:(PHAsset *)asset options:(PHVideoRequestOptions *)options resultHandler:(void (^)(AVAsset *asset, AVAudioMix *audioMix, NSDictionary *info))resultHandler;
PHPhotoLibrary.h
+ (void)requestAuthorization:(void(^)(PHAuthorizationStatus status))handler;
- (void)performChanges:(dispatch_block_t)changeBlock completionHandler:(void(^)(BOOL success, NSError *error))completionHandler;
iOS SDK\Frameworks\PhotosUI.framework\Headers
PHContentEditingController.h
- (void)finishContentEditingWithCompletionHandler:(void (^)(PHContentEditingOutput *))completionHandler;
iOS SDK\Frameworks\QuartzCore.framework\Headers
CATransaction.h
+ (void (^)(void))completionBlock;
+ (void)setCompletionBlock:(void (^)(void))block;
iOS SDK\Frameworks\SceneKit.framework\Headers
SCNAction.h
typedef float (^SCNActionTimingFunction)(float time);
- (void)runAction:(SCNAction *)action completionHandler:(void (^)())block SCENEKIT_AVAILABLE(10_10, 8_0);
- (void)runAction:(SCNAction *)action forKey:(NSString *)key completionHandler:(void (^)())block SCENEKIT_AVAILABLE(10_10, 8_0);
+ (SCNAction *)runBlock:(void (^)(SCNNode *node))block;
+ (SCNAction *)runBlock:(void (^)(SCNNode *node))block queue:(dispatch_queue_t)queue;
+ (SCNAction *)customActionWithDuration:(NSTimeInterval)seconds actionBlock:(void (^)(SCNNode *node, CGFloat elapsedTime))block;
SCNAnimation.h
typedef void (^SCNAnimationEventBlock)(CAAnimation *animation, id animatedObject, BOOL playingBackward);
SCNConstraint.h
+ (instancetype)transformConstraintInWorldSpace:(BOOL)world withBlock:(SCNMatrix4(^)(SCNNode *node, SCNMatrix4 transform))block;
SCNNode.h
- (NSArray *)childNodesPassingTest:(BOOL (^)(SCNNode * child, BOOL *stop))predicate;
- (void)enumerateChildNodesUsingBlock:(void (^)(SCNNode *child, BOOL *stop))block SCENEKIT_AVAILABLE(10_10, 8_0);
SCNParticleSystem.h
typedef void (^SCNParticleEventBlock)(void **data, size_t *dataStride, uint32_t *indices, NSInteger count);
typedef void (^SCNParticleModifierBlock)(void **data, size_t *dataStride, NSInteger start, NSInteger end, float deltaTime);
SCNPhysicsField.h
typedef SCNVector3 (^SCNFieldForceEvaluator)(SCNVector3 position, SCNVector3 velocity, float mass, float charge, NSTimeInterval time);
SCNScene.h
typedef void (^SCNSceneExportProgressHandler)(float totalProgress, NSError *error, BOOL *stop);
SCNSceneRenderer.h
- (BOOL)prepareObject:(id)object shouldAbortBlock:(BOOL (^)())block SCENEKIT_AVAILABLE(10_9, 8_0);
- (void)prepareObjects:(NSArray *)objects withCompletionHandler:(void (^)(BOOL success))completionHandler SCENEKIT_AVAILABLE(10_10, 8_0);
SCNSceneSource.h
typedef void (^SCNSceneSourceStatusHandler)(float totalProgress, SCNSceneSourceStatus status, NSError *error, BOOL *stop);
- (NSArray *)entriesPassingTest:(BOOL (^)(id entry, NSString *identifier, BOOL *stop))predicate SCENEKIT_AVAILABLE(10_9, 8_0);
SCNShadable.h
typedef void (^SCNBindingBlock)(unsigned int programID, unsigned int location, SCNNode *renderedNode, SCNRenderer *renderer);
SCNTransaction.h
+ (void (^)(void))completionBlock;
+ (void)setCompletionBlock:(void (^)(void))block;
iOS SDK\Frameworks\Security.framework\Headers
SecSharedCredential.h
void (^completionHandler)(CFErrorRef error))
void (^completionHandler)(CFArrayRef credentials, CFErrorRef error))
SecTrust.h
typedef void (^SecTrustCallback)(SecTrustRef trustRef, SecTrustResultType trustResult);
iOS SDK\Frameworks\Social.framework\Headers
SLComposeSheetConfigurationItem.h
typedef void (^SLComposeSheetConfigurationItemTapHandler)(void);
SLComposeViewController.h
typedef void (^SLComposeViewControllerCompletionHandler)(SLComposeViewControllerResult result);
SLRequest.h
typedef void(^SLRequestHandler)(NSData *responseData, NSHTTPURLResponse *urlResponse, NSError *error);
iOS SDK\Frameworks\SpriteKit.framework\Headers
SKAction.h
typedef float (^SKActionTimingFunction)(float time);
+ (SKAction *)customActionWithDuration:(NSTimeInterval)seconds actionBlock:(void (^)(SKNode *node, CGFloat elapsedTime))block;
SKFieldNode.h
typedef vector_float3 (^SKFieldForceEvaluator)(vector_float3 position, vector_float3 velocity, float mass, float charge, NSTimeInterval deltaTime);
SKMutableTexture.h
- (void)modifyPixelDataWithBlock:(void (^)(void *pixelData, size_t lengthInBytes))block;
SKNode.h
- (void)enumerateChildNodesWithName:(NSString *)name usingBlock:(void (^)(SKNode *node, BOOL *stop))block;
- (void)runAction:(SKAction *)action completion:(void (^)())block;
SKPhysicsWorld.h
- (void)enumerateBodiesAtPoint:(CGPoint)point usingBlock:(void (^)(SKPhysicsBody *body, BOOL *stop))block;
- (void)enumerateBodiesInRect:(CGRect)rect usingBlock:(void (^)(SKPhysicsBody *body, BOOL *stop))block;
usingBlock:(void (^)(SKPhysicsBody *body, CGPoint point, CGVector normal, BOOL *stop))block;
SKTexture.h
+ (void)preloadTextures:(NSArray *)textures withCompletionHandler:(void(^)(void))completionHandler;
- (void)preloadWithCompletionHandler:(void(^)(void))completionHandler;
SKTextureAtlas.h
+ (void)preloadTextureAtlases:(NSArray *)textureAtlases withCompletionHandler:(void(^)(void))completionHandler;
- (void)preloadWithCompletionHandler:(void(^)(void))completionHandler;
iOS SDK\Frameworks\StoreKit.framework\Headers
SKStoreProductViewController.h
- (void)loadProductWithParameters:(NSDictionary *)parameters completionBlock:(void(^)(BOOL result, NSError *error))block NS_AVAILABLE_IOS(6_0);
iOS SDK\Frameworks\UIKit.framework\Headers
NSFileProviderExtension.h
- (void)providePlaceholderAtURL:(NSURL *)url completionHandler:(void (^)(NSError *error))completionHandler;
- (void)startProvidingItemAtURL:(NSURL *)url completionHandler:(void (^)(NSError *error))completionHandler;
NSLayoutManager.h
- (void)enumerateLineFragmentsForGlyphRange:(NSRange)glyphRange usingBlock:(void (^)(CGRect rect, CGRect usedRect, NSTextContainer *textContainer, NSRange glyphRange, BOOL *stop))block;
- (void)enumerateEnclosingRectsForGlyphRange:(NSRange)glyphRange withinSelectedGlyphRange:(NSRange)selectedRange inTextContainer:(NSTextContainer *)textContainer usingBlock:(void (^)(CGRect rect, BOOL *stop))block;
UIAccessibility.h
UIKIT_EXTERN void UIAccessibilityRequestGuidedAccessSession(BOOL enable, void(^completionHandler)(BOOL didSucceed)) NS_AVAILABLE_IOS(7_0);
UIActivityViewController.h
typedef void (^UIActivityViewControllerCompletionHandler)(NSString *activityType, BOOL completed);
typedef void (^UIActivityViewControllerCompletionWithItemsHandler)(NSString *activityType, BOOL completed, NSArray *returnedItems, NSError *activityError);
UIAlertController.h
+ (instancetype)actionWithTitle:(NSString *)title style:(UIAlertActionStyle)style handler:(void (^)(UIAlertAction *action))handler;
- (void)addTextFieldWithConfigurationHandler:(void (^)(UITextField *textField))configurationHandler;
UIApplication.h
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^)(void))handler NS_AVAILABLE_IOS(4_0);
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithName:(NSString *)taskName expirationHandler:(void(^)(void))handler NS_AVAILABLE_IOS(7_0);
- (BOOL)setKeepAliveTimeout:(NSTimeInterval)timeout handler:(void(^)(void))keepAliveHandler NS_AVAILABLE_IOS(4_0);
- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forLocalNotification:(UILocalNotification *)notification completionHandler:(void(^)())completionHandler NS_AVAILABLE_IOS(8_0);
- (void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forRemoteNotification:(NSDictionary *)userInfo completionHandler:(void(^)())completionHandler NS_AVAILABLE_IOS(8_0);
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler NS_AVAILABLE_IOS(7_0);
- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler NS_AVAILABLE_IOS(7_0);
- (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)())completionHandler NS_AVAILABLE_IOS(7_0);
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void(^)(NSArray *restorableObjects))restorationHandler NS_AVAILABLE_IOS(8_0);
UICollectionView.h
typedef void (^UICollectionViewLayoutInteractiveTransitionCompletion)(BOOL completed, BOOL finished);
- (void)setCollectionViewLayout:(UICollectionViewLayout *)layout animated:(BOOL)animated completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(7_0);
- (void)performBatchUpdates:(void (^)(void))updates completion:(void (^)(BOOL finished))completion; // allows multiple insert/delete/reload/move calls to be animated simultaneously. Nestable.
UIDocument.h
- (void)openWithCompletionHandler:(void (^)(BOOL success))completionHandler;
- (void)closeWithCompletionHandler:(void (^)(BOOL success))completionHandler;
- (void)saveToURL:(NSURL *)url forSaveOperation:(UIDocumentSaveOperation)saveOperation completionHandler:(void (^)(BOOL success))completionHandler;
- (void)autosaveWithCompletionHandler:(void (^)(BOOL success))completionHandler;
- (void)performAsynchronousFileAccessUsingBlock:(void (^)(void))block;
- (void)revertToContentsOfURL:(NSURL *)url completionHandler:(void (^)(BOOL success))completionHandler;
UIDocumentMenuViewController.h
- (void)addOptionWithTitle:(NSString *)title image:(UIImage *)image order:(UIDocumentMenuOrder)order handler:(void (^)(void))handler;
UIDynamicBehavior.h
@property (nonatomic,copy) void (^action)(void);
UIInputViewController.h
- (void)requestSupplementaryLexiconWithCompletion:(void (^)(UILexicon *))completionHandler;
UIPageViewController.h
- (void)setViewControllers:(NSArray *)viewControllers direction:(UIPageViewControllerNavigationDirection)direction animated:(BOOL)animated completion:(void (^)(BOOL finished))completion;
UIPrinter.h
- (void)contactPrinter:(void(^)(BOOL available))completionHandler;
UIPrinterPickerController.h
typedef void (^UIPrinterPickerCompletionHandler)(UIPrinterPickerController *printerPickerController, BOOL userDidSelect, NSError *error);
UIPrintInteractionController.h
typedef void (^UIPrintInteractionCompletionHandler)(UIPrintInteractionController *printInteractionController, BOOL completed, NSError *error);
UIStoryboardSegue.h
+ (instancetype)segueWithIdentifier:(NSString *)identifier source:(UIViewController *)source destination:(UIViewController *)destination performHandler:(void (^)(void))performHandler NS_AVAILABLE_IOS(6_0);
UITableView.h
+ (instancetype)rowActionWithStyle:(UITableViewRowActionStyle)style title:(NSString *)title handler:(void (^)(UITableViewRowAction *action, NSIndexPath *indexPath))handler;
UIView.h
+ (void)performWithoutAnimation:(void (^)(void))actionsWithoutAnimation NS_AVAILABLE_IOS(7_0);
+ (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(4_0);
+ (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(4_0); // delay = 0.0, options = 0
+ (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations NS_AVAILABLE_IOS(4_0); // delay = 0.0, options = 0, completion = NULL
+ (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay usingSpringWithDamping:(CGFloat)dampingRatio initialSpringVelocity:(CGFloat)velocity options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(7_0);
+ (void)transitionWithView:(UIView *)view duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(4_0);
+ (void)transitionFromView:(UIView *)fromView toView:(UIView *)toView duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(4_0); // toView added to fromView.superview, fromView removed from its superview
+ (void)performSystemAnimation:(UISystemAnimation)animation onViews:(NSArray *)views options:(UIViewAnimationOptions)options animations:(void (^)(void))parallelAnimations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(7_0);
+ (void)animateKeyframesWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewKeyframeAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(7_0);
+ (void)addKeyframeWithRelativeStartTime:(double)frameStartTime relativeDuration:(double)frameDuration animations:(void (^)(void))animations NS_AVAILABLE_IOS(7_0); // start time and duration are values between 0.0 and 1.0 specifying time and duration relative to the overall time of the keyframe animation
UIViewController.h
void (^_afterAppearance)(void);
- (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^)(void))completion NS_AVAILABLE_IOS(5_0);
- (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^)(void))completion NS_AVAILABLE_IOS(5_0);
- (void)transitionFromViewController:(UIViewController *)fromViewController toViewController:(UIViewController *)toViewController duration:(NSTimeInterval)duration options:(UIViewAnimationOptions)options animations:(void (^)(void))animations completion:(void (^)(BOOL finished))completion NS_AVAILABLE_IOS(5_0);
UIViewControllerTransitionCoordinator.h
- (BOOL)animateAlongsideTransition:(void (^)(id <UIViewControllerTransitionCoordinatorContext>context))animation
completion:(void (^)(id <UIViewControllerTransitionCoordinatorContext>context))completion;
animation:(void (^)(id <UIViewControllerTransitionCoordinatorContext>context))animation
completion:(void (^)(id <UIViewControllerTransitionCoordinatorContext>context))completion;
- (void)notifyWhenInteractionEndsUsingBlock: (void (^)(id <UIViewControllerTransitionCoordinatorContext>context))handler;
iOS SDK\Frameworks\VideoToolbox.framework\Headers
VTFrameSilo.h
OSStatus (^handler)( CMSampleBufferRef sampleBuffer ) ) __OSX_AVAILABLE_STARTING(__MAC_10_10,__IPHONE_8_0); // return nonzero to abort iteration
iOS SDK\Frameworks\WebKit.framework\Headers
WKNavigationDelegate.h
- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler;
- (void)webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler;
- (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))completionHandler;
WKUIDelegate.h
- (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)())completionHandler;
- (void)webView:(WKWebView *)webView runJavaScriptConfirmPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(BOOL result))completionHandler;
- (void)webView:(WKWebView *)webView runJavaScriptTextInputPanelWithPrompt:(NSString *)prompt defaultText:(NSString *)defaultText initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(NSString *result))completionHandler;
WKWebView.h
- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^)(id, NSError *))completionHandler;