Condividi tramite


UIView.Notifications.ObserveAnnouncementDidFinish Metodo

Definizione

Overload

ObserveAnnouncementDidFinish(EventHandler<UIAccessibilityAnnouncementFinishedEventArgs>)

Notifica fortemente tipizzata per la AnnouncementDidFinishNotification costante.

ObserveAnnouncementDidFinish(NSObject, EventHandler<UIAccessibilityAnnouncementFinishedEventArgs>)

Notifica fortemente tipizzata per la AnnouncementDidFinishNotification costante.

ObserveAnnouncementDidFinish(EventHandler<UIAccessibilityAnnouncementFinishedEventArgs>)

Notifica fortemente tipizzata per la AnnouncementDidFinishNotification costante.

public static Foundation.NSObject ObserveAnnouncementDidFinish (EventHandler<UIKit.UIAccessibilityAnnouncementFinishedEventArgs> handler);
static member ObserveAnnouncementDidFinish : EventHandler<UIKit.UIAccessibilityAnnouncementFinishedEventArgs> -> Foundation.NSObject

Parametri

handler
EventHandler<UIAccessibilityAnnouncementFinishedEventArgs>

Metodo da richiamare quando viene inviata la notifica.

Restituisce

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

Commenti

Questo metodo può essere usato per sottoscrivere AnnouncementDidFinishNotification le notifiche.

// Listen to all notifications posted for any object
var token = UIView.Notifications.ObserveAnnouncementDidFinish ((notification) => {
	Console.WriteLine ("Observed AnnouncementDidFinishNotification!");
};

// Listen to all notifications posted for a single object
var token = UIView.Notifications.ObserveAnnouncementDidFinish (objectToObserve, (notification) => {
	Console.WriteLine ($"Observed AnnouncementDidFinishNotification for {nameof (objectToObserve)}!");
};

// Stop listening for notifications
token.Dispose ();

Si applica a

ObserveAnnouncementDidFinish(NSObject, EventHandler<UIAccessibilityAnnouncementFinishedEventArgs>)

Notifica fortemente tipizzata per la AnnouncementDidFinishNotification costante.

public static Foundation.NSObject ObserveAnnouncementDidFinish (Foundation.NSObject objectToObserve, EventHandler<UIKit.UIAccessibilityAnnouncementFinishedEventArgs> handler);
static member ObserveAnnouncementDidFinish : Foundation.NSObject * EventHandler<UIKit.UIAccessibilityAnnouncementFinishedEventArgs> -> Foundation.NSObject

Parametri

objectToObserve
NSObject

Oggetto da osservare.

handler
EventHandler<UIAccessibilityAnnouncementFinishedEventArgs>

Metodo da richiamare quando viene inviata la notifica.

Restituisce

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

Commenti

Questo metodo può essere usato per sottoscrivere AnnouncementDidFinishNotification le notifiche.

// Listen to all notifications posted for any object
var token = UIView.Notifications.ObserveAnnouncementDidFinish ((notification) => {
	Console.WriteLine ("Observed AnnouncementDidFinishNotification!");
};

// Listen to all notifications posted for a single object
var token = UIView.Notifications.ObserveAnnouncementDidFinish (objectToObserve, (notification) => {
	Console.WriteLine ($"Observed AnnouncementDidFinishNotification for {nameof (objectToObserve)}!");
};

// Stop listening for notifications
token.Dispose ();

Si applica a