UIImage.Notifications.ObserveAssistiveTechnologyKey Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
ObserveAssistiveTechnologyKey(EventHandler<NSNotificationEventArgs>) |
Notificación fuertemente tipada para la constante P:UIKit.UIImage.AssistiveTechnologyKeyNotification . |
ObserveAssistiveTechnologyKey(NSObject, EventHandler<NSNotificationEventArgs>) |
Notificación fuertemente tipada para la constante P:UIKit.UIImage.AssistiveTechnologyKeyNotification . |
ObserveAssistiveTechnologyKey(EventHandler<NSNotificationEventArgs>)
Notificación fuertemente tipada para la constante P:UIKit.UIImage.AssistiveTechnologyKeyNotification .
public static Foundation.NSObject ObserveAssistiveTechnologyKey (EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveAssistiveTechnologyKey : EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject
Parámetros
- handler
- EventHandler<NSNotificationEventArgs>
Método que se invoca cuando se publica la notificación.
Devoluciones
Objeto token que se puede usar para dejar de recibir notificaciones mediante su eliminación o su paso a RemoveObservers(IEnumerable<NSObject>)
Comentarios
Este método se puede usar para suscribirse a las notificaciones P:UIKit.UIImage.AssistiveTechnologyKeyNotification .
// Listen to all notifications posted for any object
var token = UIImage.Notifications.ObserveAssistiveTechnologyKey ((notification) => {
Console.WriteLine ("Observed AssistiveTechnologyKeyNotification!");
};
// Listen to all notifications posted for a single object
var token = UIImage.Notifications.ObserveAssistiveTechnologyKey (objectToObserve, (notification) => {
Console.WriteLine ($"Observed AssistiveTechnologyKeyNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();
Se aplica a
ObserveAssistiveTechnologyKey(NSObject, EventHandler<NSNotificationEventArgs>)
Notificación fuertemente tipada para la constante P:UIKit.UIImage.AssistiveTechnologyKeyNotification .
public static Foundation.NSObject ObserveAssistiveTechnologyKey (Foundation.NSObject objectToObserve, EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveAssistiveTechnologyKey : Foundation.NSObject * EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject
Parámetros
- objectToObserve
- NSObject
Objeto que se va a observar.
- handler
- EventHandler<NSNotificationEventArgs>
Método que se invoca cuando se publica la notificación.
Devoluciones
Objeto token que se puede usar para dejar de recibir notificaciones mediante su eliminación o su paso a RemoveObservers(IEnumerable<NSObject>)
Comentarios
Este método se puede usar para suscribirse a las notificaciones P:UIKit.UIImage.AssistiveTechnologyKeyNotification .
// Listen to all notifications posted for any object
var token = UIImage.Notifications.ObserveAssistiveTechnologyKey ((notification) => {
Console.WriteLine ("Observed AssistiveTechnologyKeyNotification!");
};
// Listen to all notifications posted for a single object
var token = UIImage.Notifications.ObserveAssistiveTechnologyKey (objectToObserve, (notification) => {
Console.WriteLine ($"Observed AssistiveTechnologyKeyNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();