iOS开发用到的系统本地通知名整理

开发时经常会用到一些不知道的系统通知,或者有需求,不知道系统有没有的通知,这里给自己做一个笔记整理、记录,希望也能帮到大家



Accounts.framework

头文件:./Headers/ACAccountStore.h

ACAccountStoreDidChangeNotification NS_AVAILABLE(NA, 5_0);


AssetsLibrary.framework

头文件:./Headers/ALAssetsLibrary.h

ALAssetsLibraryChangedNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0);


AVFoundation.framework

头文件:./Headers/AVAudioSession.h

AVAudioSessionInterruptionNotification NS_AVAILABLE_IOS(6_0);

AVAudioSessionRouteChangeNotification NS_AVAILABLE_IOS(6_0);

AVAudioSessionMediaServicesWereLostNotification NS_AVAILABLE_IOS(7_0);

AVAudioSessionMediaServicesWereResetNotification NS_AVAILABLE_IOS(6_0);

AVCaptureDeviceWasConnectedNotification NS_AVAILABLE(10_7, 4_0);

头文件:./Headers/AVCaptureDevice.h

AVCaptureDeviceWasDisconnectedNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureDeviceSubjectAreaDidChangeNotification NS_AVAILABLE_IOS(5_0);

头文件:./Headers/AVCaptureInput.h

AVCaptureInputPortFormatDescriptionDidChangeNotification NS_AVAILABLE(10_7, 4_0);

头文件:./Headers/AVCaptureSession.h

AVCaptureSessionRuntimeErrorNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureSessionDidStartRunningNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureSessionDidStopRunningNotification NS_AVAILABLE(10_7, 4_0);

AVCaptureSessionWasInterruptedNotification NS_AVAILABLE_IOS(4_0);

AVCaptureSessionInterruptionEndedNotification NS_AVAILABLE_IOS(4_0);

头文件:./Headers/AVPlayerItem.h

AVPlayerItemTimeJumpedNotification NS_AVAILABLE(10_7, 5_0);

AVPlayerItemDidPlayToEndTimeNotification NS_AVAILABLE(10_7, 4_0);

AVPlayerItemFailedToPlayToEndTimeNotification NS_AVAILABLE(10_7, 4_3);

AVPlayerItemPlaybackStalledNotification NS_AVAILABLE(10_9, 6_0);

AVPlayerItemNewAccessLogEntryNotification NS_AVAILABLE(10_9, 6_0);

AVPlayerItemNewErrorLogEntryNotification NS_AVAILABLE(10_9, 6_0);


CoreBluetooth.framework

头文件:./Headers/CBCentralManagerConstants.h

CBConnectPeripheralOptionNotifyOnNotificationKey NS_AVAILABLE(NA, 6_0);


CoreData.framework

头文件:./Headers/NSManagedObjectContext.h

NSManagedObjectContextWillSaveNotification NS_AVAILABLE(10_5, 3_0);

NSManagedObjectContextDidSaveNotification NS_AVAILABLE(10_4, 3_0);

NSManagedObjectContextObjectsDidChangeNotification NS_AVAILABLE(10_4, 3_0);

头文件:./Headers/NSPersistentStoreCoordinator.h

NSPersistentStoreCoordinatorStoresWillChangeNotification NS_AVAILABLE(10_9, 7_0);

NSPersistentStoreCoordinatorStoresDidChangeNotification NS_AVAILABLE(10_4, 3_0);

NSPersistentStoreCoordinatorWillRemoveStoreNotification NS_AVAILABLE(10_5, 3_0);

NSPersistentStoreDidImportUbiquitousContentChangesNotification NS_AVAILABLE(10_7, 5_0);

MIDINetworkNotificationContactsDidChange __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_2);


CoreMIDI.framework

头文件:./Headers/MIDINetworkSession.h

MIDINetworkNotificationSessionDidChange __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_2);


CoreTelephony.framework

头文件:./Headers/CTTelephonyNetworkInfo.h

CTRadioAccessTechnologyDidChangeNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_7_0);


EventKit.framework

头文件:./Headers/EKEventStore.h

EKEventStoreChangedNotification __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_4_0);


ExternalAccessory.framework

头文件:./Headers/EAAccessoryManager.h

EAAccessoryDidConnectNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);

EAAccessoryDidDisconnectNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);


Foundation.framework

头文件:./Headers/NSBundle.h

NSBundleDidLoadNotification;

头文件:./Headers/NSCalendar.h

NSCalendarDayChangedNotification NS_AVAILABLE(10_9, __NSCALENDAR_COND_IOS_7_0);

NSSystemClockDidChangeNotification NS_AVAILABLE(10_6, 4_0);

头文件:./Headers/NSFileHandle.h

NSFileHandleReadCompletionNotification;

NSFileHandleReadToEndOfFileCompletionNotification;

NSFileHandleConnectionAcceptedNotification;

NSFileHandleDataAvailableNotification;

NSFileHandleNotificationDataItem;

NSFileHandleNotificationFileHandleItem;

NSFileHandleNotificationMonitorModes NS_DEPRECATED(10_0, 10_7, 2_0, 5_0);

头文件:./Headers/NSFileManager.h

NSUbiquityIdentityDidChangeNotification NS_AVAILABLE(10_8, 6_0);

头文件:./Headers/NSHTTPCookieStorage.h

NSHTTPCookieManagerAcceptPolicyChangedNotification;

NSHTTPCookieManagerCookiesChangedNotification;

头文件:./Headers/NSKeyValueObserving.h

NSKeyValueChangeNotificationIsPriorKey NS_AVAILABLE(10_5, 2_0);

头文件:./Headers/NSLocale.h

NSCurrentLocaleDidChangeNotification NS_AVAILABLE(10_5, 2_0);

头文件:./Headers/NSMetadata.h

NSMetadataQueryDidStartGatheringNotification NS_AVAILABLE(10_4, 5_0);

NSMetadataQueryGatheringProgressNotification NS_AVAILABLE(10_4, 5_0);

NSMetadataQueryDidFinishGatheringNotification NS_AVAILABLE(10_4, 5_0);

NSMetadataQueryDidUpdateNotification NS_AVAILABLE(10_4, 5_0);

头文件:./Headers/NSPort.h

NSPortDidBecomeInvalidNotification;

头文件:./Headers/NSThread.h

NSWillBecomeMultiThreadedNotification;

NSDidBecomeSingleThreadedNotification;

NSThreadWillExitNotification;

头文件:./Headers/NSTimeZone.h

NSSystemTimeZoneDidChangeNotification NS_AVAILABLE(10_5, 2_0);

头文件:./Headers/NSUbiquitousKeyValueStore.h

NSUbiquitousKeyValueStoreDidChangeExternallyNotification NS_AVAILABLE(10_7, 5_0);

头文件:./Headers/NSUndoManager.h

NSUndoManagerCheckpointNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerWillUndoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerWillRedoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidUndoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidRedoChangeNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidOpenUndoGroupNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerWillCloseUndoGroupNotification NS_AVAILABLE(10_0, 3_0);

NSUndoManagerDidCloseUndoGroupNotification NS_AVAILABLE(10_7, 5_0);

头文件:./Headers/NSURLCredentialStorage.h

NSURLCredentialStorageChangedNotification;

头文件:./Headers/NSUserDefaults.h

NSUserDefaultsDidChangeNotification;


GameController.framework

头文件:./Headers/GCController.h

GCControllerDidConnectNotification;

GCControllerDidDisconnectNotification;


GameKit.framework

头文件:./Headers/GKLocalPlayer.h

GKPlayerAuthenticationDidChangeNotificationName __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_4_1);

头文件:./Headers/GKPlayer.h

GKPlayerDidChangeNotificationName;


MapKit.framework

头文件:./Headers/MKAnnotationView.h

