Edytuj

Udostępnij za pośrednictwem


NSObject.ChangeNotificationIsPriorKey Property

Definition

Notification constant for ChangeNotificati

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

Property Value

NSString constant, should be used as a token to NSNotificationCenter.

Attributes

Remarks

This constant can be used with the NSNotificationCenter to register a listener for this notification.

// 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);
}

Applies to