AVPlayer.Notifications.ObserveAvailableHdrModesDidChange Método

Definição

Sobrecargas

ObserveAvailableHdrModesDidChange(EventHandler<NSNotificationEventArgs>)

Notificação fortemente tipada para a AvailableHdrModesDidChangeNotification constante.

ObserveAvailableHdrModesDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Notificação fortemente tipada para a AvailableHdrModesDidChangeNotification constante.

ObserveAvailableHdrModesDidChange(EventHandler<NSNotificationEventArgs>)

Notificação fortemente tipada para a AvailableHdrModesDidChangeNotification constante.

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

Parâmetros

Retornos

Objeto de token que pode ser usado para parar de receber notificações descartando-o ou passando-o para RemoveObservers(IEnumerable<NSObject>)

Comentários

Esse método pode ser usado para assinar AvailableHdrModesDidChangeNotification notificações.

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

Aplica-se a

ObserveAvailableHdrModesDidChange(NSObject, EventHandler<NSNotificationEventArgs>)

Notificação fortemente tipada para a AvailableHdrModesDidChangeNotification constante.

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

Parâmetros

objectToObserve
NSObject

Retornos

Objeto de token que pode ser usado para parar de receber notificações descartando-o ou passando-o para RemoveObservers(IEnumerable<NSObject>)

Comentários

Esse método pode ser usado para assinar AvailableHdrModesDidChangeNotification notificações.

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

Aplica-se a