class RemoteView
class RemoteView implements Parcelable
|
| Package: | dji.open.pilot.base.ui |
Description:
Server-side view.
Supported since MSDK 5.20.1
Class Members:
method getSource
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view source identifier.
Supported since MSDK 5.20.1
Return:
| String | The source identifier string. |
method getImageFileName
String getImageFileName()
|
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view image file name.
Supported since MSDK 5.20.1
Return:
| String | The image file name. |
method getId
| Package: | dji.open.pilot.base.ui |
Description:
Gets the unique view ID.
Supported since MSDK 5.20.1
Return:
| String | The view ID string. |
method setType
void setType(ViewType type)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view type.
Supported since MSDK 5.20.1
method getType
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view type.
Supported since MSDK 5.20.1
Return:
method setImage
void setImage(String fileName)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view image file name, such as “icon.png”.
Supported since MSDK 5.20.1
| String fileName | The image file name. |
method setText
void setText(String message)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view text content.
Supported since MSDK 5.20.1
| String message | The text content string. |
method getText
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view text content.
Supported since MSDK 5.20.1
Return:
| String | The text content string. |
method setBackground
void setBackground(int color)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view background color.
Supported since MSDK 5.20.1
| int color | The color value (ARGB format). |
method getBackground
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view background color.
Supported since MSDK 5.20.1
Return:
| int | The color value (ARGB format). |
method setWidth
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view width.
Supported since MSDK 5.20.1
| int width | The width value (unit: dp). |
method getWidth
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view width.
Supported since MSDK 5.20.1
Return:
| int | The width value (unit: dp). |
method setHeight
void setHeight(int height)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view height.
Supported since MSDK 5.20.1
| int height | The height value (unit: dp). |
method getHeight
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view height.
Supported since MSDK 5.20.1
Return:
| int | The height value (unit: dp). |
method setOnClickListener
void setOnClickListener(IRemoteViewOnClickListener listener)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view click event listener.
Supported since MSDK 5.20.1
method getOnClickListener
IRemoteViewOnClickListener getOnClickListener()
|
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view click event listener.
Supported since MSDK 5.20.1
Return:
method setOnTextChangeListener
void setOnTextChangeListener(IRemoteViewTextWatcher listener)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view text change listener.
Supported since MSDK 5.20.1
method getOnTextChangeListener
IRemoteViewTextWatcher getOnTextChangeListener()
|
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view text change listener.
Supported since MSDK 5.20.1
Return:
method setOnCheckChangeListener
void setOnCheckChangeListener(IRemoteViewOnCheckedChangeListener listener)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the view checked state change listener.
Supported since MSDK 5.20.1
method getOnCheckChangeListener
IRemoteViewOnCheckedChangeListener getOnCheckChangeListener()
|
| Package: | dji.open.pilot.base.ui |
Description:
Gets the view checked state change listener.
Supported since MSDK 5.20.1
Return:
method setOnItemSelectedListener
void setOnItemSelectedListener(IRemoteViewOnItemSelectedListener listener)
|
| Package: | dji.open.pilot.base.ui |
Description:
Sets the spinner item selected listener.
Supported since MSDK 5.20.1
method getOnItemSelectedListener
IRemoteViewOnItemSelectedListener getOnItemSelectedListener()
|
| Package: | dji.open.pilot.base.ui |
Description:
Gets the spinner item selected listener.
Supported since MSDK 5.20.1
Return: