次の方法で共有


PdfView.VisiblePagesChangedNotification プロパティ

定義

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

プロパティ値

NSString 定数は、NSNotificationCenter のトークンとして使用する必要があります。

属性

注釈

この定数は、 と共 NSNotificationCenter に使用してこの通知のリスナーを登録できます。また、開発者は厳密に型指定された通知 ObserveVisiblePagesChanged を代わりに使用することもできます。 これらの値は、実際の文字列コンテンツに対して純粋に使用されるのではなく、一部のネイティブ ライブラリでトークンとして使用できるため、これは文字列ではなく NSString です。 コールバックの 'notification' パラメーターには、通知の種類に固有の追加情報が含まれています。

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

適用対象