AVRouteDetector.Notifications.ObserveMultipleRoutesDetectedDidChange 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
ObserveMultipleRoutesDetectedDidChange(EventHandler<NSNotificationEventArgs>) |
Notificación fuertemente tipada para la constante P:AVFoundation.AVRouteDetector.MultipleRoutesDetectedDidChangeNotification . |
ObserveMultipleRoutesDetectedDidChange(NSObject, EventHandler<NSNotificationEventArgs>) |
Notificación fuertemente tipada para la constante P:AVFoundation.AVRouteDetector.MultipleRoutesDetectedDidChangeNotification . |
ObserveMultipleRoutesDetectedDidChange(EventHandler<NSNotificationEventArgs>)
Notificación fuertemente tipada para la constante P:AVFoundation.AVRouteDetector.MultipleRoutesDetectedDidChangeNotification .
public static Foundation.NSObject ObserveMultipleRoutesDetectedDidChange (EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveMultipleRoutesDetectedDidChange : EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject
Parámetros
- handler
- EventHandler<NSNotificationEventArgs>
Controlador que responde a la notificación cuando se produce.
Devoluciones
Objeto de token que se puede usar para dejar de recibir notificaciones al eliminarlo o pasarlo a RemoveObservers(IEnumerable<NSObject>)
Comentarios
Este método se puede usar para suscribirse a las notificaciones P:AVFoundation.AVRouteDetector.MultipleRoutesDetectedDidChangeNotification .
// Listen to all notifications posted for any object
var token = AVRouteDetector.Notifications.ObserveMultipleRoutesDetectedDidChange ((notification) => {
Console.WriteLine ("Observed MultipleRoutesDetectedDidChangeNotification!");
};
// Listen to all notifications posted for a single object
var token = AVRouteDetector.Notifications.ObserveMultipleRoutesDetectedDidChange (objectToObserve, (notification) => {
Console.WriteLine ($"Observed MultipleRoutesDetectedDidChangeNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();
Se aplica a
ObserveMultipleRoutesDetectedDidChange(NSObject, EventHandler<NSNotificationEventArgs>)
Notificación fuertemente tipada para la constante P:AVFoundation.AVRouteDetector.MultipleRoutesDetectedDidChangeNotification .
public static Foundation.NSObject ObserveMultipleRoutesDetectedDidChange (Foundation.NSObject objectToObserve, EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveMultipleRoutesDetectedDidChange : Foundation.NSObject * EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject
Parámetros
- objectToObserve
- NSObject
Objeto específico que se va a observar.
- handler
- EventHandler<NSNotificationEventArgs>
Controlador que responde a la notificación cuando se produce.
Devoluciones
Objeto de token que se puede usar para dejar de recibir notificaciones al eliminarlo o pasarlo a RemoveObservers(IEnumerable<NSObject>)
Comentarios
Este método se puede usar para suscribirse a las notificaciones P:AVFoundation.AVRouteDetector.MultipleRoutesDetectedDidChangeNotification .
// Listen to all notifications posted for any object
var token = AVRouteDetector.Notifications.ObserveMultipleRoutesDetectedDidChange ((notification) => {
Console.WriteLine ("Observed MultipleRoutesDetectedDidChangeNotification!");
};
// Listen to all notifications posted for a single object
var token = AVRouteDetector.Notifications.ObserveMultipleRoutesDetectedDidChange (objectToObserve, (notification) => {
Console.WriteLine ($"Observed MultipleRoutesDetectedDidChangeNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();