Bagikan melalui


NSObject.ChangeNotificationIsPriorKey Properti

Definisi

Konstanta pemberitahuan untuk ChangeNotificati

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

Nilai Properti

Konstanta NSString, harus digunakan sebagai token untuk NSNotificationCenter.

Atribut

Keterangan

Konstanta ini dapat digunakan dengan NSNotificationCenter untuk mendaftarkan pendengar untuk pemberitahuan ini.

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

Berlaku untuk