MKAnnotationCalloutInfoDidChangeNotification;


MediaPlayer.framework

头文件:./Headers/MPMediaLibrary.h

MPMediaLibraryDidChangeNotification;

头文件:./Headers/MPMediaPlayback.h

MPMediaPlaybackIsPreparedToPlayDidChangeNotification NS_AVAILABLE_IOS(3_2);

头文件:./Headers/MPMoviePlayerController.h

MPMoviePlayerScalingModeDidChangeNotification;

MPMoviePlayerPlaybackDidFinishNotification;

MPMoviePlayerPlaybackStateDidChangeNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerLoadStateDidChangeNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerNowPlayingMovieDidChangeNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerWillEnterFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerDidEnterFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerWillExitFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerDidExitFullscreenNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification NS_AVAILABLE_IOS(5_0);

MPMoviePlayerReadyForDisplayDidChangeNotification NS_AVAILABLE_IOS(6_0);

MPMovieMediaTypesAvailableNotification NS_AVAILABLE_IOS(3_2);

MPMovieSourceTypeAvailableNotification NS_AVAILABLE_IOS(3_2); // Posted if the movieSourceType is MPMovieSourceTypeUnknown when preparing for playback.

MPMovieDurationAvailableNotification NS_AVAILABLE_IOS(3_2);

MPMovieNaturalSizeAvailableNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerThumbnailImageRequestDidFinishNotification NS_AVAILABLE_IOS(3_2);

MPMoviePlayerTimedMetadataUpdatedNotification NS_AVAILABLE_IOS(4_0);

MPMoviePlayerContentPreloadDidFinishNotification NS_DEPRECATED_IOS(2_0, 3_2);

MPMusicPlayerControllerPlaybackStateDidChangeNotification;

MPMusicPlayerControllerNowPlayingItemDidChangeNotification;

MPMusicPlayerControllerVolumeDidChangeNotification;

头文件:./Headers/MPVolumeView.h

MPVolumeViewWirelessRoutesAvailableDidChangeNotification NS_AVAILABLE_IOS(7_0);

MPVolumeViewWirelessRouteActiveDidChangeNotification NS_AVAILABLE_IOS(7_0);


MessageUI.framework

头文件:./Headers/MFMessageComposeViewController.h

MFMessageComposeViewControllerTextMessageAvailabilityDidChangeNotification __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_5_0);


NewsstandKit.framework

头文件:./Headers/NKIssue.h

NKIssueDownloadCompletedNotification;


PassKit.framework

头文件:./Headers/PKPassLibrary.h

PKPassLibraryDidChangeNotification NS_AVAILABLE_IOS(6_0);


UIKit.framework

头文件:./Headers/NSTextStorage.h

NSTextStorageWillProcessEditingNotification NS_AVAILABLE_IOS(7_0);

NSTextStorageDidProcessEditingNotification NS_AVAILABLE_IOS(7_0);

头文件:./Headers/UIAccessibility.h

UIAccessibilityMonoAudioStatusDidChangeNotification NS_AVAILABLE_IOS(5_0);

UIAccessibilityClosedCaptioningStatusDidChangeNotification NS_AVAILABLE_IOS(5_0);

UIAccessibilityInvertColorsStatusDidChangeNotification NS_AVAILABLE_IOS(6_0);

UIAccessibilityGuidedAccessStatusDidChangeNotification NS_AVAILABLE_IOS(6_0);

头文件:./Headers/UIAccessibilityConstants.h

UIAccessibilityAnnouncementDidFinishNotification NS_AVAILABLE_IOS(6_0);

头文件:./Headers/UIApplication.h

UIApplicationDidEnterBackgroundNotification NS_AVAILABLE_IOS(4_0);

UIApplicationWillEnterForegroundNotification NS_AVAILABLE_IOS(4_0);

UIApplicationDidFinishLaunchingNotification;

UIApplicationDidBecomeActiveNotification;

UIApplicationWillResignActiveNotification;

