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

« back to all changes in this revision

Viewing changes to external/monomac/docs/en/MonoMac.AVFoundation/AVCaptureSession.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="AVCaptureSession" FullName="MonoMac.AVFoundation.AVCaptureSession">
 
2
  <TypeSignature Language="C#" Value="public class AVCaptureSession : MonoMac.Foundation.NSObject" />
 
3
  <TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AVCaptureSession extends MonoMac.Foundation.NSObject" />
 
4
  <AssemblyInfo>
 
5
    <AssemblyName>MonoMac</AssemblyName>
 
6
    <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
7
  </AssemblyInfo>
 
8
  <Base>
 
9
    <BaseTypeName>MonoMac.Foundation.NSObject</BaseTypeName>
 
10
  </Base>
 
11
  <Interfaces />
 
12
  <Attributes>
 
13
    <Attribute>
 
14
      <AttributeName>MonoMac.Foundation.Register("AVCaptureSession", true)</AttributeName>
 
15
    </Attribute>
 
16
  </Attributes>
 
17
  <Docs>
 
18
    <summary>Coordinates a recording session.</summary>
 
19
    <remarks>
 
20
      <para>
 
21
 
 
22
        The AVCaptureSession object coordinates the recording of video
 
23
        or audio input and passing the recorded information to one or
 
24
        more output objects.  An iPhone 3 for example will have two
 
25
        input devices, one for the camera and one for the microphone.
 
26
        An iPhone 4 would have three input devices, one for the
 
27
        microphone, one for the back camera and one for the front
 
28
        camera.    
 
29
 
 
30
      </para>
 
31
      <para>
 
32
        
 
33
        To record, you must create instances of the <see cref="T:MonoMac.AVFoundation.AVCaptureInput" /> class, usually by creating instances of the concrete <see cref="T:MonoMac.AVFoundation.AVCaptureDeviceInput" />.   
 
34
      </para>
 
35
      <para>
 
36
 
 
37
        You can the configure one or more output ports for the
 
38
        captured data, and these can be still frames, video frames
 
39
        with timing information, audio samples, quicktime movie files
 
40
        or you can render it directly to a CoreAnimation layer.
 
41
 
 
42
      </para>
 
43
      <para>
 
44
 
 
45
        Once you have configured the input and output components of
 
46
        your session, you start the actual processing by calling the
 
47
        <see cref="M:MonoMac.AVFoundation.AVCaptureSession.StartRunning()" />
 
48
        method.
 
49
 
 
50
      </para>
 
51
      <example>
 
52
        <code lang="C#">
 
53
 
 
54
void SetupCapture ()
 
55
        / configure the capture session for low resolution, change this if your code
 
56
        // can cope with more data or volume
 
57
        session = new AVCaptureSession () {
 
58
                SessionPreset = AVCaptureSession.PresetMedium
 
59
        };
 
60
        
 
61
        // create a device input and attach it to the session
 
62
        var captureDevice = AVCaptureDevice.DefaultDeviceWithMediaType (AVMediaType.Video);
 
63
        var input = AVCaptureDeviceInput.FromDevice (captureDevice);
 
64
        if (input == null){
 
65
                Console.WriteLine ("No video input device");
 
66
                return false;
 
67
        }
 
68
        session.AddInput (input);
 
69
        
 
70
        // create a VideoDataOutput and add it to the sesion
 
71
        var output = new AVCaptureVideoDataOutput () {
 
72
                VideoSettings = new AVVideoSettings (CVPixelFormatType.CV32BGRA),
 
73
        
 
74
                // If you want to cap the frame rate at a given speed, in this sample: 15 frames per second
 
75
                MinFrameDuration = new CMTime (1, 15)
 
76
        };
 
77
        
 
78
        // configure the output
 
79
        queue = new MonoMac.CoreFoundation.DispatchQueue ("myQueue");
 
80
        outputRecorder = new OutputRecorder ();
 
81
        output.SetSampleBufferDelegateAndQueue (outputRecorder, queue);
 
82
        session.AddOutput (output);
 
83
        
 
84
        session.StartRunning ();
 
85
}
 
86
 
 
87
public class OutputRecorder : AVCaptureVideoDataOutputSampleBufferDelegate {
 
88
        public override void DidOutputSampleBuffer (AVCaptureOutput captureOutput, CMSampleBuffer sampleBuffer, AVCaptureConnection connection)
 
89
        {
 
90
                try {
 
91
                        var image = ImageFromSampleBuffer (sampleBuffer);
 
92
 
 
93
                        // Do something with the image, we just stuff it in our main view.
 
94
                        AppDelegate.ImageView.BeginInvokeOnMainThread (delegate {
 
95
                                AppDelegate.ImageView.Image = image;
 
96
                        });
 
97
 
 
98
                        //
 
99
                        // Although this looks innocent "Oh, he is just optimizing this case away"
 
100
                        // this is incredibly important to call on this callback, because the AVFoundation
 
101
                        // has a fixed number of buffers and if it runs out of free buffers, it will stop
 
102
                        // delivering frames.
 
103
                        //
 
104
                        sampleBuffer.Dispose ();
 
105
                } catch (Exception e){
 
106
                        Console.WriteLine (e);
 
107
                }
 
108
        }
 
109
 
 
110
        UIImage ImageFromSampleBuffer (CMSampleBuffer sampleBuffer)
 
111
        {
 
112
                // Get the CoreVideo image
 
113
                using (var pixelBuffer = sampleBuffer.GetImageBuffer () as CVPixelBuffer){
 
114
                        // Lock the base address
 
115
                        pixelBuffer.Lock (0);
 
116
                        // Get the number of bytes per row for the pixel buffer
 
117
                        var baseAddress = pixelBuffer.BaseAddress;
 
118
                        int bytesPerRow = pixelBuffer.BytesPerRow;
 
119
                        int width = pixelBuffer.Width;
 
120
                        int height = pixelBuffer.Height;
 
121
                        var flags = CGBitmapFlags.PremultipliedFirst | CGBitmapFlags.ByteOrder32Little;
 
122
                        // Create a CGImage on the RGB colorspace from the configured parameter above
 
123
                        using (var cs = CGColorSpace.CreateDeviceRGB ())
 
124
                        using (var context = new CGBitmapContext (baseAddress,width, height, 8, bytesPerRow, cs, (CGImageAlphaInfo) flags))
 
125
                        using (var cgImage = context.ToImage ()){
 
126
                                pixelBuffer.Unlock (0);
 
127
                                return UIImage.FromImage (cgImage);
 
128
                        }
 
129
                }
 
130
        }
 
131
}
 
132
 
 
133
        </code>
 
134
      </example>
 
135
    </remarks>
 
136
    <related type="sample" href="http://samples.xamarin.com/Samples/ByGuid?guid=9fa28988-64fe-4365-b2b7-95542daf4f9b">avcaptureframes</related>
 
137
  </Docs>
 
138
  <Members>
 
139
    <Member MemberName=".ctor">
 
140
      <MemberSignature Language="C#" Value="public AVCaptureSession ();" />
 
141
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
 
142
      <MemberType>Constructor</MemberType>
 
143
      <AssemblyInfo>
 
144
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
145
      </AssemblyInfo>
 
146
      <Attributes>
 
147
        <Attribute>
 
148
          <AttributeName>MonoMac.Foundation.Export("init")</AttributeName>
 
149
        </Attribute>
 
150
        <Attribute>
 
151
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
152
        </Attribute>
 
153
      </Attributes>
 
154
      <Parameters />
 
155
      <Docs>
 
156
        <summary>Default constructor that initializes a new instance of this class with no parameters.</summary>
 
157
        <remarks>
 
158
        </remarks>
 
159
      </Docs>
 
160
    </Member>
 
161
    <Member MemberName=".ctor">
 
162
      <MemberSignature Language="C#" Value="public AVCaptureSession (MonoMac.Foundation.NSCoder coder);" />
 
163
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class MonoMac.Foundation.NSCoder coder) cil managed" />
 
164
      <MemberType>Constructor</MemberType>
 
165
      <AssemblyInfo>
 
166
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
167
      </AssemblyInfo>
 
168
      <Attributes>
 
169
        <Attribute>
 
170
          <AttributeName>MonoMac.Foundation.Export("initWithCoder:")</AttributeName>
 
171
        </Attribute>
 
172
        <Attribute>
 
173
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
174
        </Attribute>
 
175
      </Attributes>
 
176
      <Parameters>
 
177
        <Parameter Name="coder" Type="MonoMac.Foundation.NSCoder" />
 
178
      </Parameters>
 
179
      <Docs>
 
180
        <param name="coder">The unarchiver object.</param>
 
181
        <summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
 
182
        <remarks>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization).</remarks>
 
183
      </Docs>
 
184
    </Member>
 
185
    <Member MemberName=".ctor">
 
186
      <MemberSignature Language="C#" Value="public AVCaptureSession (MonoMac.Foundation.NSObjectFlag t);" />
 
187
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class MonoMac.Foundation.NSObjectFlag t) cil managed" />
 
188
      <MemberType>Constructor</MemberType>
 
189
      <AssemblyInfo>
 
190
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
191
      </AssemblyInfo>
 
192
      <Attributes>
 
193
        <Attribute>
 
194
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
195
        </Attribute>
 
196
      </Attributes>
 
197
      <Parameters>
 
198
        <Parameter Name="t" Type="MonoMac.Foundation.NSObjectFlag" />
 
199
      </Parameters>
 
200
      <Docs>
 
201
        <param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
 
202
        <summary>Constructor to call on derived classes when the derived class has an [Export] constructor.</summary>
 
203
        <remarks>
 
204
          <para>This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:</para>
 
205
          <example>
 
206
            <code lang="C#">
 
