1. 程式人生 > >iOS系統NSNotificationCenter中的常用通知名稱

iOS系統NSNotificationCenter中的常用通知名稱

//音訊  
AVF_EXPORT NSString *const AVAudioSessionInterruptionNotification   //音訊中斷出現  
AVF_EXPORT NSString *const AVAudioSessionRouteChangeNotification   //系統的音訊線路發生改變  
AVF_EXPORT NSString *const AVAudioSessionMediaServicesWereLostNotification                  //媒體服務終止  
AVF_EXPORT NSString *const AVAudioSessionMediaServicesWereResetNotification                 //媒體服務重新啟動  
  
//視訊  
AVF_EXPORT NSString *const AVPlayerItemTimeJumpedNotification                               // 播放時間跳躍  
AVF_EXPORT NSString *const AVPlayerItemDidPlayToEndTimeNotification                         // 播放結束  
AVF_EXPORT NSString *const AVPlayerItemFailedToPlayToEndTimeNotification                    // 沒能播放到最後  
AVF_EXPORT NSString *const AVPlayerItemPlaybackStalledNotification                          // 播放拋錨  
AVF_EXPORT NSString *const AVPlayerItemNewAccessLogEntryNotification                        // 新增新的訪問日誌條目  
AVF_EXPORT NSString *const AVPlayerItemNewErrorLogEntryNotification                         // 新增新的錯誤日誌條目  
   
MP_EXTERN NSString *const MPMediaLibraryDidChangeNotification;                              //媒體庫發生改變  
MP_EXTERN NSString *const MPMediaPlaybackIsPreparedToPlayDidChangeNotification           //後臺準備播放發生改變  
MP_EXTERN NSString *const MPMoviePlayerScalingModeDidChangeNotification;           //視訊縮放填充模式發生改變  
MP_EXTERN NSString *const MPMoviePlayerPlaybackDidFinishNotification;              //媒體播放完成或使用者手動退出  
MP_EXTERN NSString *const MPMoviePlayerPlaybackStateDidChangeNotification                   //播放狀態改變  
MP_EXTERN NSString *const MPMoviePlayerLoadStateDidChangeNotification                       //媒體網路載入狀態改變  
MP_EXTERN NSString *const MPMoviePlayerNowPlayingMovieDidChangeNotification //當前播放的媒體內容發生改變  
MP_EXTERN NSString *const MPMoviePlayerWillEnterFullscreenNotification                      //將進入全屏  
MP_EXTERN NSString *const MPMoviePlayerDidEnterFullscreenNotification                       //進入全屏後  
MP_EXTERN NSString *const MPMoviePlayerWillExitFullscreenNotification                       //將要退出全屏  
MP_EXTERN NSString *const MPMoviePlayerDidExitFullscreenNotification                        //退出全屏後  
MP_EXTERN NSString *const MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification         //當媒體開始通過AirPlay播放或者結束AirPlay  
MP_EXTERN NSString *const MPMoviePlayerReadyForDisplayDidChangeNotification                 //視訊顯示狀態改變  
MP_EXTERN NSString *const MPMovieMediaTypesAvailableNotification                            //確定了媒體可用型別後  
MP_EXTERN NSString *const MPMovieSourceTypeAvailableNotification                            // 確定了媒體來源後  
MP_EXTERN NSString *const MPMovieDurationAvailableNotification                              //確定了媒體播放時長後  
MP_EXTERN NSString *const MPMovieNaturalSizeAvailableNotification                           //確定了媒體的實際尺寸後  
MP_EXTERN NSString *const MPMoviePlayerThumbnailImageRequestDidFinishNotification         //縮圖請求完成之後  
MP_EXTERN NSString *const MPMoviePlayerTimedMetadataUpdatedNotification                     //同步元資料發生更新  
MP_EXTERN NSString *const MPMoviePlayerContentPreloadDidFinishNotification                  //媒體內容預載入完成  
MP_EXTERN NSString *const MPMusicPlayerControllerPlaybackStateDidChangeNotification;        //播放狀態改變  
MP_EXTERN NSString *const MPMusicPlayerControllerNowPlayingItemDidChangeNotification;       //播放內容改變  
MP_EXTERN NSString *const MPMusicPlayerControllerVolumeDidChangeNotification;               //音量發生改變  
  
  
//拍照/錄影  
AVF_EXPORT NSString *const AVCaptureDeviceWasConnectedNotification                          //輸入裝置已連線  
AVF_EXPORT NSString *const AVCaptureDeviceWasDisconnectedNotification                       //輸入裝置失去連線  
AVF_EXPORT NSString *const AVCaptureDeviceSubjectAreaDidChangeNotification                  //捕獲區域發生改變  
AVF_EXPORT NSString *const AVCaptureInputPortFormatDescriptionDidChangeNotification   //輸入裝置埠描述改變  
AVF_EXPORT NSString *const AVCaptureSessionRuntimeErrorNotification                         //媒體會話執行錯誤  
AVF_EXPORT NSString *const AVCaptureSessionDidStartRunningNotification                      //媒體會話開始執行  
AVF_EXPORT NSString *const AVCaptureSessionDidStopRunningNotification                       //媒體會話停止執行  
AVF_EXPORT NSString *const AVCaptureSessionWasInterruptedNotification                       //媒體會話中斷  
AVF_EXPORT NSString *const AVCaptureSessionInterruptionEndedNotification                    //媒體會話中斷停止  
  
//常用檢視  
UIKIT_EXTERN NSString *const UITableViewSelectionDidChangeNotification;                     //TableView選中發生改變  
  
