Searched refs:torchStatusInfo (Results 1 – 10 of 10) sorted by relevance
/ohos5.0/docs/zh-cn/application-dev/media/camera/ |
H A D | camera-torch-use.md | 75 …cameraManager.on('torchStatusChange', (err: BusinessError, torchStatusInfo: camera.TorchStatusInfo… 80 …(`onTorchStatusChange, isTorchAvailable: ${torchStatusInfo.isTorchAvailable}, isTorchActive: ${tor… 81 isTorchActive}, level: ${torchStatusInfo.torchLevel}`);
|
/ohos5.0/docs/en/application-dev/media/camera/ |
H A D | camera-torch-use.md | 71 …cameraManager.on('torchStatusChange', (err: BusinessError, torchStatusInfo: camera.TorchStatusInfo… 76 …(`onTorchStatusChange, isTorchAvailable: ${torchStatusInfo.isTorchAvailable}, isTorchActive: ${tor… 77 isTorchActive}, level: ${torchStatusInfo.torchLevel}`);
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/input/ |
H A D | camera_manager_napi.h | 89 void OnTorchStatusChange(const TorchStatusInfo &torchStatusInfo) const override; 91 void OnTorchStatusChangeCallback(const TorchStatusInfo &torchStatusInfo) const; 92 void OnTorchStatusChangeCallbackAsync(const TorchStatusInfo &torchStatusInfo) const;
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/input/ |
H A D | camera_manager_napi.cpp | 339 void TorchListenerNapi::OnTorchStatusChangeCallbackAsync(const TorchStatusInfo &torchStatusInfo) co… in OnTorchStatusChangeCallbackAsync() 354 std::make_unique<TorchStatusChangeCallbackInfo>(torchStatusInfo, this); in OnTorchStatusChangeCallbackAsync() 372 void TorchListenerNapi::OnTorchStatusChangeCallback(const TorchStatusInfo& torchStatusInfo) const in OnTorchStatusChangeCallback() 389 napi_get_boolean(env_, torchStatusInfo.isTorchAvailable, &propValue); in OnTorchStatusChangeCallback() 391 napi_get_boolean(env_, torchStatusInfo.isTorchActive, &propValue); in OnTorchStatusChangeCallback() 393 napi_create_double(env_, torchStatusInfo.torchLevel, &propValue); in OnTorchStatusChangeCallback() 401 void TorchListenerNapi::OnTorchStatusChange(const TorchStatusInfo &torchStatusInfo) const in OnTorchStatusChange() 404 OnTorchStatusChangeCallbackAsync(torchStatusInfo); in OnTorchStatusChange()
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/src/input/ |
H A D | camera_manager.cpp | 1918 TorchStatusInfo torchStatusInfo; in OnTorchStatusChange() local 1920 torchStatusInfo.isTorchAvailable = false; in OnTorchStatusChange() 1921 torchStatusInfo.isTorchActive = false; in OnTorchStatusChange() 1922 torchStatusInfo.torchLevel = 0; in OnTorchStatusChange() 1925 torchStatusInfo.isTorchAvailable = true; in OnTorchStatusChange() 1926 torchStatusInfo.isTorchActive = true; in OnTorchStatusChange() 1927 torchStatusInfo.torchLevel = 1; in OnTorchStatusChange() 1930 torchStatusInfo.isTorchAvailable = true; in OnTorchStatusChange() 1931 torchStatusInfo.isTorchActive = false; in OnTorchStatusChange() 1932 torchStatusInfo.torchLevel = 0; in OnTorchStatusChange() [all …]
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/ |
H A D | camera_manager_impl.cpp | 97 void OnTorchStatusChange(const TorchStatusInfo &torchStatusInfo) const override in OnTorchStatusChange() 102 statusInfo.isTorchAvailable = torchStatusInfo.isTorchAvailable; in OnTorchStatusChange() 103 statusInfo.isTorchActive = torchStatusInfo.isTorchActive; in OnTorchStatusChange() 104 statusInfo.torchLevel = torchStatusInfo.torchLevel; in OnTorchStatusChange()
|
/ohos5.0/foundation/multimedia/camera_framework/interfaces/inner_api/native/camera/include/input/ |
H A D | camera_manager.h | 120 virtual void OnTorchStatusChange(const TorchStatusInfo &torchStatusInfo) const = 0;
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-camera-kit/ |
H A D | js-apis-camera.md | 1191 function callback(err: BusinessError, torchStatusInfo: camera.TorchStatusInfo): void { 1196 …, isTorchAvailable: ${torchStatusInfo.isTorchAvailable}, isTorchActive: ${torchStatusInfo.isTorchA…
|
/ohos5.0/foundation/multimedia/camera_framework/frameworks/native/camera/test/moduletest/src/ |
H A D | camera_framework_moduletest.cpp | 220 void OnTorchStatusChange(const TorchStatusInfo &torchStatusInfo) const override in OnTorchStatusChange() 223 … torchStatusInfo.isTorchAvailable, torchStatusInfo.isTorchActive, torchStatusInfo.torchLevel); in OnTorchStatusChange() 224 g_torchInfo = torchStatusInfo; in OnTorchStatusChange()
|
/ohos5.0/docs/en/application-dev/reference/apis-camera-kit/ |
H A D | js-apis-camera.md | 1194 function callback(err: BusinessError, torchStatusInfo: camera.TorchStatusInfo): void { 1199 …, isTorchAvailable: ${torchStatusInfo.isTorchAvailable}, isTorchActive: ${torchStatusInfo.isTorchA…
|