CameraManager.GetTorchStrengthLevel(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the brightness level of the flash unit associated with the cameraId.
[Android.Runtime.Register("getTorchStrengthLevel", "(Ljava/lang/String;)I", "", ApiSince=33)]
public int GetTorchStrengthLevel (string cameraId);
[<Android.Runtime.Register("getTorchStrengthLevel", "(Ljava/lang/String;)I", "", ApiSince=33)>]
member this.GetTorchStrengthLevel : string -> int
Parameters
- cameraId
- String
The unique identifier of the camera device that the flash unit belongs to.
Returns
The brightness level of the flash unit associated with cameraId.
When the torch is turned OFF, the strength level will reset to a default level
android.hardware.camera2.CameraCharacteristics#FLASH_INFO_STRENGTH_DEFAULT_LEVEL
.
In this case the return value will be
android.hardware.camera2.CameraCharacteristics#FLASH_INFO_STRENGTH_DEFAULT_LEVEL
rather than 0.
- Attributes
Remarks
Returns the brightness level of the flash unit associated with the cameraId.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.