NSObject.ChangeNotificationIsPriorKey 属性

定义

ChangeNotificati 的通知常量

[Foundation.Field("NSKeyValueChangeNotificationIsPriorKey", "Foundation")]
public static Foundation.NSString ChangeNotificationIsPriorKey { get; }
member this.ChangeNotificationIsPriorKey : Foundation.NSString

属性值

NSString 常量 应用作 NSNotificationCenter 的标记。

属性

注解

此常量可用于注册 NSNotificationCenter 此通知的侦听器。

// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (NSObject.ChangeNotificationIsPriorKey, (notification) => Console.WriteLine ("Received the notification NSObject", notification);

// Method style
void Callback (NSNotification notification)
{
    Console.WriteLine ("Received a notification NSObject", notification);
}
void Setup ()
{
    NSNotificationCenter.DefaultCenter.AddObserver (NSObject.ChangeNotificationIsPriorKey, Callback);
}

适用于