UIApplicationDidReceiveMemoryWarningNotification;

UIApplicationWillTerminateNotification;

UIApplicationSignificantTimeChangeNotification;

 UIApplicationWillChangeStatusBarOrientationNotification; // userInfo contains NSNumber with new orientation

UIApplicationDidChangeStatusBarOrientationNotification; // userInfo contains NSNumber with old orientation

UIApplicationWillChangeStatusBarFrameNotification; // userInfo contains NSValue with new frame

UIApplicationDidChangeStatusBarFrameNotification; // userInfo contains NSValue with old frame

UIApplicationBackgroundRefreshStatusDidChangeNotification NS_AVAILABLE_IOS(7_0);

UIApplicationLaunchOptionsRemoteNotificationKey NS_AVAILABLE_IOS(3_0); // userInfo contains NSDictionary with payload

UIApplicationLaunchOptionsLocalNotificationKey NS_AVAILABLE_IOS(4_0); // userInfo contains a UILocalNotification

UIContentSizeCategoryDidChangeNotification NS_AVAILABLE_IOS(7_0); // userInfo dictionary will contain new value for UIContentSizeCategoryNewValueKey

UIApplicationUserDidTakeScreenshotNotification NS_AVAILABLE_IOS(7_0);

头文件:./Headers/UIDevice.h

UIDeviceOrientationDidChangeNotification;

UIDeviceBatteryStateDidChangeNotification NS_AVAILABLE_IOS(3_0);

UIDeviceBatteryLevelDidChangeNotification NS_AVAILABLE_IOS(3_0);

UIDeviceProximityStateDidChangeNotification NS_AVAILABLE_IOS(3_0);

头文件:./Headers/UIDocument.h

UIDocumentStateChangedNotification NS_AVAILABLE_IOS(5_0);

头文件:./Headers/UILocalNotification.h

UILocalNotificationDefaultSoundName NS_AVAILABLE_IOS(4_0);

头文件:./Headers/UIMenuController.h

UIMenuControllerWillShowMenuNotification;

UIMenuControllerDidShowMenuNotification;

UIMenuControllerWillHideMenuNotification;

UIMenuControllerDidHideMenuNotification;

UIMenuControllerMenuFrameDidChangeNotification;

头文件:./Headers/UIPasteboard.h

UIPasteboardChangedNotification;

UIPasteboardRemovedNotification;

头文件:./Headers/UIScreen.h

UIScreenDidConnectNotification NS_AVAILABLE_IOS(3_2);

UIScreenDidDisconnectNotification NS_AVAILABLE_IOS(3_2);

UIScreenModeDidChangeNotification NS_AVAILABLE_IOS(3_2);

UIScreenBrightnessDidChangeNotification NS_AVAILABLE_IOS(5_0);

头文件:./Headers/UITableView.h

UITableViewSelectionDidChangeNotification;

头文件:./Headers/UITextField.h

UITextFieldTextDidBeginEditingNotification;

UITextFieldTextDidEndEditingNotification;

UITextFieldTextDidChangeNotification;

头文件:./Headers/UITextInput.h

UITextInputCurrentInputModeDidChangeNotification NS_AVAILABLE_IOS(4_2);

头文件:./Headers/UITextView.h

UITextViewTextDidBeginEditingNotification;

UITextViewTextDidChangeNotification;

UITextViewTextDidEndEditingNotification;

头文件:./Headers/UIWindow.h

UIWindowDidBecomeVisibleNotification;

UIWindowDidBecomeHiddenNotification;

UIWindowDidBecomeKeyNotification;

UIWindowDidResignKeyNotification;

UIKeyboardWillShowNotification;

UIKeyboardDidShowNotification;

UIKeyboardWillHideNotification;

UIKeyboardDidHideNotification;

UIKeyboardWillChangeFrameNotification NS_AVAILABLE_IOS(5_0);

你可能感兴趣的:(iOS开发用到的系统本地通知名整理)