Lines Matching refs:camera

5 When you use the flashlight mode with a camera application, the following situations may occur:
6 - When the rear camera is used and [FlashMode](../../reference/apis-camera-kit/js-apis-camera.md#fl…
7 - When the front camera is used, the flashlight can be turned on and remains steady on.
8 - When you switch from the front camera to the rear camera, the flashlight will be automatically tu…
12 Read [Camera](../../reference/apis-camera-kit/js-apis-camera.md) for the API reference.
14 1. Import the camera module, which provides camera-related attributes and methods.
17 import { camera } from '@kit.CameraKit';
21 …./reference/apis-camera-kit/js-apis-camera.md#istorchsupported11) in the [CameraManager](../../ref…
24 function isTorchSupported(cameraManager: camera.CameraManager) : boolean {
37camera-kit/js-apis-camera.md#istorchmodesupported11) in the [CameraManager](../../reference/apis-c…
40 …function isTorchModeSupported(cameraManager: camera.CameraManager, torchMode: camera.TorchMode) : …
52camera-kit/js-apis-camera.md#settorchmode11) in the [CameraManager](../../reference/apis-camera-ki…
55 …function setTorchModeSupported(cameraManager: camera.CameraManager, torchMode: camera.TorchMode) :…
64 During camera application development, you can listen for the flashlight status, including on, off,…
66 …about the parameter, see [TorchStatusInfo](../../reference/apis-camera-kit/js-apis-camera.md#torch…
70 function onTorchStatusChange(cameraManager: camera.CameraManager): void {
71 …cameraManager.on('torchStatusChange', (err: BusinessError, torchStatusInfo: camera.TorchStatusInfo…