DJI Mobile SDK Documentation

      class Builder

      static class Builder 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Builder for DialogConfig.

      Supported since MSDK 5.20.1

      Class Members:
      method
      method setTitle
      Builder setTitle(String title) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the dialog title.

      Supported since MSDK 5.20.1

      Input Parameters:
      String titleThe title.
      Return:
      BuilderThe Builder itself.
      method setMessage
      Builder setMessage(String message) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the dialog content.

      Supported since MSDK 5.20.1

      Input Parameters:
      String messageThe content.
      Return:
      BuilderThe Builder itself.
      method setIconFileName
      Builder setIconFileName(String iconFileName) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the dialog icon.

      Supported since MSDK 5.20.1

      Input Parameters:
      String iconFileNameThe icon file name.
      Return:
      BuilderThe Builder itself.
      method setElementConfigs
      Builder setElementConfigs(List<DialogElementConfig> elementConfigs) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the selection items of the selection dialog, and the hint and default prefill content of the input dialog.

      Supported since MSDK 5.20.1

      Input Parameters:
      List<DialogElementConfig> elementConfigsThe configuration items.
      Return:
      BuilderThe Builder itself.
      method setStartButtonText
      Builder setStartButtonText(String startButtonText) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the StartButton text.

      Supported since MSDK 5.20.1

      Input Parameters:
      String startButtonTextThe button text.
      Return:
      BuilderThe Builder itself.
      method setEndButtonText
      Builder setEndButtonText(String endButtonText) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the EndButton text.

      Supported since MSDK 5.20.1

      Input Parameters:
      String endButtonTextThe button text.
      Return:
      BuilderThe Builder itself.
      method setOnStartButtonClick
      Builder setOnStartButtonClick(IOpenViewOnClickListener onStartButtonClick) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the StartButton click callback function.

      Supported since MSDK 5.20.1

      Input Parameters:
      IOpenViewOnClickListener onStartButtonClickThe callback function.
      Return:
      BuilderThe Builder itself.
      method setOnEndButtonClick
      Builder setOnEndButtonClick(IOpenViewOnClickListener onEndButtonClick) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the EndButton click callback function.

      Supported since MSDK 5.20.1

      Input Parameters:
      IOpenViewOnClickListener onEndButtonClickThe callback function.
      Return:
      BuilderThe Builder itself.
      method setOnDismiss
      Builder setOnDismiss(IOpenViewOnClickListener onDismiss) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the Dismiss callback function.

      Supported since MSDK 5.20.1

      Input Parameters:
      IOpenViewOnClickListener onDismissThe callback function.
      Return:
      BuilderThe Builder itself.
      method setOnMessage
      Builder setOnMessage(IDialogMessageListener onMessage) 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Sets the onMessage data callback function.

      Supported since MSDK 5.20.1

      Input Parameters:
      IDialogMessageListener onMessageThe callback function.
      Return:
      BuilderThe Builder itself.
      method
      method build
      DialogConfig build() 
      Package:dji.open.pilot.base.manager.ui.config
      Description:

      Builds the DialogConfig object.

      Supported since MSDK 5.20.1

      Return:
      DialogConfigDialogConfig.