1
<Type Name="PdfView+Notifications" FullName="MonoMac.PdfKit.PdfView+Notifications">
2
<TypeSignature Language="C#" Value="public static class PdfView.Notifications" />
3
<TypeSignature Language="ILAsm" Value=".class nested public auto ansi abstract sealed beforefieldinit PdfView/Notifications extends System.Object" />
5
<AssemblyName>MonoMac</AssemblyName>
6
<AssemblyVersion>0.0.0.0</AssemblyVersion>
9
<BaseTypeName>System.Object</BaseTypeName>
14
<para>Notification posted by the <see cref="T:MonoMac.PdfKit.PdfView" /> class.</para>
17
<para>This is a static class which contains various helper methods that allow developers to observe events posted in the iOS notification hub (<see cref="T:MonoTouch.Foundation.NSNotificationCenter" />).</para>
18
<para>The methods defined in this class post events invoke the provided method or lambda with a <see cref="T:MonoTouch.Foundation.NSNotificationEventArgs" /> parameter which contains strongly typed properties for the notification arguments.</para>
22
<Member MemberName="ObserveAnnotationHit">
23
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveAnnotationHit (EventHandler<MonoMac.PdfKit.PdfViewAnnotationHitEventArgs> handler);" />
24
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveAnnotationHit(class System.EventHandler`1<class MonoMac.PdfKit.PdfViewAnnotationHitEventArgs> handler) cil managed" />
25
<MemberType>Method</MemberType>
27
<AssemblyVersion>0.0.0.0</AssemblyVersion>
30
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
33
<Parameter Name="handler" Type="System.EventHandler<MonoMac.PdfKit.PdfViewAnnotationHitEventArgs>" />
36
<param name="handler">Method to invoke when the notification is posted.</param>
37
<summary>Registers a method to be notified when the PDFViewAnnotationHitNotification notification is posted.</summary>
39
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
42
<para>The following example shows how you can use this method in your code</para>
50
notification = PdfView.Notifications.ObserveObserveAnnotationHit ((sender, args) => {
51
/* Access strongly typed args */
52
Console.WriteLine ("Notification: {0}", args.Notification);
54
Console.WriteLine ("AnnotationHit", args.AnnotationHit);
58
notification.Dispose ();
63
NSObject notification;
64
void Callback (object sender, ObserveAnnotationHit args)
66
// Access strongly typed args
67
Console.WriteLine ("Notification: {0}", args.Notification);
69
Console.WriteLine ("AnnotationHit", args.AnnotationHit);
74
notification = PdfView.Notifications.ObserveObserveAnnotationHit (Callback);
79
notification.Dispose ();
85
<Member MemberName="ObserveAnnotationWillHit">
86
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveAnnotationWillHit (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
87
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveAnnotationWillHit(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
88
<MemberType>Method</MemberType>
90
<AssemblyVersion>0.0.0.0</AssemblyVersion>
93
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
96
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
99
<param name="handler">Method to invoke when the notification is posted.</param>
100
<summary>Registers a method to be notified when the PDFViewAnnotationWillHitNotification notification is posted.</summary>
102
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
105
<para>The following example shows how you can use this method in your code</para>
113
notification = PdfView.Notifications.ObserveObserveAnnotationWillHit ((sender, args) => {
114
/* Access strongly typed args */
115
Console.WriteLine ("Notification: {0}", args.Notification);
118
// To stop listening:
119
notification.Dispose ();
124
NSObject notification;
125
void Callback (object sender, ObserveAnnotationWillHit args)
127
// Access strongly typed args
128
Console.WriteLine ("Notification: {0}", args.Notification);
133
notification = PdfView.Notifications.ObserveObserveAnnotationWillHit (Callback);
138
notification.Dispose ();
144
<Member MemberName="ObserveChangedHistory">
145
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveChangedHistory (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
146
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveChangedHistory(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
147
<MemberType>Method</MemberType>
149
<AssemblyVersion>0.0.0.0</AssemblyVersion>
152
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
155
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
158
<param name="handler">Method to invoke when the notification is posted.</param>
159
<summary>Registers a method to be notified when the PDFViewChangedHistoryNotification notification is posted.</summary>
161
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
164
<para>The following example shows how you can use this method in your code</para>
172
notification = PdfView.Notifications.ObserveObserveChangedHistory ((sender, args) => {
173
/* Access strongly typed args */
174
Console.WriteLine ("Notification: {0}", args.Notification);
177
// To stop listening:
178
notification.Dispose ();
183
NSObject notification;
184
void Callback (object sender, ObserveChangedHistory args)
186
// Access strongly typed args
187
Console.WriteLine ("Notification: {0}", args.Notification);
192
notification = PdfView.Notifications.ObserveObserveChangedHistory (Callback);
197
notification.Dispose ();
203
<Member MemberName="ObserveCopyPermission">
204
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveCopyPermission (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
205
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveCopyPermission(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
206
<MemberType>Method</MemberType>
208
<AssemblyVersion>0.0.0.0</AssemblyVersion>
211
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
214
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
217
<param name="handler">Method to invoke when the notification is posted.</param>
218
<summary>Registers a method to be notified when the PDFViewCopyPermissionNotification notification is posted.</summary>
220
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
223
<para>The following example shows how you can use this method in your code</para>
231
notification = PdfView.Notifications.ObserveObserveCopyPermission ((sender, args) => {
232
/* Access strongly typed args */
233
Console.WriteLine ("Notification: {0}", args.Notification);
236
// To stop listening:
237
notification.Dispose ();
242
NSObject notification;
243
void Callback (object sender, ObserveCopyPermission args)
245
// Access strongly typed args
246
Console.WriteLine ("Notification: {0}", args.Notification);
251
notification = PdfView.Notifications.ObserveObserveCopyPermission (Callback);
256
notification.Dispose ();
262
<Member MemberName="ObserveDisplayBoxChanged">
263
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDisplayBoxChanged (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
264
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDisplayBoxChanged(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
265
<MemberType>Method</MemberType>
267
<AssemblyVersion>0.0.0.0</AssemblyVersion>
270
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
273
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
276
<param name="handler">Method to invoke when the notification is posted.</param>
277
<summary>Registers a method to be notified when the PDFViewDisplayBoxChangedNotification notification is posted.</summary>
279
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
282
<para>The following example shows how you can use this method in your code</para>
290
notification = PdfView.Notifications.ObserveObserveDisplayBoxChanged ((sender, args) => {
291
/* Access strongly typed args */
292
Console.WriteLine ("Notification: {0}", args.Notification);
295
// To stop listening:
296
notification.Dispose ();
301
NSObject notification;
302
void Callback (object sender, ObserveDisplayBoxChanged args)
304
// Access strongly typed args
305
Console.WriteLine ("Notification: {0}", args.Notification);
310
notification = PdfView.Notifications.ObserveObserveDisplayBoxChanged (Callback);
315
notification.Dispose ();
321
<Member MemberName="ObserveDisplayModeChanged">
322
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDisplayModeChanged (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
323
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDisplayModeChanged(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
324
<MemberType>Method</MemberType>
326
<AssemblyVersion>0.0.0.0</AssemblyVersion>
329
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
332
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
335
<param name="handler">Method to invoke when the notification is posted.</param>
336
<summary>Registers a method to be notified when the PDFViewDisplayModeChangedNotification notification is posted.</summary>
338
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
341
<para>The following example shows how you can use this method in your code</para>
349
notification = PdfView.Notifications.ObserveObserveDisplayModeChanged ((sender, args) => {
350
/* Access strongly typed args */
351
Console.WriteLine ("Notification: {0}", args.Notification);
354
// To stop listening:
355
notification.Dispose ();
360
NSObject notification;
361
void Callback (object sender, ObserveDisplayModeChanged args)
363
// Access strongly typed args
364
Console.WriteLine ("Notification: {0}", args.Notification);
369
notification = PdfView.Notifications.ObserveObserveDisplayModeChanged (Callback);
374
notification.Dispose ();
380
<Member MemberName="ObserveDocumentChanged">
381
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDocumentChanged (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
382
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDocumentChanged(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
383
<MemberType>Method</MemberType>
385
<AssemblyVersion>0.0.0.0</AssemblyVersion>
388
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
391
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
394
<param name="handler">Method to invoke when the notification is posted.</param>
395
<summary>Registers a method to be notified when the PDFViewDocumentChangedNotification notification is posted.</summary>
397
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
400
<para>The following example shows how you can use this method in your code</para>
408
notification = PdfView.Notifications.ObserveObserveDocumentChanged ((sender, args) => {
409
/* Access strongly typed args */
410
Console.WriteLine ("Notification: {0}", args.Notification);
413
// To stop listening:
414
notification.Dispose ();
419
NSObject notification;
420
void Callback (object sender, ObserveDocumentChanged args)
422
// Access strongly typed args
423
Console.WriteLine ("Notification: {0}", args.Notification);
428
notification = PdfView.Notifications.ObserveObserveDocumentChanged (Callback);
433
notification.Dispose ();
439
<Member MemberName="ObservePageChanged">
440
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObservePageChanged (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
441
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObservePageChanged(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
442
<MemberType>Method</MemberType>
444
<AssemblyVersion>0.0.0.0</AssemblyVersion>
447
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
450
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
453
<param name="handler">Method to invoke when the notification is posted.</param>
454
<summary>Registers a method to be notified when the PDFViewPageChangedNotification notification is posted.</summary>
456
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
459
<para>The following example shows how you can use this method in your code</para>
467
notification = PdfView.Notifications.ObserveObservePageChanged ((sender, args) => {
468
/* Access strongly typed args */
469
Console.WriteLine ("Notification: {0}", args.Notification);
472
// To stop listening:
473
notification.Dispose ();
478
NSObject notification;
479
void Callback (object sender, ObservePageChanged args)
481
// Access strongly typed args
482
Console.WriteLine ("Notification: {0}", args.Notification);
487
notification = PdfView.Notifications.ObserveObservePageChanged (Callback);
492
notification.Dispose ();
498
<Member MemberName="ObserveScaleChanged">
499
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveScaleChanged (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
500
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveScaleChanged(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
501
<MemberType>Method</MemberType>
503
<AssemblyVersion>0.0.0.0</AssemblyVersion>
506
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
509
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
512
<param name="handler">Method to invoke when the notification is posted.</param>
513
<summary>Registers a method to be notified when the PDFViewScaleChangedNotification notification is posted.</summary>
515
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
518
<para>The following example shows how you can use this method in your code</para>
526
notification = PdfView.Notifications.ObserveObserveScaleChanged ((sender, args) => {
527
/* Access strongly typed args */
528
Console.WriteLine ("Notification: {0}", args.Notification);
531
// To stop listening:
532
notification.Dispose ();
537
NSObject notification;
538
void Callback (object sender, ObserveScaleChanged args)
540
// Access strongly typed args
541
Console.WriteLine ("Notification: {0}", args.Notification);
546
notification = PdfView.Notifications.ObserveObserveScaleChanged (Callback);
551
notification.Dispose ();
557
<Member MemberName="ObserveSelectionChanged">
558
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveSelectionChanged (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
559
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveSelectionChanged(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
560
<MemberType>Method</MemberType>
562
<AssemblyVersion>0.0.0.0</AssemblyVersion>
565
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
568
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
571
<param name="handler">Method to invoke when the notification is posted.</param>
572
<summary>Registers a method to be notified when the PDFViewSelectionChangedNotification notification is posted.</summary>
574
<para>The returned NSObject represents the registered notification. Either call Dispose on the object to stop receiving notifications, or pass it to <see cref="M:MonoTouch.Foundation.NSNotification.RemoveObserver" /></para>
577
<para>The following example shows how you can use this method in your code</para>
585
notification = PdfView.Notifications.ObserveObserveSelectionChanged ((sender, args) => {
586
/* Access strongly typed args */
587
Console.WriteLine ("Notification: {0}", args.Notification);
590
// To stop listening:
591
notification.Dispose ();
596
NSObject notification;
597
void Callback (object sender, ObserveSelectionChanged args)
599
// Access strongly typed args
600
Console.WriteLine ("Notification: {0}", args.Notification);
605
notification = PdfView.Notifications.ObserveObserveSelectionChanged (Callback);
610
notification.Dispose ();