御3T行业版无法格式化存储卡
CompletedKeyManager.getInstance().performAction(KeyTools.createKey(CameraKey.KeyFormatStorage),
object : CommonCallbacks.CompletionCallback,
CommonCallbacks.CompletionCallbackWithParam<EmptyMsg> {
override fun onSuccess(t: EmptyMsg?) {
ToastUtils.showLong(this@DJiFlyActivity, "格式化成功")
}
override fun onSuccess() {
ToastUtils.showLong(this@DJiFlyActivity, "格式化成功")
}
override fun onFailure(error: IDJIError) {
ToastUtils.showLong(this@DJiFlyActivity, "格式化失败:${error.errorType()}")
}
})
返回结果是:ErrorImp{errorType='CORE', errorCode='SYSTEM_ERROR', innerCode='', description='null', hint='error code = -7'}
-
根据您的需求,您需要传递CameraStorageLocation参数。您可以在以下链接中找到有关该参数的更多信息:https://developer.dji.com/cn/api-reference-v5/android-api/Components/IKeyManager/Key_Camera_CameraKey.html?search=keyformatstorage&i=0key_camera_formatstorage_inline
Please sign in to leave a comment.
Comments
1 comment