1
<Type Name="AVCaptureDevice+Notifications" FullName="MonoMac.AVFoundation.AVCaptureDevice+Notifications">
2
<TypeSignature Language="C#" Value="public static class AVCaptureDevice.Notifications" />
3
<TypeSignature Language="ILAsm" Value=".class nested public auto ansi abstract sealed beforefieldinit AVCaptureDevice/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.AVFoundation.AVCaptureDevice" /> 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="ObserveSubjectAreaDidChange">
23
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveSubjectAreaDidChange (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
24
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveSubjectAreaDidChange(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 AVCaptureDeviceSubjectAreaDidChangeNotification 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 = AVCaptureDevice.Notifications.ObserveObserveSubjectAreaDidChange ((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, ObserveSubjectAreaDidChange args)
64
// Access strongly typed args
65
Console.WriteLine ("Notification: {0}", args.Notification);
70
notification = AVCaptureDevice.Notifications.ObserveObserveSubjectAreaDidChange (Callback);
75
notification.Dispose ();
81
<Member MemberName="ObserveWasConnected">
82
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveWasConnected (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
83
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveWasConnected(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> 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.NSNotificationEventArgs>" />
95
<param name="handler">Method to invoke when the notification is posted.</param>
96
<summary>Registers a method to be notified when the AVCaptureDeviceWasConnectedNotification 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 = AVCaptureDevice.Notifications.ObserveObserveWasConnected ((sender, args) => {
110
/* Access strongly typed args */
111
Console.WriteLine ("Notification: {0}", args.Notification);
114
// To stop listening:
115
notification.Dispose ();
120
NSObject notification;
121
void Callback (object sender, ObserveWasConnected args)
123
// Access strongly typed args
124
Console.WriteLine ("Notification: {0}", args.Notification);
129
notification = AVCaptureDevice.Notifications.ObserveObserveWasConnected (Callback);
134
notification.Dispose ();
140
<Member MemberName="ObserveWasDisconnected">
141
<MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSObject ObserveWasDisconnected (EventHandler<MonoMac.Foundation.NSNotificationEventArgs> handler);" />
142
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class MonoMac.Foundation.NSObject ObserveWasDisconnected(class System.EventHandler`1<class MonoMac.Foundation.NSNotificationEventArgs> handler) cil managed" />
143
<MemberType>Method</MemberType>
145
<AssemblyVersion>0.0.0.0</AssemblyVersion>
148
<ReturnType>MonoMac.Foundation.NSObject</ReturnType>
151
<Parameter Name="handler" Type="System.EventHandler<MonoMac.Foundation.NSNotificationEventArgs>" />
154
<param name="handler">Method to invoke when the notification is posted.</param>
155
<summary>Registers a method to be notified when the AVCaptureDeviceWasDisconnectedNotification notification is posted.</summary>
157
<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>
160
<para>The following example shows how you can use this method in your code</para>
168
notification = AVCaptureDevice.Notifications.ObserveObserveWasDisconnected ((sender, args) => {
169
/* Access strongly typed args */
170
Console.WriteLine ("Notification: {0}", args.Notification);
173
// To stop listening:
174
notification.Dispose ();
179
NSObject notification;
180
void Callback (object sender, ObserveWasDisconnected args)
182
// Access strongly typed args
183
Console.WriteLine ("Notification: {0}", args.Notification);
188
notification = AVCaptureDevice.Notifications.ObserveObserveWasDisconnected (Callback);
193
notification.Dispose ();