Share via


AVRouteDetector.Notifications.ObserveMultipleRoutesDetectedDidChange Metodo

Definizione

Overload

ObserveMultipleRoutesDetectedDidChange(EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la costante .

ObserveMultipleRoutesDetectedDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la costante .

ObserveMultipleRoutesDetectedDidChange(EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la costante .

public static Foundation.NSObject ObserveMultipleRoutesDetectedDidChange (EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveMultipleRoutesDetectedDidChange : EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject

Parametri

handler
EventHandler<NSNotificationEventArgs>

Gestore che risponde alla notifica quando si verifica.

Restituisce

Oggetto token che può essere usato per arrestare la ricezione delle notifiche eliminandolo o passandolo a RemoveObservers(IEnumerable<NSObject>)

Commenti

Questo metodo può essere usato per sottoscrivere .

// 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 ();

Si applica a

ObserveMultipleRoutesDetectedDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la costante .

public static Foundation.NSObject ObserveMultipleRoutesDetectedDidChange (Foundation.NSObject objectToObserve, EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveMultipleRoutesDetectedDidChange : Foundation.NSObject * EventHandler<Foundation.NSNotificationEventArgs> -> Foundation.NSObject

Parametri

objectToObserve
NSObject

Oggetto specifico da osservare.

handler
EventHandler<NSNotificationEventArgs>

Gestore che risponde alla notifica quando si verifica.

Restituisce

Oggetto token che può essere usato per arrestare la ricezione delle notifiche eliminandolo o passandolo a RemoveObservers(IEnumerable<NSObject>)

Commenti

Questo metodo può essere usato per sottoscrivere .

// 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 ();

Si applica a