207
public class MyClass : BaseClass {
 
208
    [Export ("initWithFoo:")]
 
209
    public MyClass (string foo) : base (NSObjectFlag.Empty)
 
210
    {
 
211
        ...
 
212
    }
 
213
</code>
 
214
          </example>
 
215
        </remarks>
 
216
      </Docs>
 
217
    </Member>
 
218
    <Member MemberName=".ctor">
 
219
      <MemberSignature Language="C#" Value="public AVCaptureSession (IntPtr handle);" />
 
220
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
 
221
      <MemberType>Constructor</MemberType>
 
222
      <AssemblyInfo>
 
223
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
224
      </AssemblyInfo>
 
225
      <Attributes>
 
226
        <Attribute>
 
227
          <AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
 
228
        </Attribute>
 
229
      </Attributes>
 
230
      <Parameters>
 
231
        <Parameter Name="handle" Type="System.IntPtr" />
 
232
      </Parameters>
 
233
      <Docs>
 
234
        <param name="handle">Pointer (handle) to the unmanaged object.</param>
 
235
        <summary>A constructor used when creating managed representations of unmanaged objects;  Called by the runtime.</summary>
 
236
        <remarks>
 
237
          <para>This constructor is invoked by the runtime infrastructure (<see cref="M:MonoMac.ObjCRuntime.GetNSObject (System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object.    You should not invoke this method directly, instead you should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
 
238
        </remarks>
 
239
      </Docs>
 
240
    </Member>
 
241
    <Member MemberName="AddInput">
 
242
      <MemberSignature Language="C#" Value="public virtual void AddInput (MonoMac.AVFoundation.AVCaptureInput input);" />
 
243
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void AddInput(class MonoMac.AVFoundation.AVCaptureInput input) cil managed" />
 
244
      <MemberType>Method</MemberType>
 
245
      <AssemblyInfo>
 
246
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
247
      </AssemblyInfo>
 
248
      <Attributes>
 
249
        <Attribute>
 
250
          <AttributeName>MonoMac.Foundation.Export("addInput:")</AttributeName>
 
251
        </Attribute>
 
252
      </Attributes>
 
253
      <ReturnValue>
 
254
        <ReturnType>System.Void</ReturnType>
 
255
      </ReturnValue>
 
256
      <Parameters>
 
257
        <Parameter Name="input" Type="MonoMac.AVFoundation.AVCaptureInput" />
 
258
      </Parameters>
 
259
      <Docs>
 
260
        <param name="input">The AVCaptureInput to add to the session</param>
 
261
        <summary>Adds an input to the Capture Session</summary>
 
262
        <remarks>To be added.</remarks>
 
263
      </Docs>
 
264
    </Member>
 
265
    <Member MemberName="AddOutput">
 
266
      <MemberSignature Language="C#" Value="public virtual void AddOutput (MonoMac.AVFoundation.AVCaptureOutput output);" />
 
267
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void AddOutput(class MonoMac.AVFoundation.AVCaptureOutput output) cil managed" />
 
268
      <MemberType>Method</MemberType>
 
269
      <AssemblyInfo>
 
270
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
271
      </AssemblyInfo>
 
272
      <Attributes>
 
273
        <Attribute>
 
274
          <AttributeName>MonoMac.Foundation.Export("addOutput:")</AttributeName>
 
275
        </Attribute>
 
276
      </Attributes>
 
277
      <ReturnValue>
 
278
        <ReturnType>System.Void</ReturnType>
 
279
      </ReturnValue>
 
280
      <Parameters>
 
281
        <Parameter Name="output" Type="MonoMac.AVFoundation.AVCaptureOutput" />
 
282
      </Parameters>
 
283
      <Docs>
 
284
        <param name="output">To be added.</param>
 
285
        <summary>Adds an output to the capture session.</summary>
 
286
        <remarks>To be added.</remarks>
 
287
      </Docs>
 
288
    </Member>
 
289
    <Member MemberName="BeginConfiguration">
 
290
      <MemberSignature Language="C#" Value="public virtual void BeginConfiguration ();" />
 
291
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void BeginConfiguration() cil managed" />
 
292
      <MemberType>Method</MemberType>
 
293
      <AssemblyInfo>
 
294
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
295
      </AssemblyInfo>
 
296
      <Attributes>
 
297
        <Attribute>
 
298
          <AttributeName>MonoMac.Foundation.Export("beginConfiguration")</AttributeName>
 
299
        </Attribute>
 
300
      </Attributes>
 
301
      <ReturnValue>
 
302
        <ReturnType>System.Void</ReturnType>
 
303
      </ReturnValue>
 
304
      <Parameters />
 
305
      <Docs>
 
306
        <summary>Initiates a transaction to change the configuration of the Capture Session.</summary>
 
307
        <remarks>To be added.</remarks>
 
308
      </Docs>
 
309
    </Member>
 
310
    <Member MemberName="CanAddInput">
 
311
      <MemberSignature Language="C#" Value="public virtual bool CanAddInput (MonoMac.AVFoundation.AVCaptureInput input);" />
 
312
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanAddInput(class MonoMac.AVFoundation.AVCaptureInput input) cil managed" />
 
313
      <MemberType>Method</MemberType>
 
314
      <AssemblyInfo>
 
315
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
316
      </AssemblyInfo>
 
317
      <Attributes>
 
318
        <Attribute>
 
319
          <AttributeName>MonoMac.Foundation.Export("canAddInput:")</AttributeName>
 
320
        </Attribute>
 
321
      </Attributes>
 
322
      <ReturnValue>
 
323
        <ReturnType>System.Boolean</ReturnType>
 
324
      </ReturnValue>
 
325
      <Parameters>
 
326
        <Parameter Name="input" Type="MonoMac.AVFoundation.AVCaptureInput" />
 
327
      </Parameters>
 
328
      <Docs>
 
329
        <param name="input">To be added.</param>
 
330
        <summary>Returns whether the given input can be added to the session.</summary>
 
331
        <returns>To be added.</returns>
 
332
        <remarks>To be added.</remarks>
 
333
      </Docs>
 
334
    </Member>
 
335
    <Member MemberName="CanAddOutput">
 
336
      <MemberSignature Language="C#" Value="public virtual bool CanAddOutput (MonoMac.AVFoundation.AVCaptureOutput output);" />
 
337
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanAddOutput(class MonoMac.AVFoundation.AVCaptureOutput output) cil managed" />
 
338
      <MemberType>Method</MemberType>
 
339
      <AssemblyInfo>
 
340
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
341
      </AssemblyInfo>
 
342
      <Attributes>
 
343
        <Attribute>
 
344
          <AttributeName>MonoMac.Foundation.Export("canAddOutput:")</AttributeName>
 
345
        </Attribute>
 
346
      </Attributes>
 
347
      <ReturnValue>
 
348
        <ReturnType>System.Boolean</ReturnType>
 
349
      </ReturnValue>
 
350
      <Parameters>
 
351
        <Parameter Name="output" Type="MonoMac.AVFoundation.AVCaptureOutput" />
 
352
      </Parameters>
 
353
      <Docs>
 
354
        <param name="output">To be added.</param>
 
355
        <summary>Returns whether the given input can be added to the session.</summary>
 
356
        <returns>To be added.</returns>
 
357
        <remarks>To be added.</remarks>
 
358
      </Docs>
 
359
    </Member>
 
360
    <Member MemberName="CanSetSessionPreset">
 
361
      <MemberSignature Language="C#" Value="public virtual bool CanSetSessionPreset (MonoMac.Foundation.NSString preset);" />
 
362
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanSetSessionPreset(class MonoMac.Foundation.NSString preset) cil managed" />
 
363
      <MemberType>Method</MemberType>
 
364
      <AssemblyInfo>
 
365
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
366
      </AssemblyInfo>
 
367
      <Attributes>
 
368
        <Attribute>
 
369
          <AttributeName>MonoMac.Foundation.Export("canSetSessionPreset:")</AttributeName>
 
370
        </Attribute>
 
371
      </Attributes>
 
372
      <ReturnValue>
 
373
        <ReturnType>System.Boolean</ReturnType>
 
374
      </ReturnValue>
 
375
      <Parameters>
 
376
        <Parameter Name="preset" Type="MonoMac.Foundation.NSString" />
 
377
      </Parameters>
 
378
      <Docs>
 
379
        <param name="preset">To be added.</param>
 
380
        <summary>To be added.</summary>
 
381
        <returns>To be added.</returns>
 
382
        <remarks>To be added.</remarks>
 
383
      </Docs>
 
384
    </Member>
 
385
    <Member MemberName="ClassHandle">
 
386
      <MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
 
387
      <MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
 
388
      <MemberType>Property</MemberType>
 
389
      <AssemblyInfo>
 
390
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
391
      </AssemblyInfo>
 
392
      <ReturnValue>
 
393
        <ReturnType>System.IntPtr</ReturnType>
 
394
      </ReturnValue>
 
395
      <Docs>
 
396
        <summary>The handle for this class.</summary>
 
397
        <value>The pointer to the Objective-C class.</value>
 
398
        <remarks>Each MonoMac class mirrors an unmanaged Objective-C class.   This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.</remarks>
 
399
      </Docs>
 
400
    </Member>
 
401
    <Member MemberName="CommitConfiguration">
 
402
      <MemberSignature Language="C#" Value="public virtual void CommitConfiguration ();" />
 
403
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void CommitConfiguration() cil managed" />
 
404
      <MemberType>Method</MemberType>
 
405
      <AssemblyInfo>
 
406
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
407
      </AssemblyInfo>
 
408
      <Attributes>
 
409
        <Attribute>
 
410
          <AttributeName>MonoMac.Foundation.Export("commitConfiguration")</AttributeName>
 
411
        </Attribute>
 
412
      </Attributes>
 
413
      <ReturnValue>
 
414
        <ReturnType>System.Void</ReturnType>
 
415
      </ReturnValue>
 
416
      <Parameters />
 
417
      <Docs>
 
418
        <summary>Applies atomically all the configuration changes that were made to the Capture Session since BeginConfiguration.</summary>
 
419
        <remarks>To be added.</remarks>
 
420
      </Docs>
 
421
    </Member>
 
422
    <Member MemberName="DidStartRunningNotification">
 
423
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString DidStartRunningNotification { get; }" />
 
424
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString DidStartRunningNotification" />
 
425
      <MemberType>Property</MemberType>
 
426
      <AssemblyInfo>
 
427
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
428
      </AssemblyInfo>
 
429
      <ReturnValue>
 
430
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
431
      </ReturnValue>
 
432
      <Docs>
 
433
        <summary>Notification constant for DidStartRunning</summary>
 
434
        <value>NSString constant, should be used as a token to NSNotificationCenter.</value>
 
435
        <remarks>
 
436
          <para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification.   This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content.    The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
 
437
          <para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:AVCaptureSession+Notifications" />.<see cref="M:AVCaptureSession+Notifications.ObserveDidStartRunning" /> method which offers strongly typed access to the parameters of the notification.</para>
 
438
          <para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
 
439
          <example>
 
440
            <code lang="c#">
 
441
//
 
442
// Lambda style
 
443
//
 
444
 
 
445
// listening
 
446
notification = AVCaptureSession.Notifications.ObserveDidStartRunning ((sender, args) =&gt; {
 
447
    /* Access strongly typed args */
 
448
    Console.WriteLine ("Notification: {0}", args.Notification);
 
449
});
 
450
 
 
451
// To stop listening:
 
452
notification.Dispose ();
 
453
 
 
454
//
 
455
// Method style
 
456
//
 
457
NSObject notification;
 
458
void Callback (object sender, DidStartRunning args)
 
459
{
 
460
    // Access strongly typed args
 
461
    Console.WriteLine ("Notification: {0}", args.Notification);
 
462
}
 
463
 
 
464
void Setup ()
 
465
{
 
466
    notification = AVCaptureSession.Notifications.ObserveDidStartRunning (Callback);
 
467
}
 
468
 
 
469
void Teardown ()
 
470
{
 
471
    notification.Dispose ();
 
472
}</code>
 
473
          </example>
 
474
          <para>The following example shows how to use the notification with the DefaultCenter API:</para>
 
475
          <example>
 
476
            <code lang="c#">
 
477
// Lambda style
 
478
NSNotificationCenter.DefaultCenter.AddObserver (
 
479
        AVCaptureSession.DidStartRunningNotification, (notification) =&gt; {Console.WriteLine ("Received the notification AVCaptureSession", notification); }
 
480
 
 
481
 
 
482
// Method style
 
483
void Callback (NSNotification notification)
 
484
{
 
485
    Console.WriteLine ("Received a notification AVCaptureSession", notification);
 
486
}
 
487
 
 
488
void Setup ()
 
489
{
 
490
    NSNotificationCenter.DefaultCenter.AddObserver (AVCaptureSession.DidStartRunningNotification, Callback);
 
491
}
 
492
</code>
 
493
          </example>
 
494
        </remarks>
 
495
      </Docs>
 
496
    </Member>
 
497
    <Member MemberName="DidStopRunningNotification">
 
498
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString DidStopRunningNotification { get; }" />
 
499
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString DidStopRunningNotification" />
 
500
      <MemberType>Property</MemberType>
 
501
      <AssemblyInfo>
 
502
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
503
      </AssemblyInfo>
 
504
      <ReturnValue>
 
505
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
506
      </ReturnValue>
 
507
      <Docs>
 
508
        <summary>Notification constant for DidStopRunning</summary>
 
509
        <value>NSString constant, should be used as a token to NSNotificationCenter.</value>
 
510
        <remarks>
 
511
          <para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification.   This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content.    The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
 
512
          <para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:AVCaptureSession+Notifications" />.<see cref="M:AVCaptureSession+Notifications.ObserveDidStopRunning" /> method which offers strongly typed access to the parameters of the notification.</para>
 
513
          <para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
 
514
          <example>
 
515
            <code lang="c#">
 
516
//
 
517
// Lambda style
 
518
//
 
519
 
 
520
// listening
 
521
notification = AVCaptureSession.Notifications.ObserveDidStopRunning ((sender, args) =&gt; {
 
522
    /* Access strongly typed args */
 
523
    Console.WriteLine ("Notification: {0}", args.Notification);
 
524
});
 
525
 
 
526
// To stop listening:
 
527
notification.Dispose ();
 
528
 
 
529
//
 
530
// Method style
 
531
//
 
532
NSObject notification;
 
533
void Callback (object sender, DidStopRunning args)
 
534
{
 
535
    // Access strongly typed args
 
536
    Console.WriteLine ("Notification: {0}", args.Notification);
 
537
}
 
538
 
 
539
void Setup ()
 
540
{
 
541
    notification = AVCaptureSession.Notifications.ObserveDidStopRunning (Callback);
 
542
}
 
543
 
 
544
void Teardown ()
 
545
{
 
546
    notification.Dispose ();
 
547
}</code>
 
548
          </example>
 
549
          <para>The following example shows how to use the notification with the DefaultCenter API:</para>
 
550
          <example>
 
551
            <code lang="c#">
 
552
// Lambda style
 
553
NSNotificationCenter.DefaultCenter.AddObserver (
 
554
        AVCaptureSession.DidStopRunningNotification, (notification) =&gt; {Console.WriteLine ("Received the notification AVCaptureSession", notification); }
 
555
 
 
556
 
 
557
// Method style
 
558
void Callback (NSNotification notification)
 
559
{
 
560
    Console.WriteLine ("Received a notification AVCaptureSession", notification);
 
561
}
 
562
 
 
563
void Setup ()
 
564
{
 
565
    NSNotificationCenter.DefaultCenter.AddObserver (AVCaptureSession.DidStopRunningNotification, Callback);
 
566
}
 
567
</code>
 
568
          </example>
 
569
        </remarks>
 
570
      </Docs>
 
571
    </Member>
 
572
    <Member MemberName="Dispose">
 
573
      <MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
 
574
      <MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
 
575
      <MemberType>Method</MemberType>
 
576
      <AssemblyInfo>
 
577
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
578
      </AssemblyInfo>
 
579
      <ReturnValue>
 
580
        <ReturnType>System.Void</ReturnType>
 
581
      </ReturnValue>
 
582
      <Parameters>
 
583
        <Parameter Name="disposing" Type="System.Boolean" />
 
584
      </Parameters>
 
585
      <Docs>
 
586
        <param name="disposing">
 
587
          <para>If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources;   If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</para>
 
588
        </param>
 
589
        <summary>Releases the resources used by the AVCaptureSession object.</summary>
 
590
        <remarks>
 
591
          <para>This Dispose method releases the resources used by the AVCaptureSession class.</para>
 
592
          <para>This method is called by both the Dispose() method and the object finalizer (Finalize).    When invoked by the Dispose method, the parameter disposting <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released;  when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
 
593
          <para>Calling the Dispose method when you are finished using the AVCaptureSession ensures that all external resources used by this managed object are released as soon as possible.  Once you have invoked the Dispose method, the object is no longer useful and you should no longer make any calls to it.</para>
 
594
          <para>  For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at http://msdn.microsoft.com/en-us/library/fs2xkftw.aspx</para>
 
595
        </remarks>
 
596
      </Docs>
 
597
    </Member>
 
598
    <Member MemberName="ErrorKey">
 
599
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString ErrorKey { get; }" />
 
600
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString ErrorKey" />
 
601
      <MemberType>Property</MemberType>
 
602
      <AssemblyInfo>
 
603
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
604
      </AssemblyInfo>
 
605
      <ReturnValue>
 
606
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
607
      </ReturnValue>
 
608
      <Docs>
 
609
        <summary>Represents the value associated with the constant AVCaptureSessionErrorKey</summary>
 
610
        <value>
 
611
        </value>
 
612
        <remarks>To be added.</remarks>
 
613
      </Docs>
 
614
    </Member>
 
615
    <Member MemberName="Inputs">
 
616
      <MemberSignature Language="C#" Value="public virtual MonoMac.AVFoundation.AVCaptureInput[] Inputs { get; }" />
 
617
      <MemberSignature Language="ILAsm" Value=".property instance class MonoMac.AVFoundation.AVCaptureInput[] Inputs" />
 
618
      <MemberType>Property</MemberType>
 
619
      <AssemblyInfo>
 
620
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
621
      </AssemblyInfo>
 
622
      <Attributes>
 
623
        <Attribute>
 
624
          <AttributeName>get: MonoMac.Foundation.Export("inputs")</AttributeName>
 
625
        </Attribute>
 
626
      </Attributes>
 
627
      <ReturnValue>
 
628
        <ReturnType>MonoMac.AVFoundation.AVCaptureInput[]</ReturnType>
 
629
      </ReturnValue>
 
630
      <Docs>
 
631
        <summary>Inputs to the capture session.</summary>
 
632
        <value>To be added.</value>
 
633
        <remarks>To be added.</remarks>
 
634
      </Docs>
 
635
    </Member>
 
636
    <Member MemberName="Interrupted">
 
637
      <MemberSignature Language="C#" Value="public virtual bool Interrupted { get; }" />
 
638
      <MemberSignature Language="ILAsm" Value=".property instance bool Interrupted" />
 
639
      <MemberType>Property</MemberType>
 
640
      <AssemblyInfo>
 
641
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
642
      </AssemblyInfo>
 
643
      <Attributes>
 
644
        <Attribute>
 
645
          <AttributeName>get: MonoMac.Foundation.Export("isInterrupted")</AttributeName>
 
646
        </Attribute>
 
647
      </Attributes>
 
648
      <ReturnValue>
 
649
        <ReturnType>System.Boolean</ReturnType>
 
650
      </ReturnValue>
 
651
      <Docs>
 
652
        <summary>Whether the session has been interrupted.</summary>
 
653
        <value>To be added.</value>
 
654
        <remarks>To be added.</remarks>
 
655
      </Docs>
 
656
    </Member>
 
657
    <Member MemberName="InterruptionEndedNotification">
 
658
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString InterruptionEndedNotification { get; }" />
 
659
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString InterruptionEndedNotification" />
 
660
      <MemberType>Property</MemberType>
 
661
      <AssemblyInfo>
 
662
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
663
      </AssemblyInfo>
 
664
      <ReturnValue>
 
665
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
666
      </ReturnValue>
 
667
      <Docs>
 
668
        <summary>Notification constant for InterruptionEnded</summary>
 
669
        <value>NSString constant, should be used as a token to NSNotificationCenter.</value>
 
670
        <remarks>
 
671
          <para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification.   This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content.    The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
 
672
          <para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:AVCaptureSession+Notifications" />.<see cref="M:AVCaptureSession+Notifications.ObserveInterruptionEnded" /> method which offers strongly typed access to the parameters of the notification.</para>
 
673
          <para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
 
674
          <example>
 
675
            <code lang="c#">
 
676
//
 
677
// Lambda style
 
678
//
 
679
 
 
680
// listening
 
681
notification = AVCaptureSession.Notifications.ObserveInterruptionEnded ((sender, args) =&gt; {
 
682
    /* Access strongly typed args */
 
683
    Console.WriteLine ("Notification: {0}", args.Notification);
 
684
});
 
685
 
 
686
// To stop listening:
 
687
notification.Dispose ();
 
688
 
 
689
//
 
690
// Method style
 
691
//
 
692
NSObject notification;
 
693
void Callback (object sender, InterruptionEnded args)
 
694
{
 
695
    // Access strongly typed args
 
696
    Console.WriteLine ("Notification: {0}", args.Notification);
 
697
}
 
698
 
 
699
void Setup ()
 
700
{
 
701
    notification = AVCaptureSession.Notifications.ObserveInterruptionEnded (Callback);
 
702
}
 
703
 
 
704
void Teardown ()
 
705
{
 
706
    notification.Dispose ();
 
707
}</code>
 
708
          </example>
 
709
          <para>The following example shows how to use the notification with the DefaultCenter API:</para>
 
710
          <example>
 
711
            <code lang="c#">
 
712
// Lambda style
 
713
NSNotificationCenter.DefaultCenter.AddObserver (
 
714
        AVCaptureSession.InterruptionEndedNotification, (notification) =&gt; {Console.WriteLine ("Received the notification AVCaptureSession", notification); }
 
715
 
 
716
 
 
717
// Method style
 
718
void Callback (NSNotification notification)
 
719
{
 
720
    Console.WriteLine ("Received a notification AVCaptureSession", notification);
 
721
}
 
722
 
 
723
void Setup ()
 
724
{
 
725
    NSNotificationCenter.DefaultCenter.AddObserver (AVCaptureSession.InterruptionEndedNotification, Callback);
 
726
}
 
727
</code>
 
728
          </example>
 
729
        </remarks>
 
730
      </Docs>
 
731
    </Member>
 
732
    <Member MemberName="Outputs">
 
733
      <MemberSignature Language="C#" Value="public virtual MonoMac.AVFoundation.AVCaptureOutput[] Outputs { get; }" />
 
734
      <MemberSignature Language="ILAsm" Value=".property instance class MonoMac.AVFoundation.AVCaptureOutput[] Outputs" />
 
735
      <MemberType>Property</MemberType>
 
736
      <AssemblyInfo>
 
737
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
738
      </AssemblyInfo>
 
739
      <Attributes>
 
740
        <Attribute>
 
741
          <AttributeName>get: MonoMac.Foundation.Export("outputs")</AttributeName>
 
742
        </Attribute>
 
743
      </Attributes>
 
744
      <ReturnValue>
 
745
        <ReturnType>MonoMac.AVFoundation.AVCaptureOutput[]</ReturnType>
 
746
      </ReturnValue>
 
747
      <Docs>
 
748
        <summary>Outputs for the capture session.</summary>
 
749
        <value>To be added.</value>
 
750
        <remarks>To be added.</remarks>
 
751
      </Docs>
 
752
    </Member>
 
753
    <Member MemberName="Preset1280x720">
 
754
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString Preset1280x720 { get; }" />
 
755
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString Preset1280x720" />
 
756
      <MemberType>Property</MemberType>
 
757
      <AssemblyInfo>
 
758
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
759
      </AssemblyInfo>
 
760
      <ReturnValue>
 
761
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
762
      </ReturnValue>
 
763
      <Docs>
 
764
        <summary>Represents the value associated with the constant AVCaptureSessionPreset1280x720</summary>
 
765
        <value>
 
766
        </value>
 
767
        <remarks>To be added.</remarks>
 
768
      </Docs>
 
769
    </Member>
 
770
    <Member MemberName="Preset352x288">
 
771
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString Preset352x288 { get; }" />
 
772
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString Preset352x288" />
 
773
      <MemberType>Property</MemberType>
 
774
      <AssemblyInfo>
 
775
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
776
      </AssemblyInfo>
 
777
      <ReturnValue>
 
778
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
779
      </ReturnValue>
 
780
      <Docs>
 
781
        <summary>Represents the value associated with the constant AVCaptureSessionPreset352x288</summary>
 
782
        <value>
 
783
        </value>
 
784
        <remarks>To be added.</remarks>
 
785
      </Docs>
 
786
    </Member>
 
787
    <Member MemberName="Preset640x480">
 
788
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString Preset640x480 { get; }" />
 
789
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString Preset640x480" />
 
790
      <MemberType>Property</MemberType>
 
791
      <AssemblyInfo>
 
792
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
793
      </AssemblyInfo>
 
794
      <ReturnValue>
 
795
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
796
      </ReturnValue>
 
797
      <Docs>
 
798
        <summary>Represents the value associated with the constant AVCaptureSessionPreset640x480</summary>
 
799
        <value>
 
800
        </value>
 
801
        <remarks>To be added.</remarks>
 
802
      </Docs>
 
803
    </Member>
 
804
    <Member MemberName="PresetHigh">
 
805
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString PresetHigh { get; }" />
 
806
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString PresetHigh" />
 
807
      <MemberType>Property</MemberType>
 
808
      <AssemblyInfo>
 
809
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
810
      </AssemblyInfo>
 
811
      <ReturnValue>
 
812
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
813
      </ReturnValue>
 
814
      <Docs>
 
815
        <summary>Represents the value associated with the constant AVCaptureSessionPresetHigh</summary>
 
816
        <value>
 
817
        </value>
 
818
        <remarks>To be added.</remarks>
 
819
      </Docs>
 
820
    </Member>
 
821
    <Member MemberName="PresetiFrame1280x720">
 
822
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString PresetiFrame1280x720 { get; }" />
 
823
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString PresetiFrame1280x720" />
 
824
      <MemberType>Property</MemberType>
 
825
      <AssemblyInfo>
 
826
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
827
      </AssemblyInfo>
 
828
      <ReturnValue>
 
829
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
830
      </ReturnValue>
 
831
      <Docs>
 
832
        <summary>Represents the value associated with the constant AVCaptureSessionPresetiFrame1280x720</summary>
 
833
        <value>
 
834
        </value>
 
835
        <remarks>To be added.</remarks>
 
836
      </Docs>
 
837
    </Member>
 
838
    <Member MemberName="PresetiFrame960x540">
 
839
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString PresetiFrame960x540 { get; }" />
 
840
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString PresetiFrame960x540" />
 
841
      <MemberType>Property</MemberType>
 
842
      <AssemblyInfo>
 
843
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
844
      </AssemblyInfo>
 
845
      <ReturnValue>
 
846
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
847
      </ReturnValue>
 
848
      <Docs>
 
849
        <summary>Represents the value associated with the constant AVCaptureSessionPresetiFrame960x540</summary>
 
850
        <value>
 
851
        </value>
 
852
        <remarks>To be added.</remarks>
 
853
      </Docs>
 
854
    </Member>
 
855
    <Member MemberName="PresetLow">
 
856
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString PresetLow { get; }" />
 
857
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString PresetLow" />
 
858
      <MemberType>Property</MemberType>
 
859
      <AssemblyInfo>
 
860
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
861
      </AssemblyInfo>
 
862
      <ReturnValue>
 
863
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
864
      </ReturnValue>
 
865
      <Docs>
 
866
        <summary>Represents the value associated with the constant AVCaptureSessionPresetLow</summary>
 
867
        <value>
 
868
        </value>
 
869
        <remarks>To be added.</remarks>
 
870
      </Docs>
 
871
    </Member>
 
872
    <Member MemberName="PresetMedium">
 
873
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString PresetMedium { get; }" />
 
874
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString PresetMedium" />
 
875
      <MemberType>Property</MemberType>
 
876
      <AssemblyInfo>
 
877
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
878
      </AssemblyInfo>
 
879
      <ReturnValue>
 
880
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
881
      </ReturnValue>
 
882
      <Docs>
 
883
        <summary>Represents the value associated with the constant AVCaptureSessionPresetMedium</summary>
 
884
        <value>
 
885
        </value>
 
886
        <remarks>To be added.</remarks>
 
887
      </Docs>
 
888
    </Member>
 
889
    <Member MemberName="PresetPhoto">
 
890
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString PresetPhoto { get; }" />
 
891
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString PresetPhoto" />
 
892
      <MemberType>Property</MemberType>
 
893
      <AssemblyInfo>
 
894
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
895
      </AssemblyInfo>
 
896
      <ReturnValue>
 
897
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
898
      </ReturnValue>
 
899
      <Docs>
 
900
        <summary>Represents the value associated with the constant AVCaptureSessionPresetPhoto</summary>
 
901
        <value>
 
902
        </value>
 
903
        <remarks>To be added.</remarks>
 
904
      </Docs>
 
905
    </Member>
 
906
    <Member MemberName="RemoveInput">
 
907
      <MemberSignature Language="C#" Value="public virtual void RemoveInput (MonoMac.AVFoundation.AVCaptureInput input);" />
 
908
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void RemoveInput(class MonoMac.AVFoundation.AVCaptureInput input) cil managed" />
 
909
      <MemberType>Method</MemberType>
 
910
      <AssemblyInfo>
 
911
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
912
      </AssemblyInfo>
 
913
      <Attributes>
 
914
        <Attribute>
 
915
          <AttributeName>MonoMac.Foundation.Export("removeInput:")</AttributeName>
 
916
        </Attribute>
 
917
      </Attributes>
 
918
      <ReturnValue>
 
919
        <ReturnType>System.Void</ReturnType>
 
920
      </ReturnValue>
 
921
      <Parameters>
 
922
        <Parameter Name="input" Type="MonoMac.AVFoundation.AVCaptureInput" />
 
923
      </Parameters>
 
924
      <Docs>
 
925
        <param name="input">To be added.</param>
 
926
        <summary>Removes the specified input source.</summary>
 
927
        <remarks>To be added.</remarks>
 
928
      </Docs>
 
929
    </Member>
 
930
    <Member MemberName="RemoveOutput">
 
931
      <MemberSignature Language="C#" Value="public virtual void RemoveOutput (MonoMac.AVFoundation.AVCaptureOutput output);" />
 
932
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void RemoveOutput(class MonoMac.AVFoundation.AVCaptureOutput output) cil managed" />
 
933
      <MemberType>Method</MemberType>
 
934
      <AssemblyInfo>
 
935
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
936
      </AssemblyInfo>
 
937
      <Attributes>
 
938
        <Attribute>
 
939
          <AttributeName>MonoMac.Foundation.Export("removeOutput:")</AttributeName>
 
940
        </Attribute>
 
941
      </Attributes>
 
942
      <ReturnValue>
 
943
        <ReturnType>System.Void</ReturnType>
 
944
      </ReturnValue>
 
945
      <Parameters>
 
946
        <Parameter Name="output" Type="MonoMac.AVFoundation.AVCaptureOutput" />
 
947
      </Parameters>
 
948
      <Docs>
 
949
        <param name="output">To be added.</param>
 
950
        <summary>Removes the specified output.</summary>
 
951
        <remarks>To be added.</remarks>
 
952
      </Docs>
 
953
    </Member>
 
954
    <Member MemberName="Running">
 
955
      <MemberSignature Language="C#" Value="public virtual bool Running { get; }" />
 
956
      <MemberSignature Language="ILAsm" Value=".property instance bool Running" />
 
957
      <MemberType>Property</MemberType>
 
958
      <AssemblyInfo>
 
959
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
960
      </AssemblyInfo>
 
961
      <Attributes>
 
962
        <Attribute>
 
963
          <AttributeName>get: MonoMac.Foundation.Export("isRunning")</AttributeName>
 
964
        </Attribute>
 
965
      </Attributes>
 
966
      <ReturnValue>
 
967
        <ReturnType>System.Boolean</ReturnType>
 
968
      </ReturnValue>
 
969
      <Docs>
 
970
        <summary>Whether the capture session is currently running.</summary>
 
971
        <value>To be added.</value>
 
972
        <remarks>To be added.</remarks>
 
973
      </Docs>
 
974
    </Member>
 
975
    <Member MemberName="RuntimeErrorNotification">
 
976
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString RuntimeErrorNotification { get; }" />
 
977
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString RuntimeErrorNotification" />
 
978
      <MemberType>Property</MemberType>
 
979
      <AssemblyInfo>
 
980
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
981
      </AssemblyInfo>
 
982
      <ReturnValue>
 
983
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
984
      </ReturnValue>
 
985
      <Docs>
 
986
        <summary>Notification constant for RuntimeError</summary>
 
987
        <value>NSString constant, should be used as a token to NSNotificationCenter.</value>
 
988
        <remarks>
 
989
          <para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification.   This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content.    The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
 
990
          <para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:AVCaptureSession+Notifications" />.<see cref="M:AVCaptureSession+Notifications.ObserveRuntimeError" /> method which offers strongly typed access to the parameters of the notification.</para>
 
991
          <para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
 
992
          <example>
 
993
            <code lang="c#">
 
994
//
 
995
// Lambda style
 
996
//
 
997
 
 
998
// listening
 
999
notification = AVCaptureSession.Notifications.ObserveRuntimeError ((sender, args) =&gt; {
 
1000
    /* Access strongly typed args */
 
1001
    Console.WriteLine ("Notification: {0}", args.Notification);
 
1002
 
 
1003
    Console.WriteLine ("Error", args.Error);
 
1004
});
 
1005
 
 
1006
// To stop listening:
 
1007
notification.Dispose ();
 
1008
 
 
1009
//
 
1010
// Method style
 
1011
//
 
1012
NSObject notification;
 
1013
void Callback (object sender, RuntimeError args)
 
1014
{
 
1015
    // Access strongly typed args
 
1016
    Console.WriteLine ("Notification: {0}", args.Notification);
 
1017
 
 
1018
    Console.WriteLine ("Error", args.Error);
 
1019
}
 
1020
 
 
1021
void Setup ()
 
1022
{
 
1023
    notification = AVCaptureSession.Notifications.ObserveRuntimeError (Callback);
 
1024
}
 
1025
 
 
1026
void Teardown ()
 
1027
{
 
1028
    notification.Dispose ();
 
1029
}</code>
 
1030
          </example>
 
1031
          <para>The following example shows how to use the notification with the DefaultCenter API:</para>
 
1032
          <example>
 
1033
            <code lang="c#">
 
1034
// Lambda style
 
1035
NSNotificationCenter.DefaultCenter.AddObserver (
 
1036
        AVCaptureSession.RuntimeErrorNotification, (notification) =&gt; {Console.WriteLine ("Received the notification AVCaptureSession", notification); }
 
1037
 
 
1038
 
 
1039
// Method style
 
1040
void Callback (NSNotification notification)
 
1041
{
 
1042
    Console.WriteLine ("Received a notification AVCaptureSession", notification);
 
1043
}
 
1044
 
 
1045
void Setup ()
 
1046
{
 
1047
    NSNotificationCenter.DefaultCenter.AddObserver (AVCaptureSession.RuntimeErrorNotification, Callback);
 
1048
}
 
1049
</code>
 
1050
          </example>
 
1051
        </remarks>
 
1052
      </Docs>
 
1053
    </Member>
 
1054
    <Member MemberName="SessionPreset">
 
1055
      <MemberSignature Language="C#" Value="public virtual MonoMac.Foundation.NSString SessionPreset { get; set; }" />
 
1056
      <MemberSignature Language="ILAsm" Value=".property instance class MonoMac.Foundation.NSString SessionPreset" />
 
1057
      <MemberType>Property</MemberType>
 
1058
      <AssemblyInfo>
 
1059
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
1060
      </AssemblyInfo>
 
1061
      <Attributes>
 
1062
        <Attribute>
 
1063
          <AttributeName>get: MonoMac.Foundation.Export("sessionPreset")</AttributeName>
 
1064
        </Attribute>
 
1065
        <Attribute>
 
1066
          <AttributeName>set: MonoMac.Foundation.Export("setSessionPreset:")</AttributeName>
 
1067
        </Attribute>
 
1068
      </Attributes>
 
1069
      <ReturnValue>
 
1070
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
1071
      </ReturnValue>
 
1072
      <Docs>
 
1073
        <summary>The session preset.</summary>
 
1074
        <value>To be added.</value>
 
1075
        <remarks>To be added.</remarks>
 
1076
      </Docs>
 
1077
    </Member>
 
1078
    <Member MemberName="StartRunning">
 
1079
      <MemberSignature Language="C#" Value="public virtual void StartRunning ();" />
 
1080
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void StartRunning() cil managed" />
 
1081
      <MemberType>Method</MemberType>
 
1082
      <AssemblyInfo>
 
1083
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
1084
      </AssemblyInfo>
 
1085
      <Attributes>
 
1086
        <Attribute>
 
1087
          <AttributeName>MonoMac.Foundation.Export("startRunning")</AttributeName>
 
1088
        </Attribute>
 
1089
      </Attributes>
 
1090
      <ReturnValue>
 
1091
        <ReturnType>System.Void</ReturnType>
 
1092
      </ReturnValue>
 
1093
      <Parameters />
 
1094
      <Docs>
 
1095
        <summary>Starts the flow of inputs and outputs.</summary>
 
1096
        <remarks>To be added.</remarks>
 
1097
      </Docs>
 
1098
    </Member>
 
1099
    <Member MemberName="StopRunning">
 
1100
      <MemberSignature Language="C#" Value="public virtual void StopRunning ();" />
 
1101
      <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void StopRunning() cil managed" />
 
1102
      <MemberType>Method</MemberType>
 
1103
      <AssemblyInfo>
 
1104
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
1105
      </AssemblyInfo>
 
1106
      <Attributes>
 
1107
        <Attribute>
 
1108
          <AttributeName>MonoMac.Foundation.Export("stopRunning")</AttributeName>
 
1109
        </Attribute>
 
1110
      </Attributes>
 
1111
      <ReturnValue>
 
1112
        <ReturnType>System.Void</ReturnType>
 
1113
      </ReturnValue>
 
1114
      <Parameters />
 
1115
      <Docs>
 
1116
        <summary>Stops the flow of inputs and outputs.</summary>
 
1117
        <remarks>To be added.</remarks>
 
1118
      </Docs>
 
1119
    </Member>
 
1120
    <Member MemberName="WasInterruptedNotification">
 
1121
      <MemberSignature Language="C#" Value="public static MonoMac.Foundation.NSString WasInterruptedNotification { get; }" />
 
1122
      <MemberSignature Language="ILAsm" Value=".property class MonoMac.Foundation.NSString WasInterruptedNotification" />
 
1123
      <MemberType>Property</MemberType>
 
1124
      <AssemblyInfo>
 
1125
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
 
1126
      </AssemblyInfo>
 
1127
      <ReturnValue>
 
1128
        <ReturnType>MonoMac.Foundation.NSString</ReturnType>
 
1129
      </ReturnValue>
 
1130
      <Docs>
 
1131
        <summary>Notification constant for WasInterrupted</summary>
 
1132
        <value>NSString constant, should be used as a token to NSNotificationCenter.</value>
 
1133
        <remarks>
 
1134
          <para id="tool-remark">This constant can be used with the <see cref="T:MonoTouch.Foundation.NSNotificationCenter" /> to register a listener for this notification.   This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content.    The 'notification' parameter to the callback contains extra information that is specific to the notification type.</para>
 
1135
          <para id="tool-remark">If you want to subscribe to this notification, you can use the convenience <see cref="T:AVCaptureSession+Notifications" />.<see cref="M:AVCaptureSession+Notifications.ObserveWasInterrupted" /> method which offers strongly typed access to the parameters of the notification.</para>
 
1136
          <para>The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:</para>
 
1137
          <example>
 
1138
            <code lang="c#">
 
1139
//
 
1140
// Lambda style
 
1141
//
 
1142
 
 
1143
// listening
 
1144
notification = AVCaptureSession.Notifications.ObserveWasInterrupted ((sender, args) =&gt; {
 
1145
    /* Access strongly typed args */
 
1146
    Console.WriteLine ("Notification: {0}", args.Notification);
 
1147
});
 
1148
 
 
1149
// To stop listening:
 
1150
notification.Dispose ();
 
1151
 
 
1152
//
 
1153
// Method style
 
1154
//
 
1155
NSObject notification;
 
1156
void Callback (object sender, WasInterrupted args)
 
1157
{
 
1158
    // Access strongly typed args
 
1159
    Console.WriteLine ("Notification: {0}", args.Notification);
 
1160
}
 
1161
 
 
1162
void Setup ()
 
1163
{
 
1164
    notification = AVCaptureSession.Notifications.ObserveWasInterrupted (Callback);
 
1165
}
 
1166
 
 
1167
void Teardown ()
 
1168
{
 
1169
    notification.Dispose ();
 
1170
}</code>
 
1171
          </example>
 
1172
          <para>The following example shows how to use the notification with the DefaultCenter API:</para>
 
1173
          <example>
 
1174
            <code lang="c#">
 
1175
// Lambda style
 
1176
NSNotificationCenter.DefaultCenter.AddObserver (
 
1177
        AVCaptureSession.WasInterruptedNotification, (notification) =&gt; {Console.WriteLine ("Received the notification AVCaptureSession", notification); }
 
1178
 
 
1179
 
 
1180
// Method style
 
1181
void Callback (NSNotification notification)
 
1182
{
 
1183
    Console.WriteLine ("Received a notification AVCaptureSession", notification);
 
1184
}
 
1185
 
 
1186
void Setup ()
 
1187
{
 
1188
    NSNotificationCenter.DefaultCenter.AddObserver (AVCaptureSession.WasInterruptedNotification, Callback);
 
1189
}
 
1190
</code>
 
1191
          </example>
 
1192
        </remarks>
 
1193
      </Docs>
 
1194
    </Member>
 
1195
  </Members>
 
1196
</Type>