Share via


AVCaptureDeviceInput.FromDevice Method

Definition

Overloads

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

Returns

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

error
NSError

Returns

Attributes

Applies to