NSObject.ChangeNotificationIsPriorKey Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Costante di notifica per ChangeNotificati
[Foundation.Field("NSKeyValueChangeNotificationIsPriorKey", "Foundation")]
public static Foundation.NSString ChangeNotificationIsPriorKey { get; }
member this.ChangeNotificationIsPriorKey : Foundation.NSString
Valore della proprietà
La costante NSString deve essere usata come token per NSNotificationCenter.
- Attributi
Commenti
Questa costante può essere usata con per NSNotificationCenter registrare un listener per questa notifica.
// 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);
}