AVPlayer.Notifications.ObserveAvailableHdrModesDidChange Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
- handler
- EventHandler<NSNotificationEventArgs>
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
- handler
- EventHandler<NSNotificationEventArgs>
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 ();