Share via


AVPlayer.Notifications.ObserveAvailableHdrModesDidChange Metodo

Definizione

Overload

ObserveAvailableHdrModesDidChange(EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la AvailableHdrModesDidChangeNotification costante.

ObserveAvailableHdrModesDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la AvailableHdrModesDidChangeNotification costante.

ObserveAvailableHdrModesDidChange(EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la AvailableHdrModesDidChangeNotification costante.

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

Parametri

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 AvailableHdrModesDidChangeNotification le notifiche.

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

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

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

Si applica a

ObserveAvailableHdrModesDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Notifica fortemente tipizzata per la AvailableHdrModesDidChangeNotification costante.

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

Parametri

objectToObserve
NSObject

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 AvailableHdrModesDidChangeNotification le notifiche.

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

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

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

Si applica a