UIView.ReduceTransparencyStatusDidChangeNotification Propiedad

Definición

Constante de notificación para ReduceTransparencyStatusDidChange

[Foundation.Advice("Use UIView.Notifications.ObserveReduceTransparencyStatusDidChange helper method instead.")]
[Foundation.Field("UIAccessibilityReduceTransparencyStatusDidChangeNotification", "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 ReduceTransparencyStatusDidChangeNotification { [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.ReduceTransparencyStatusDidChangeNotification : Foundation.NSString

Valor de propiedad

La constante NSString se debe usar como token para NSNotificationCenter.

Atributos

Comentarios

Esta constante se puede usar con para NSNotificationCenter registrar un agente de escucha para esta notificación. Se trata de un NSString en lugar de una cadena, ya que estos valores se pueden usar como tokens en algunas bibliotecas nativas en lugar de usarse exclusivamente para su contenido de cadena real. El parámetro "notification" de la devolución de llamada contiene información adicional específica del tipo de notificación.

// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
        UIView.ReduceTransparencyStatusDidChangeNotification, (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.ReduceTransparencyStatusDidChangeNotification, Callback);
}

Se aplica a