Share via


CFNotificationCenter 클래스

정의

애플리케이션에 대한 알림 허브입니다.

public class CFNotificationCenter : IDisposable, ObjCRuntime.INativeObject
type CFNotificationCenter = class
    interface INativeObject
    interface IDisposable
상속
CFNotificationCenter
구현

설명

CFNotificationCenter는 애플리케이션에서 브로드캐스트 메시지를 수신 대기하고 브로드캐스트 메시지를 게시하는 데 사용되는 허브입니다. 게시된 메시지는 동기식입니다.

알림 게시는 동기 프로세스입니다. 즉, 알림 센터에서 메시지 게시 중 하나를 호출하면 모든 알림 처리기 실행이 완료될 때까지 실행이 차단됩니다.

또한 는 NSNotificationCenter 알림 허브를 제공하지만 서로 분리됩니다. CFNotificationCenter는 애플리케이션 로컬 허브, Darwin 허브(OS-글로벌 알림용) 및 분산 허브(Mac에서만 사용 가능)의 세 가지 허브를 제공합니다.

속성

Darwin

운영 체제 전역 알림 센터를 반환합니다.

Distributed

애플리케이션에 대한 알림 허브입니다.

Handle

관리되지 않는 개체 표현에 대한 핸들(포인터)입니다.

Local

애플리케이션 로컬 알림 센터를 반환합니다.

메서드

AddObserver(String, INativeObject, Action<String,NSDictionary>, CFNotificationSuspensionBehavior)

알림 센터에 관찰자를 추가합니다.

Dispose()

CFNotificationCenter 개체에서 사용하는 리소스를 해제합니다.

Dispose(Boolean)

CFNotificationCenter 개체에서 사용하는 리소스를 해제합니다.

Finalize()

CFNotificationCenter 개체에 대한 종료자

PostNotification(String, INativeObject, NSDictionary, Boolean, Boolean)

애플리케이션에 대한 알림 허브입니다.

RemoveEveryObserver()

애플리케이션에 대한 알림 허브입니다.

RemoveObserver(CFNotificationObserverToken)

지정된 관찰자를 제거합니다.

적용 대상