public Task OpenCameraAndStartScanningAsync( DeviceInformation device = null )
Public Function OpenCameraAndStartScanningAsync ( Optional device As DeviceInformation = Nothing ) As Task
public: Task^ OpenCameraAndStartScanningAsync( DeviceInformation^ device = nullptr )
member OpenCameraAndStartScanningAsync : ?device : DeviceInformation (* Defaults: let _device = defaultArg device null *) -> Task
Opens the camera for streaming and sets up barcode recognition using the current barcode scanner settings.
Your application must have Webcam capability in the manifest in order to access a camera.
While it's possible to pass in null as the device information, it is recommended that you select the camera based on the needs of your application. When running on phones or tablets, you might want to select a camera based on facing direction. Helper functions to select such a camera are offered by CameraSelection.