CameraSelectionFindCameraFacingOrDefault Method |
Queries the system for camera devices and returns the first camera that matches the given
camera facing preference. In case no camera matches, the first camera is returned.
Namespace: Scandit.BarcodePickerAssembly: Scandit.BarcodePicker (in Scandit.BarcodePicker.dll) Version: 4.16.0.0 (4.16.0.0)
Syntax public static Task<DeviceInformation> FindCameraFacingOrDefault(
CameraFacingPreference preference
)
Public Shared Function FindCameraFacingOrDefault (
preference As CameraFacingPreference
) As Task(Of DeviceInformation)
public:
static Task<DeviceInformation^>^ FindCameraFacingOrDefault(
CameraFacingPreference preference
)
static member FindCameraFacingOrDefault :
preference : CameraFacingPreference -> Task<DeviceInformation>
Parameters
- preference
- Type: Scandit.BarcodePickerCameraFacingPreference
camera facing preference
Return Value
Type:
TaskDeviceInformationA valid camera device, or null in case no camera could be found.
See Also