UIImage.SpeakSelectionStatusDidChangeNotification Свойство

Определение

Константа уведомлений для SpeakSelectionStatusDidChange

[Foundation.Advice("Use UIImage.Notifications.ObserveSpeakSelectionStatusDidChange helper method instead.")]
[Foundation.Field("UIAccessibilitySpeakSelectionStatusDidChangeNotification", "UIKit")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSString SpeakSelectionStatusDidChangeNotification { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.SpeakSelectionStatusDidChangeNotification : Foundation.NSString

Значение свойства

Константа NSString должна использоваться в качестве маркера для NSNotificationCenter.

Атрибуты

Комментарии

Эту константу можно использовать с для NSNotificationCenter регистрации прослушивателя для этого уведомления. Это NSString вместо строки, так как эти значения могут использоваться в качестве маркеров в некоторых собственных библиотеках, а не только для их фактического содержимого строки. Параметр notification для обратного вызова содержит дополнительные сведения, относящиеся к типу уведомления.

// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
        UIImage.SpeakSelectionStatusDidChangeNotification, (notification) => {Console.WriteLine ("Received the notification UIImage", notification); }


// Method style
void Callback (NSNotification notification)
{
    Console.WriteLine ("Received a notification UIImage", notification);
}

void Setup ()
{
    NSNotificationCenter.DefaultCenter.AddObserver (UIImage.SpeakSelectionStatusDidChangeNotification, Callback);
}

Это можно использовать из фонового потока.

Применяется к