Share via


PdfView.VisiblePagesChangedNotification Propiedad

Definición

Constante de notificación para VisiblePagesChanged

[Foundation.Advice("Use PdfView.Notifications.ObserveVisiblePagesChanged helper method instead.")]
[Foundation.Field("PDFViewVisiblePagesChangedNotification", "PDFKit")]
public static Foundation.NSString VisiblePagesChangedNotification { get; }
[Foundation.Advice("Use PdfView.Notifications.ObserveVisiblePagesChanged helper method instead.")]
[Foundation.Field("PDFViewVisiblePagesChangedNotification", "Quartz")]
public static Foundation.NSString VisiblePagesChangedNotification { get; }
member this.VisiblePagesChangedNotification : Foundation.NSString

Valor de propiedad

La constante NSString debe usarse como token para NSNotificationCenter.

Atributos

Comentarios

Esta constante se puede usar con NSNotificationCenter para registrar un agente de escucha para esta notificación, además, los desarrolladores pueden usar la notificación ObserveVisiblePagesChanged fuertemente tipada en su lugar. Se trata de un NSString en lugar de una cadena, ya que estos valores se pueden usar como tokens en algunas bibliotecas nativas en lugar de usarse exclusivamente para su contenido de cadena real. El parámetro "notification" de la devolución de llamada contiene información adicional específica del tipo de notificación.

// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
        PdfView.VisiblePagesChangedNotification, (notification) => {Console.WriteLine ("Received the notification PdfView", notification); }


// Method style
void Callback (NSNotification notification)
{
    Console.WriteLine ("Received a notification PdfView", notification);
}

void Setup ()
{
    NSNotificationCenter.DefaultCenter.AddObserver (PdfView.VisiblePagesChangedNotification, Callback);
}

Se aplica a