Share via


UIImage.ReduceTransparencyStatusDidChangeNotification Propiedad

Definición

Constante de notificación para ReduceTransparencyStatusDidChange

[Foundation.Advice("Use UIImage.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 debe usarse 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 (
        UIImage.ReduceTransparencyStatusDidChangeNotification, (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.ReduceTransparencyStatusDidChangeNotification, Callback);
}

Esto se puede usar desde un subproceso en segundo plano.

Se aplica a