KeyManager.getInstance().addListener监听焦距
Completed如何拿到实时的焦距4.16.2
-
监听这个CameraKey.HYBRID_ZOOM_FOCAL_LENGTH,代码参考: DJISDKManager.getInstance().getKeyManager().addListener(CameraKey.createKey(CameraKey.HYBRID_ZOOM_FOCAL_LENGTH), new KeyListener() { @Override public void onValueChange(@Nullable Object o, @Nullable Object o1) { Log.d(TAG, "onValueChange: old focal_length:"+((int)o)+"new focal_length"+((int)o1)); } });
Please sign in to leave a comment.
Comments
7 comments