Solution:
implement the return key callback interface: window.djiBridge.onBackClick()
Set the platform workspace interface: window.djiBridge.platformSetWorkspaceId(String workspaceId)
window.djiBridge.onBackClick = () => {
// 自定义业务需求
return true
}
Reason:
On the webview page, when you click the return button in the upper left corner of the page, the interface callback will be triggered. If the return value is true, DJI Pilot 2 will not process it; if it is false or the function is not implemented, DJI Pilot 2 will exit the webview page . The result will be consistent with the physical return button of the remote control.
Notice: Press the physical return key on the remote control cannot trigger this callback.
Comments
0 comments
Please sign in to leave a comment.