Hide Widget
566 3 2020-9-23
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_63wKgIaTThDE
lvl.2

Cyprus
Offline

Hello. I use DashboardWidget, and sometimes i want to hide this widget on my layout. How can i do this?
dji uixsdk 4.13


2020-9-23
Use props
JohanH
lvl.3
Flight distance : 30479 ft

Netherlands
Offline

In DefaultLayoutController (in Objective C) :

DUXWidgetItem *dashBoardWidgetItem = self.dockViewController.dockView.widgets.firstObject;
UIView<DUXWidgetProtocol> *dashBoardWidget = dashBoardWidgetItem.widget;
dashBoardWidget.hidden = YES;

-Johan
2020-9-28
Use props
DJI_Lisa
lvl.4
United States
Offline

If you are coding for Android, here is a sample code in our beta UX SDK that maybe helpful for you: DashboardWidget.java
2020-9-29
Use props
djiuser_63wKgIaTThDE
lvl.2

Cyprus
Offline

very thanks
2020-9-29
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules