~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/docs/en/MonoMac.PdfKit/PdfView+Notifications.xml

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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" />
 
4
  <AssemblyInfo>
 
5
    <AssemblyName>MonoMac</AssemblyName>
 
6
    <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
7
  </AssemblyInfo>
 
8
  <Base>
 
9
    <BaseTypeName>System.Object</BaseTypeName>
 
10
  </Base>
 
11
  <Interfaces />
 
12
  <Docs>
 
13
    <summary>
 
14
      <para>Notification posted by the <see cref="T:MonoMac.PdfKit.PdfView" /> class.</para>
 
15
    </summary>
 
16
    <remarks>
 
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>
 
19
    </remarks>
 
20
  </Docs>
 
21
  <Members>
 
22
    <Member MemberName="ObserveAnnotationHit">
 
23
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveAnnotationHit (EventHandler&lt;MonoMac.PdfKit.PdfViewAnnotationHitEventArgs&gt; handler);" />
 
24
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveAnnotationHit(class System.EventHandler`1&lt;class MonoMac.PdfKit.PdfViewAnnotationHitEventArgs&gt; handler) cil managed" />
 
25
      <MemberType>Method</MemberType>
 
26
      <AssemblyInfo>
 
27
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
28
      </AssemblyInfo>
 
29
      <ReturnValue>
 
30
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
31
      </ReturnValue>
 
32
      <Parameters>
 
33
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.PdfKit.PdfViewAnnotationHitEventArgs&gt;" />
 
34
      </Parameters>
 
35
      <Docs>
 
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>
 
38
        <returns>
 
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>
 
40
        </returns>
 
41
        <remarks>
 
42
          <para>The following example shows how you can use this method in your code</para>
 
43
          <example>
 
44
            <code lang="c#">
 
45
//
 
46
// Lambda style
 
47
//
 
48
 
 
49
// listening
 
50
notification = PdfView.Notifications.ObserveObserveAnnotationHit ((sender, args) =&gt; {
 
51
    /* Access strongly typed args */
 
52
    Console.WriteLine ("Notification: {0}", args.Notification);
 
53
 
 
54
    Console.WriteLine ("AnnotationHit", args.AnnotationHit);
 
55
});
 
56
 
 
57
// To stop listening:
 
58
notification.Dispose ();
 
59
 
 
60
//
 
61
//Method style
 
62
//
 
63
NSObject notification;
 
64
void Callback (object sender, ObserveAnnotationHit args)
 
65
{
 
66
    // Access strongly typed args
 
67
    Console.WriteLine ("Notification: {0}", args.Notification);
 
68
 
 
69
    Console.WriteLine ("AnnotationHit", args.AnnotationHit);
 
70
}
 
71
 
 
72
void Setup ()
 
73
{
 
74
    notification = PdfView.Notifications.ObserveObserveAnnotationHit (Callback);
 
75
}
 
76
 
 
77
void Teardown ()
 
78
{
 
79
    notification.Dispose ();
 
80
}</code>
 
81
          </example>
 
82
        </remarks>
 
83
      </Docs>
 
84
    </Member>
 
85
    <Member MemberName="ObserveAnnotationWillHit">
 
86
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveAnnotationWillHit (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
87
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveAnnotationWillHit(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
88
      <MemberType>Method</MemberType>
 
89
      <AssemblyInfo>
 
90
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
91
      </AssemblyInfo>
 
92
      <ReturnValue>
 
93
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
94
      </ReturnValue>
 
95
      <Parameters>
 
96
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
97
      </Parameters>
 
98
      <Docs>
 
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>
 
101
        <returns>
 
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>
 
103
        </returns>
 
104
        <remarks>
 
105
          <para>The following example shows how you can use this method in your code</para>
 
106
          <example>
 
107
            <code lang="c#">
 
108
//
 
109
// Lambda style
 
110
//
 
111
 
 
112
// listening
 
113
notification = PdfView.Notifications.ObserveObserveAnnotationWillHit ((sender, args) =&gt; {
 
114
    /* Access strongly typed args */
 
115
    Console.WriteLine ("Notification: {0}", args.Notification);
 
116
});
 
117
 
 
118
// To stop listening:
 
119
notification.Dispose ();
 
120
 
 
121
//
 
122
//Method style
 
123
//
 
124
NSObject notification;
 
125
void Callback (object sender, ObserveAnnotationWillHit args)
 
126
{
 
127
    // Access strongly typed args
 
128
    Console.WriteLine ("Notification: {0}", args.Notification);
 
129
}
 
130
 
 
131
void Setup ()
 
132
{
 
133
    notification = PdfView.Notifications.ObserveObserveAnnotationWillHit (Callback);
 
134
}
 
135
 
 
136
void Teardown ()
 
137
{
 
138
    notification.Dispose ();
 
139
}</code>
 
140
          </example>
 
141
        </remarks>
 
142
      </Docs>
 
143
    </Member>
 
144
    <Member MemberName="ObserveChangedHistory">
 
145
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveChangedHistory (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
146
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveChangedHistory(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
147
      <MemberType>Method</MemberType>
 
148
      <AssemblyInfo>
 
149
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
150
      </AssemblyInfo>
 
151
      <ReturnValue>
 
152
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
153
      </ReturnValue>
 
154
      <Parameters>
 
155
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
156
      </Parameters>
 
157
      <Docs>
 
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>
 
160
        <returns>
 
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>
 
162
        </returns>
 
163
        <remarks>
 
164
          <para>The following example shows how you can use this method in your code</para>
 
165
          <example>
 
166
            <code lang="c#">
 
167
//
 
168
// Lambda style
 
169
//
 
170
 
 
171
// listening
 
172
notification = PdfView.Notifications.ObserveObserveChangedHistory ((sender, args) =&gt; {
 
173
    /* Access strongly typed args */
 
174
    Console.WriteLine ("Notification: {0}", args.Notification);
 
175
});
 
176
 
 
177
// To stop listening:
 
178
notification.Dispose ();
 
179
 
 
180
//
 
181
//Method style
 
182
//
 
183
NSObject notification;
 
184
void Callback (object sender, ObserveChangedHistory args)
 
185
{
 
186
    // Access strongly typed args
 
187
    Console.WriteLine ("Notification: {0}", args.Notification);
 
188
}
 
189
 
 
190
void Setup ()
 
191
{
 
192
    notification = PdfView.Notifications.ObserveObserveChangedHistory (Callback);
 
193
}
 
194
 
 
195
void Teardown ()
 
196
{
 
197
    notification.Dispose ();
 
198
}</code>
 
199
          </example>
 
200
        </remarks>
 
201
      </Docs>
 
202
    </Member>
 
203
    <Member MemberName="ObserveCopyPermission">
 
204
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveCopyPermission (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
205
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveCopyPermission(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
206
      <MemberType>Method</MemberType>
 
207
      <AssemblyInfo>
 
208
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
209
      </AssemblyInfo>
 
210
      <ReturnValue>
 
211
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
212
      </ReturnValue>
 
213
      <Parameters>
 
214
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
215
      </Parameters>
 
216
      <Docs>
 
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>
 
219
        <returns>
 
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>
 
221
        </returns>
 
222
        <remarks>
 
223
          <para>The following example shows how you can use this method in your code</para>
 
224
          <example>
 
225
            <code lang="c#">
 
226
//
 
227
// Lambda style
 
228
//
 
229
 
 
230
// listening
 
231
notification = PdfView.Notifications.ObserveObserveCopyPermission ((sender, args) =&gt; {
 
232
    /* Access strongly typed args */
 
233
    Console.WriteLine ("Notification: {0}", args.Notification);
 
234
});
 
235
 
 
236
// To stop listening:
 
237
notification.Dispose ();
 
238
 
 
239
//
 
240
//Method style
 
241
//
 
242
NSObject notification;
 
243
void Callback (object sender, ObserveCopyPermission args)
 
244
{
 
245
    // Access strongly typed args
 
246
    Console.WriteLine ("Notification: {0}", args.Notification);
 
247
}
 
248
 
 
249
void Setup ()
 
250
{
 
251
    notification = PdfView.Notifications.ObserveObserveCopyPermission (Callback);
 
252
}
 
253
 
 
254
void Teardown ()
 
255
{
 
256
    notification.Dispose ();
 
257
}</code>
 
258
          </example>
 
259
        </remarks>
 
260
      </Docs>
 
261
    </Member>
 
262
    <Member MemberName="ObserveDisplayBoxChanged">
 
263
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDisplayBoxChanged (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
264
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDisplayBoxChanged(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
265
      <MemberType>Method</MemberType>
 
266
      <AssemblyInfo>
 
267
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
268
      </AssemblyInfo>
 
269
      <ReturnValue>
 
270
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
271
      </ReturnValue>
 
272
      <Parameters>
 
273
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
274
      </Parameters>
 
275
      <Docs>
 
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>
 
278
        <returns>
 
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>
 
280
        </returns>
 
281
        <remarks>
 
282
          <para>The following example shows how you can use this method in your code</para>
 
283
          <example>
 
284
            <code lang="c#">
 
285
//
 
286
// Lambda style
 
287
//
 
288
 
 
289
// listening
 
290
notification = PdfView.Notifications.ObserveObserveDisplayBoxChanged ((sender, args) =&gt; {
 
291
    /* Access strongly typed args */
 
292
    Console.WriteLine ("Notification: {0}", args.Notification);
 
293
});
 
294
 
 
295
// To stop listening:
 
296
notification.Dispose ();
 
297
 
 
298
//
 
299
//Method style
 
300
//
 
301
NSObject notification;
 
302
void Callback (object sender, ObserveDisplayBoxChanged args)
 
303
{
 
304
    // Access strongly typed args
 
305
    Console.WriteLine ("Notification: {0}", args.Notification);
 
306
}
 
307
 
 
308
void Setup ()
 
309
{
 
310
    notification = PdfView.Notifications.ObserveObserveDisplayBoxChanged (Callback);
 
311
}
 
312
 
 
313
void Teardown ()
 
314
{
 
315
    notification.Dispose ();
 
316
}</code>
 
317
          </example>
 
318
        </remarks>
 
319
      </Docs>
 
320
    </Member>
 
321
    <Member MemberName="ObserveDisplayModeChanged">
 
322
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDisplayModeChanged (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
323
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDisplayModeChanged(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
324
      <MemberType>Method</MemberType>
 
325
      <AssemblyInfo>
 
326
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
327
      </AssemblyInfo>
 
328
      <ReturnValue>
 
329
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
330
      </ReturnValue>
 
331
      <Parameters>
 
332
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
333
      </Parameters>
 
334
      <Docs>
 
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>
 
337
        <returns>
 
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>
 
339
        </returns>
 
340
        <remarks>
 
341
          <para>The following example shows how you can use this method in your code</para>
 
342
          <example>
 
343
            <code lang="c#">
 
344
//
 
345
// Lambda style
 
346
//
 
347
 
 
348
// listening
 
349
notification = PdfView.Notifications.ObserveObserveDisplayModeChanged ((sender, args) =&gt; {
 
350
    /* Access strongly typed args */
 
351
    Console.WriteLine ("Notification: {0}", args.Notification);
 
352
});
 
353
 
 
354
// To stop listening:
 
355
notification.Dispose ();
 
356
 
 
357
//
 
358
//Method style
 
359
//
 
360
NSObject notification;
 
361
void Callback (object sender, ObserveDisplayModeChanged args)
 
362
{
 
363
    // Access strongly typed args
 
364
    Console.WriteLine ("Notification: {0}", args.Notification);
 
365
}
 
366
 
 
367
void Setup ()
 
368
{
 
369
    notification = PdfView.Notifications.ObserveObserveDisplayModeChanged (Callback);
 
370
}
 
371
 
 
372
void Teardown ()
 
373
{
 
374
    notification.Dispose ();
 
375
}</code>
 
376
          </example>
 
377
        </remarks>
 
378
      </Docs>
 
379
    </Member>
 
380
    <Member MemberName="ObserveDocumentChanged">
 
381
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDocumentChanged (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
382
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDocumentChanged(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
383
      <MemberType>Method</MemberType>
 
384
      <AssemblyInfo>
 
385
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
386
      </AssemblyInfo>
 
387
      <ReturnValue>
 
388
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
389
      </ReturnValue>
 
390
      <Parameters>
 
391
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
392
      </Parameters>
 
393
      <Docs>
 
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>
 
396
        <returns>
 
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>
 
398
        </returns>
 
399
        <remarks>
 
400
          <para>The following example shows how you can use this method in your code</para>
 
401
          <example>
 
402
            <code lang="c#">
 
403
//
 
404
// Lambda style
 
405
//
 
406
 
 
407
// listening
 
408
notification = PdfView.Notifications.ObserveObserveDocumentChanged ((sender, args) =&gt; {
 
409
    /* Access strongly typed args */
 
410
    Console.WriteLine ("Notification: {0}", args.Notification);
 
411
});
 
412
 
 
413
// To stop listening:
 
414
notification.Dispose ();
 
415
 
 
416
//
 
417
//Method style
 
418
//
 
419
NSObject notification;
 
420
void Callback (object sender, ObserveDocumentChanged args)
 
421
{
 
422
    // Access strongly typed args
 
423
    Console.WriteLine ("Notification: {0}", args.Notification);
 
424
}
 
425
 
 
426
void Setup ()
 
427
{
 
428
    notification = PdfView.Notifications.ObserveObserveDocumentChanged (Callback);
 
429
}
 
430
 
 
431
void Teardown ()
 
432
{
 
433
    notification.Dispose ();
 
434
}</code>
 
435
          </example>
 
436
        </remarks>
 
437
      </Docs>
 
438
    </Member>
 
439
    <Member MemberName="ObservePageChanged">
 
440
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObservePageChanged (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
441
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObservePageChanged(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
442
      <MemberType>Method</MemberType>
 
443
      <AssemblyInfo>
 
444
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
445
      </AssemblyInfo>
 
446
      <ReturnValue>
 
447
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
448
      </ReturnValue>
 
449
      <Parameters>
 
450
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
451
      </Parameters>
 
452
      <Docs>
 
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>
 
455
        <returns>
 
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>
 
457
        </returns>
 
458
        <remarks>
 
459
          <para>The following example shows how you can use this method in your code</para>
 
460
          <example>
 
461
            <code lang="c#">
 
462
//
 
463
// Lambda style
 
464
//
 
465
 
 
466
// listening
 
467
notification = PdfView.Notifications.ObserveObservePageChanged ((sender, args) =&gt; {
 
468
    /* Access strongly typed args */
 
469
    Console.WriteLine ("Notification: {0}", args.Notification);
 
470
});
 
471
 
 
472
// To stop listening:
 
473
notification.Dispose ();
 
474
 
 
475
//
 
476
//Method style
 
477
//
 
478
NSObject notification;
 
479
void Callback (object sender, ObservePageChanged args)
 
480
{
 
481
    // Access strongly typed args
 
482
    Console.WriteLine ("Notification: {0}", args.Notification);
 
483
}
 
484
 
 
485
void Setup ()
 
486
{
 
487
    notification = PdfView.Notifications.ObserveObservePageChanged (Callback);
 
488
}
 
489
 
 
490
void Teardown ()
 
491
{
 
492
    notification.Dispose ();
 
493
}</code>
 
494
          </example>
 
495
        </remarks>
 
496
      </Docs>
 
497
    </Member>
 
498
    <Member MemberName="ObserveScaleChanged">
 
499
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveScaleChanged (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
500
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveScaleChanged(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
501
      <MemberType>Method</MemberType>
 
502
      <AssemblyInfo>
 
503
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
504
      </AssemblyInfo>
 
505
      <ReturnValue>
 
506
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
507
      </ReturnValue>
 
508
      <Parameters>
 
509
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
510
      </Parameters>
 
511
      <Docs>
 
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>
 
514
        <returns>
 
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>
 
516
        </returns>
 
517
        <remarks>
 
518
          <para>The following example shows how you can use this method in your code</para>
 
519
          <example>
 
520
            <code lang="c#">
 
521
//
 
522
// Lambda style
 
523
//
 
524
 
 
525
// listening
 
526
notification = PdfView.Notifications.ObserveObserveScaleChanged ((sender, args) =&gt; {
 
527
    /* Access strongly typed args */
 
528
    Console.WriteLine ("Notification: {0}", args.Notification);
 
529
});
 
530
 
 
531
// To stop listening:
 
532
notification.Dispose ();
 
533
 
 
534
//
 
535
//Method style
 
536
//
 
537
NSObject notification;
 
538
void Callback (object sender, ObserveScaleChanged args)
 
539
{
 
540
    // Access strongly typed args
 
541
    Console.WriteLine ("Notification: {0}", args.Notification);
 
542
}
 
543
 
 
544
void Setup ()
 
545
{
 
546
    notification = PdfView.Notifications.ObserveObserveScaleChanged (Callback);
 
547
}
 
548
 
 
549
void Teardown ()
 
550
{
 
551
    notification.Dispose ();
 
552
}</code>
 
553
          </example>
 
554
        </remarks>
 
555
      </Docs>
 
556
    </Member>
 
557
    <Member MemberName="ObserveSelectionChanged">
 
558
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveSelectionChanged (EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt; handler);" />
 
559
      <MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveSelectionChanged(class System.EventHandler`1&lt;class MonoMac.Foundation.NSNotificationEventArgs&gt; handler) cil managed" />
 
