1
<Type Name="NSUndoManager+Notifications" FullName="MonoMac.Foundation.NSUndoManager+Notifications">
2
<TypeSignature Language="C#" Value="public static class NSUndoManager.Notifications" />
3
<TypeSignature Language="ILAsm" Value=".class nested public auto ansi abstract sealed beforefieldinit NSUndoManager/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.Foundation.NSUndoManager" /> 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="ObserveCheckpoint">
23
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveCheckpoint (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
24
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveCheckpoint(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> 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.Foundation.NSNotificationEventArgs>" />
36
<param name="handler">Method to invoke when the notification is posted.</param>
37
<summary>Registers a method to be notified when the NSUndoManagerCheckpointNotification 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 = NSUndoManager.Notifications.ObserveObserveCheckpoint ((sender, args) => {
51
/* Access strongly typed args */
52
Console.WriteLine ("Notification: {0}", args.Notification);
56
notification.Dispose ();
61
NSObject notification;
62
void Callback (object sender, ObserveCheckpoint args)
64
// Access strongly typed args
65
Console.WriteLine ("Notification: {0}", args.Notification);
70
notification = NSUndoManager.Notifications.ObserveObserveCheckpoint (Callback);
75
notification.Dispose ();
81
<Member MemberName="ObserveDidCloseUndoGroup">
82
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDidCloseUndoGroup (EventHandler<MonoMac.Foundation.NSUndoManagerCloseUndoGroupEventArgs> handler);" />
83
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDidCloseUndoGroup(class System.EventHandler`1<class MonoMac.Foundation.NSUndoManagerCloseUndoGroupEventArgs> handler) cil managed" />
84
<MemberType>Method</MemberType>
86
<AssemblyVersion>0.0.0.0</AssemblyVersion>
89
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
92
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSUndoManagerCloseUndoGroupEventArgs>" />
95
<param name="handler">Method to invoke when the notification is posted.</param>
96
<summary>Registers a method to be notified when the NSUndoManagerDidCloseUndoGroupNotification notification is posted.</summary>
98
<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>
101
<para>The following example shows how you can use this method in your code</para>
109
notification = NSUndoManager.Notifications.ObserveObserveDidCloseUndoGroup ((sender, args) => {
110
/* Access strongly typed args */
111
Console.WriteLine ("Notification: {0}", args.Notification);
113
Console.WriteLine ("Discardable", args.Discardable);
116
// To stop listening:
117
notification.Dispose ();
122
NSObject notification;
123
void Callback (object sender, ObserveDidCloseUndoGroup args)
125
// Access strongly typed args
126
Console.WriteLine ("Notification: {0}", args.Notification);
128
Console.WriteLine ("Discardable", args.Discardable);
133
notification = NSUndoManager.Notifications.ObserveObserveDidCloseUndoGroup (Callback);
138
notification.Dispose ();
144
<Member MemberName="ObserveDidOpenUndoGroup">
145
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDidOpenUndoGroup (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
146
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDidOpenUndoGroup(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 NSUndoManagerDidOpenUndoGroupNotification 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 = NSUndoManager.Notifications.ObserveObserveDidOpenUndoGroup ((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, ObserveDidOpenUndoGroup args)
186
// Access strongly typed args
187
Console.WriteLine ("Notification: {0}", args.Notification);
192
notification = NSUndoManager.Notifications.ObserveObserveDidOpenUndoGroup (Callback);
197
notification.Dispose ();
203
<Member MemberName="ObserveDidRedoChange">
204
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDidRedoChange (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
205
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDidRedoChange(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 NSUndoManagerDidRedoChangeNotification 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 = NSUndoManager.Notifications.ObserveObserveDidRedoChange ((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, ObserveDidRedoChange args)
245
// Access strongly typed args
246
Console.WriteLine ("Notification: {0}", args.Notification);
251
notification = NSUndoManager.Notifications.ObserveObserveDidRedoChange (Callback);
256
notification.Dispose ();
262
<Member MemberName="ObserveDidUndoChange">
263
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveDidUndoChange (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
264
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveDidUndoChange(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 NSUndoManagerDidUndoChangeNotification 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 = NSUndoManager.Notifications.ObserveObserveDidUndoChange ((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, ObserveDidUndoChange args)
304
// Access strongly typed args
305
Console.WriteLine ("Notification: {0}", args.Notification);
310
notification = NSUndoManager.Notifications.ObserveObserveDidUndoChange (Callback);
315
notification.Dispose ();
321
<Member MemberName="ObserveWillCloseUndoGroup">
322
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveWillCloseUndoGroup (EventHandler<MonoMac.Foundation.NSUndoManagerCloseUndoGroupEventArgs> handler);" />
323
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveWillCloseUndoGroup(class System.EventHandler`1<class MonoMac.Foundation.NSUndoManagerCloseUndoGroupEventArgs> 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.NSUndoManagerCloseUndoGroupEventArgs>" />
335
<param name="handler">Method to invoke when the notification is posted.</param>
336
<summary>Registers a method to be notified when the NSUndoManagerWillCloseUndoGroupNotification 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 = NSUndoManager.Notifications.ObserveObserveWillCloseUndoGroup ((sender, args) => {
350
/* Access strongly typed args */
351
Console.WriteLine ("Notification: {0}", args.Notification);
353
Console.WriteLine ("Discardable", args.Discardable);
356
// To stop listening:
357
notification.Dispose ();
362
NSObject notification;
363
void Callback (object sender, ObserveWillCloseUndoGroup args)
365
// Access strongly typed args
366
Console.WriteLine ("Notification: {0}", args.Notification);
368
Console.WriteLine ("Discardable", args.Discardable);
373
notification = NSUndoManager.Notifications.ObserveObserveWillCloseUndoGroup (Callback);
378
notification.Dispose ();
384
<Member MemberName="ObserveWillRedoChange">
385
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveWillRedoChange (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
386
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveWillRedoChange(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
387
<MemberType>Method</MemberType>
389
<AssemblyVersion>0.0.0.0</AssemblyVersion>
392
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
395
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
398
<param name="handler">Method to invoke when the notification is posted.</param>
399
<summary>Registers a method to be notified when the NSUndoManagerWillRedoChangeNotification notification is posted.</summary>
401
<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>
404
<para>The following example shows how you can use this method in your code</para>
412
notification = NSUndoManager.Notifications.ObserveObserveWillRedoChange ((sender, args) => {
413
/* Access strongly typed args */
414
Console.WriteLine ("Notification: {0}", args.Notification);
417
// To stop listening:
418
notification.Dispose ();
423
NSObject notification;
424
void Callback (object sender, ObserveWillRedoChange args)
426
// Access strongly typed args
427
Console.WriteLine ("Notification: {0}", args.Notification);
432
notification = NSUndoManager.Notifications.ObserveObserveWillRedoChange (Callback);
437
notification.Dispose ();
443
<Member MemberName="ObserveWillUndoChange">
444
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveWillUndoChange (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
445
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveWillUndoChange(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
446
<MemberType>Method</MemberType>
448
<AssemblyVersion>0.0.0.0</AssemblyVersion>
451
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
454
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
457
<param name="handler">Method to invoke when the notification is posted.</param>
458
<summary>Registers a method to be notified when the NSUndoManagerWillUndoChangeNotification notification is posted.</summary>
460
<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>
463
<para>The following example shows how you can use this method in your code</para>
471
notification = NSUndoManager.Notifications.ObserveObserveWillUndoChange ((sender, args) => {
472
/* Access strongly typed args */
473
Console.WriteLine ("Notification: {0}", args.Notification);
476
// To stop listening:
477
notification.Dispose ();
482
NSObject notification;
483
void Callback (object sender, ObserveWillUndoChange args)
485
// Access strongly typed args
486
Console.WriteLine ("Notification: {0}", args.Notification);
491
notification = NSUndoManager.Notifications.ObserveObserveWillUndoChange (Callback);
496
notification.Dispose ();