UIImage.AssistiveTouchStatusDidChangeNotification Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Константа уведомлений для AssistiveTouchStatusDidChange
[Foundation.Advice("Use UIImage.Notifications.ObserveAssistiveTouchStatusDidChange helper method instead.")]
[Foundation.Field("UIAccessibilityAssistiveTouchStatusDidChangeNotification", "UIKit")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSString AssistiveTouchStatusDidChangeNotification { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.AssistiveTouchStatusDidChangeNotification : Foundation.NSString
Значение свойства
Константа NSString должна использоваться в качестве токена для NSNotificationCenter.
- Атрибуты
Комментарии
Эту константу можно использовать с для NSNotificationCenter регистрации прослушивателя для этого уведомления. Это NSString вместо строки, так как эти значения можно использовать в качестве маркеров в некоторых собственных библиотеках, а не только для их фактического содержимого строк. Параметр notification для обратного вызова содержит дополнительные сведения, относящиеся к типу уведомления.
// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
UIImage.AssistiveTouchStatusDidChangeNotification, (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.AssistiveTouchStatusDidChangeNotification, Callback);
}