UIView.VoiceOverStatusDidChangeNotification プロパティ

定義

VoiceOverStatusDidChange の通知定数

[Foundation.Advice("Use UIView.Notifications.ObserveVoiceOverStatusDidChange helper method instead.")]
[Foundation.Field("UIAccessibilityVoiceOverStatusDidChangeNotification", "UIKit")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSString VoiceOverStatusDidChangeNotification { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.VoiceOverStatusDidChangeNotification : Foundation.NSString

プロパティ値

NSString 定数は、NSNotificationCenter のトークンとして使用する必要があります。

属性

注釈

この定数は、 NSNotificationCenter と共に使用してこの通知のリスナーを登録できます。また、開発者は厳密に型指定された通知 ObserveVoiceOverStatusDidChange を代わりに使用することもできます。 これらの値は、実際の文字列コンテンツに対して純粋に使用されるのではなく、一部のネイティブ ライブラリでトークンとして使用できるため、これは文字列ではなく NSString です。 コールバックの 'notification' パラメーターには、通知の種類に固有の追加情報が含まれています。

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


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

void Setup ()
{
    NSNotificationCenter.DefaultCenter.AddObserver (UIView.VoiceOverStatusDidChangeNotification, Callback);
}

適用対象