UIKIT_EXTERN NSString *const UITextFieldTextDidBeginEditingNotification;                    //TextField開始編輯  
UIKIT_EXTERN NSString *const UITextFieldTextDidEndEditingNotification;                      //TextField發生改變  
UIKIT_EXTERN NSString *const UITextFieldTextDidChangeNotification;                          //TextField結束編輯  
  
UIKIT_EXTERN NSString * const UITextViewTextDidBeginEditingNotification;                    //TextView開始編輯  
UIKIT_EXTERN NSString * const UITextViewTextDidChangeNotification;                          //TextView發生改變  
UIKIT_EXTERN NSString * const UITextViewTextDidEndEditingNotification;                      //TextView結束編輯  
  
UIKIT_EXTERN NSString *const UIWindowDidBecomeVisibleNotification;  //window啟用並展示在介面的時候觸發  
UIKIT_EXTERN NSString *const UIWindowDidBecomeHiddenNotification;                           //當window隱藏的時候觸發  
UIKIT_EXTERN NSString *const UIWindowDidBecomeKeyNotification;      //當window被設定為keyWindow時觸發  
UIKIT_EXTERN NSString *const UIWindowDidResignKeyNotification;                   //當window的key位置被取代時觸發  
UIKIT_EXTERN NSString *const UIKeyboardWillShowNotification;                                //鍵盤將彈出  
UIKIT_EXTERN NSString *const UIKeyboardDidShowNotification;                                 //鍵盤彈出  
UIKIT_EXTERN NSString *const UIKeyboardWillHideNotification;                                //鍵盤將要隱藏  
UIKIT_EXTERN NSString *const UIKeyboardDidHideNotification;                                 //鍵盤隱藏  
UIKIT_EXTERN NSString *const UIKeyboardWillChangeFrameNotification                       //鍵盤frame將發生改變  
UIKIT_EXTERN NSString *const UIKeyboardDidChangeFrameNotification                        //鍵盤frame發生改變後  
  
  
//日期,時間  
FOUNDATION_EXPORT NSString * const NSCalendarDayChangedNotification                         //日期發生改變  
FOUNDATION_EXPORT NSString * const NSSystemClockDidChangeNotification                       //系統時鐘發生改變  
FOUNDATION_EXPORT NSString * const NSSystemTimeZoneDidChangeNotification                    //系統時區發生改變  
  
  
//執行緒  
FOUNDATION_EXPORT NSString * const NSWillBecomeMultiThreadedNotification;                   //將變成多執行緒  
FOUNDATION_EXPORT NSString * const NSDidBecomeSingleThreadedNotification;                   //變成了單執行緒  
FOUNDATION_EXPORT NSString * const NSThreadWillExitNotification;                            //執行緒退出  
  
  
//程式  
UIKIT_EXTERN NSString *const UIApplicationDidEnterBackgroundNotification                    //程式進入後臺  
UIKIT_EXTERN NSString *const UIApplicationWillEnterForegroundNotification                   //程式將進入前臺  
UIKIT_EXTERN NSString *const UIApplicationDidFinishLaunchingNotification;                   //程式載入完成  
UIKIT_EXTERN NSString *const UIApplicationDidBecomeActiveNotification;                      //程式變成啟用狀態  
UIKIT_EXTERN NSString *const UIApplicationWillResignActiveNotification;                     //程式將失去啟用狀態  
UIKIT_EXTERN NSString *const UIApplicationDidReceiveMemoryWarningNotification;              //接收到記憶體警告  
UIKIT_EXTERN NSString *const UIApplicationWillTerminateNotification;                        //程式將終止  
UIKIT_EXTERN NSString *const UIApplicationSignificantTimeChangeNotification;         //新的一天開始或時區發生變化  
UIKIT_EXTERN NSString *const UIApplicationWillChangeStatusBarOrientationNotification;       //將改變狀態列方向  
UIKIT_EXTERN NSString *const UIApplicationDidChangeStatusBarOrientationNotification;        //狀態列方向以改變  
UIKIT_EXTERN NSString *const UIApplicationWillChangeStatusBarFrameNotification;             //將改變狀態列frame  
UIKIT_EXTERN NSString *const UIApplicationDidChangeStatusBarFrameNotification;              //狀態列frame發生改變  
UIKIT_EXTERN NSString *const UIApplicationBackgroundRefreshStatusDidChangeNotification //後臺重新整理狀態改變  
UIKIT_EXTERN NSString *const UIApplicationUserDidTakeScreenshotNotification                 //截圖時觸發通知  
  
//硬體裝置  
UIKIT_EXTERN NSString *const UIDeviceOrientationDidChangeNotification;                      //裝置方向改變  
UIKIT_EXTERN NSString *const UIDeviceBatteryStateDidChangeNotification                      //電池狀態改變  
UIKIT_EXTERN NSString *const UIDeviceBatteryLevelDidChangeNotification                      //電池電量改變  
UIKIT_EXTERN NSString *const UIDeviceProximityStateDidChangeNotification                    //距離感應器狀態發生改變  
  
//其它  
UIKIT_EXTERN NSString *const UILocalNotificationDefaultSoundName                            //本地通知聲音  
  
UIKIT_EXTERN NSString *const UIPasteboardChangedNotification;                               //貼上板發生改變  
UIKIT_EXTERN NSString *const UIPasteboardRemovedNotification;                               //貼上板內容移除  
   
FOUNDATION_EXPORT NSString * const NSUserDefaultsDidChangeNotification;               //NSUserDefaults發生改變  
FOUNDATION_EXPORT NSString * const NSBundleDidLoadNotification;                             //bundle載入完成