Class MoboLinkCtrl

java.lang.Object
com.unitech.api.uapps.MoboLinkCtrl

public class MoboLinkCtrl extends Object
  • Field Details

  • Constructor Details

    • MoboLinkCtrl

      public MoboLinkCtrl(Context context)
      Instantiates a new MoboLinkCtrl.
      Parameters:
      context -
  • Method Details

    • SetServerURL

      public Bundle SetServerURL(String serverURL)
      MoboLink Setting Set Server URL
      Parameters:
      serverURL - Server URL (String)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetRebootstrap

      public Bundle SetRebootstrap(Boolean rebootstrap)
      MoboLink Setting Set RebootStrap
      Parameters:
      rebootstrap - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetShowUI

      public Bundle SetShowUI(Boolean showUI)
      MoboLink Setting Set Show UI
      Parameters:
      showUI - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetConnectionNotification

      public Bundle SetConnectionNotification(Boolean connectionNotification)
      MoboLink Setting Set Connection Notification
      Parameters:
      connectionNotification - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetEventNotification

      public Bundle SetEventNotification(Boolean eventNotification)
      MoboLink Setting Set Event Notification
      Parameters:
      eventNotification - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetMessageNotification

      public Bundle SetMessageNotification(Boolean messageNotification)
      MoboLink Setting Set Message Notification
      Parameters:
      messageNotification - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetUserConfigurable

      public Bundle SetUserConfigurable(Boolean userConfigurable)
      MoboLink Setting Set User Configurable
      Parameters:
      userConfigurable - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetAutoRun

      public Bundle SetAutoRun(Boolean autoRun)
      MoboLink Setting Set Auto Run
      Parameters:
      autoRun - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg = bundle.getString("errorMsg");
    • SetMoboLinkConfig

      public Bundle SetMoboLinkConfig(String serverUrl, Boolean rebootstrap, Boolean showUI, Boolean connectionNotification, Boolean eventNotification, Boolean messageNotification, Boolean userConfigurable, Boolean autoRun)
      MoboLink Settting, set config
      Parameters:
      serverUrl - server url (String)
      rebootstrap - true or false (boolean)
      showUI - true or false (boolean)
      connectionNotification - true or false (boolean)
      eventNotification - true or false (boolean)
      messageNotification - true or false (boolean)
      userConfigurable - true or false (boolean)
      autoRun - true or false (boolean)
      Returns:
      A bundle contains the error code and message
      int errorCode = bundle.getInt("errorCode"), (error:1, success=0)
      String errorMsg=bundle.getString("errorMsg");