1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/// The HTML `id` attribute value for the camera video element.
pub const CAMERA_VIDEO_ID: &str = "camera-video";
/// The CSS selector used to query the camera video element from the DOM.
pub const CAMERA_VIDEO_SELECTOR: &str = "#camera-video";
/// The `autoplay` attribute value for the camera video element.
pub const CAMERA_VIDEO_AUTOPLAY: bool = true;
/// The `playsinline` attribute value for the camera video element.
pub const CAMERA_VIDEO_PLAYSINLINE: bool = true;
/// The icon displayed in the camera placeholder when the camera is closed.
pub const CAMERA_PLACEHOLDER_ICON: &str = "📷";
/// The facing mode constraint value for the user-facing (front) camera.
pub const CAMERA_FACING_MODE_USER: &str = "user";
/// The facing mode constraint value for the environment-facing (rear) camera.
pub const CAMERA_FACING_MODE_ENVIRONMENT: &str = "environment";
/// The interval in milliseconds between QR code scan attempts.
pub const CAMERA_SCAN_INTERVAL_MILLIS: i32 = 500;
/// The prefix used to detect URL strings in QR code scan results.
pub const CAMERA_URL_PREFIX_HTTP: &str = "http://";
/// The prefix used to detect secure URL strings in QR code scan results.
pub const CAMERA_URL_PREFIX_HTTPS: &str = "https://";
/// The label displayed on the switch camera button when the front camera is active.
pub const CAMERA_SWITCH_TO_REAR_LABEL: &str = "Switch to Rear";
/// The label displayed on the switch camera button when the rear camera is active.
pub const CAMERA_SWITCH_TO_FRONT_LABEL: &str = "Switch to Front";
/// The hostname that represents the local loopback device.
pub const CAMERA_LOCALHOST_HOSTNAME: &str = "localhost";
/// The `window.open` target name that forces the URL to open in the
/// system browser rather than a web-view tab.
pub const CAMERA_SYSTEM_BROWSER_TARGET: &str = "_system";