Condividi tramite


PdfView.DisplayBoxChangedNotification Proprietà

Definizione

Costante di notifica per DisplayBoxChanged

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

Valore della proprietà

La costante NSString deve essere usata come token per NSNotificationCenter.

Attributi

Commenti

Questa costante può essere usata con per NSNotificationCenter registrare un listener per questa notifica, ma anche gli sviluppatori possono usare la notifica ObserveDisplayBoxChanged fortemente tipizzata. Si tratta di una stringa NSString anziché di una stringa, perché questi valori possono essere usati come token in alcune librerie native anziché essere usati esclusivamente per il relativo contenuto stringa effettivo. Il parametro 'notification' per il callback contiene informazioni aggiuntive specifiche del tipo di notifica.

// Lambda style
NSNotificationCenter.DefaultCenter.AddObserver (
        PdfView.DisplayBoxChangedNotification, (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.DisplayBoxChangedNotification, Callback);
}

Si applica a