com.supermap.messagequeue

Class Environment

  • java.lang.Object
    • com.supermap.messagequeue.Environment


  • public class Environment
    extends java.lang.Object
    The operation environment manager class

    Initializes the environment resource and loads the libraries. Before you use the message bus function, you should callinitialization(android.content.Context)to initialize.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String getDeviceID()
      Gets the device ID
      static boolean initialization(android.content.Context context)
      Initialize the environment.
      static void setDebugMode(boolean isDebugMode)
      Sets the debug mode It is suggested to use in the debug mode.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setDebugMode

        public static void setDebugMode(boolean isDebugMode)
        Sets the debug mode

        It is suggested to use in the debug mode. The system will generate a log folder for outputting logs of running information, and the folder is at the same path level of the configure file getTemporaryPath().

        Parameters:
        isDebugMode - Refers to whether the debug mode, true for the debug mode.
      • getDeviceID

        public static java.lang.String getDeviceID()
        Gets the device ID
        Returns:
        Returns the device ID string
      • initialization

        public static boolean initialization(android.content.Context context)
        Initialize the environment.
        Parameters:
        context - Android context environment.
        Returns:
        Whether the status is normal

        Users must call this method in the main thread to configure the environment of SuperMap iMobile for Android.