AVAssetTrack.Notifications.ObserveTimeRangeDidChange Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
ObserveTimeRangeDidChange(EventHandler<NSNotificationEventArgs>) |
Notifica fortemente tipizzata per la TimeRangeDidChangeNotification costante. |
ObserveTimeRangeDidChange(NSObject, EventHandler<NSNotificationEventArgs>) |
Notifica fortemente tipizzata per la TimeRangeDidChangeNotification costante. |
ObserveTimeRangeDidChange(EventHandler<NSNotificationEventArgs>)
Notifica fortemente tipizzata per la TimeRangeDidChangeNotification costante.
public static Foundation.NSObject ObserveTimeRangeDidChange(EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveTimeRangeDidChange : 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 interrompere la ricezione delle notifiche eliminandolo o passandolo a RemoveObservers(IEnumerable<NSObject>)
Commenti
Questo metodo può essere usato per sottoscrivere TimeRangeDidChangeNotification le notifiche.
// Listen to all notifications posted for any object
var token = AVAssetTrack.Notifications.ObserveTimeRangeDidChange ((notification) => {
Console.WriteLine ("Observed TimeRangeDidChangeNotification!");
};
// Listen to all notifications posted for a single object
var token = AVAssetTrack.Notifications.ObserveTimeRangeDidChange (objectToObserve, (notification) => {
Console.WriteLine ($"Observed TimeRangeDidChangeNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();
Si applica a
ObserveTimeRangeDidChange(NSObject, EventHandler<NSNotificationEventArgs>)
Notifica fortemente tipizzata per la TimeRangeDidChangeNotification costante.
public static Foundation.NSObject ObserveTimeRangeDidChange(Foundation.NSObject objectToObserve, EventHandler<Foundation.NSNotificationEventArgs> handler);
static member ObserveTimeRangeDidChange : 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 interrompere la ricezione delle notifiche eliminandolo o passandolo a RemoveObservers(IEnumerable<NSObject>)
Commenti
Questo metodo può essere usato per sottoscrivere TimeRangeDidChangeNotification le notifiche.
// Listen to all notifications posted for any object
var token = AVAssetTrack.Notifications.ObserveTimeRangeDidChange ((notification) => {
Console.WriteLine ("Observed TimeRangeDidChangeNotification!");
};
// Listen to all notifications posted for a single object
var token = AVAssetTrack.Notifications.ObserveTimeRangeDidChange (objectToObserve, (notification) => {
Console.WriteLine ($"Observed TimeRangeDidChangeNotification for {nameof (objectToObserve)}!");
};
// Stop listening for notifications
token.Dispose ();