AVCaptureDeviceInput.FromDevice Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FromDevice(AVCaptureDevice) |
Factory method to create an AVCaptureDeviceInput for the |
| FromDevice(AVCaptureDevice, NSError) |
FromDevice(AVCaptureDevice)
Factory method to create an AVCaptureDeviceInput for the device.
public static AVFoundation.AVCaptureDeviceInput? FromDevice(AVFoundation.AVCaptureDevice device);
static member FromDevice : AVFoundation.AVCaptureDevice -> AVFoundation.AVCaptureDeviceInput
Parameters
- device
- AVCaptureDevice
The capture device to create an input for.
Returns
A new AVCaptureDeviceInput for the specified device, or null on failure.
Applies to
FromDevice(AVCaptureDevice, NSError)
[Foundation.Export("deviceInputWithDevice:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static AVFoundation.AVCaptureDeviceInput? FromDevice(AVFoundation.AVCaptureDevice device, out Foundation.NSError error);
[<Foundation.Export("deviceInputWithDevice:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromDevice : AVFoundation.AVCaptureDevice * NSError -> AVFoundation.AVCaptureDeviceInput
Parameters
- device
- AVCaptureDevice
- error
- NSError
Returns
- Attributes