560
      <MemberType>Method</MemberType>
 
561
      <AssemblyInfo>
 
562
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
563
      </AssemblyInfo>
 
564
      <ReturnValue>
 
565
        <ReturnType>MonoMac.Foundation.NSObject</ReturnType>
 
566
      </ReturnValue>
 
567
      <Parameters>
 
568
        <Parameter Name="handler" Type="System.EventHandler&lt;MonoMac.Foundation.NSNotificationEventArgs&gt;" />
 
569
      </Parameters>
 
570
      <Docs>
 
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>
 
573
        <returns>
 
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>
 
575
        </returns>
 
576
        <remarks>
 
577
          <para>The following example shows how you can use this method in your code</para>
 
578
          <example>
 
579
            <code lang="c#">
 
580
//
 
581
// Lambda style
 
582
//
 
583
 
 
584
// listening
 
585
notification = PdfView.Notifications.ObserveObserveSelectionChanged ((sender, args) =&gt; {
 
586
    /* Access strongly typed args */
 
587
    Console.WriteLine ("Notification: {0}", args.Notification);
 
588
});
 
589
 
 
590
// To stop listening:
 
591
notification.Dispose ();
 
592
 
 
593
//
 
594
//Method style
 
595
//
 
596
NSObject notification;
 
597
void Callback (object sender, ObserveSelectionChanged args)
 
598
{
 
599
    // Access strongly typed args
 
600
    Console.WriteLine ("Notification: {0}", args.Notification);
 
601
}
 
602
 
 
603
void Setup ()
 
604
{
 
605
    notification = PdfView.Notifications.ObserveObserveSelectionChanged (Callback);
 
606
}
 
607
 
 
608
void Teardown ()
 
609
{
 
610
    notification.Dispose ();
 
611
}</code>
 
612
          </example>
 
613
        </remarks>
 
614
      </Docs>
 
615
    </Member>
 
616
  </Members>
 
617
</Type>