# CameraContext.setZoom(Object object)

Start from base library version 2.10.0. Please remaining backward compatible.

with Promise style call: Not supported

Mini Program plugin: Support

Set Zoom Level

# parameter

# Object object

attribute type Default values Required Introductions
zoom number yes Zoom level, range[1, maxZoom]。zoom Decimals can be taken to one decimal place. maxZoom Available at bindinitdone In the return value.
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Callback function at the end of an interface call (both successful and unsuccessful calls are executed)

# object.success callback

# parameter
# Object res
attribute type Introductions
zoom number The scale level that is actually set. Due to system limitations, some models may not be able to set to the specified value, will be replaced by the nearest settable value.