queryCameraFocalLengthCapability abstract method

Future<List<FocalLengthInfo>> queryCameraFocalLengthCapability()

Queries the focal length capability supported by the camera.

If you want to enable the wide-angle or ultra-wide-angle mode for camera capture, it is recommended to start by calling this method to check whether the device supports the required focal length capability. Then, adjust the camera's focal length configuration based on the query result by calling setCameraCapturerConfiguration, ensuring the best camera capture performance. This method is for Android and iOS only.

Returns Returns an array of FocalLengthInfo objects, which contain the camera's orientation and focal length type.

Implementation

Future<List<FocalLengthInfo>> queryCameraFocalLengthCapability();