Show camera preview
Camera could not be opened.\nThis occurs when the camera is not available (for example it is already in use) or if the system has denied access (for example when camera access has been disabled).
This sample shows a basic implementation for requesting permissions at runtime.\nClick the button below to request the Camera permission and open a full-screen camera preview.
Open Camera Preview
RuntimePermissionsBasic
Camera access is required to display the camera preview.
OK
Permission is not available. Requesting camera permission.
Camera permission is available. Starting preview.
Camera permission was granted. Starting preview.
Camera permission request was denied.