Package io.rong.imlib.model

## Class InitOption

- All Implemented Interfaces:

      public class InitOption

  Author:

    gusd @Date 2022/12/23

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public class` | `InitOption.Builder` |
    `public enum` | `InitOption.AreaCode` | 数据中心区域码
    `public enum` | `InitOption.HeartbeatLevel` | 心跳级别

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public Boolean` | `isMainProcess` |
    `public boolean` | `isBackupCorruptedDb` |
    `public String` | `naviServer` |
    `public String` | `fileServer` |
    `public String` | `statisticServer` |
    `public String` | `logServer` |
    `public InitOption.AreaCode` | `areaCode` |
    `public String` | `env` |
    `public InitOption.HeartbeatLevel` | `heartbeatLevel` |
    `public final static Creator<InitOption>` | `CREATOR` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `InitOption(Parcel in)` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `Boolean` | `isMainProcess()` | 获取是否为主进程配置。isMainProcess 如果为null，则代表由SDK判断进程
    `void` | `setMainProcess(Boolean mainProcess)` |
    `boolean` | `isBackupCorruptedDb()` |
    `void` | `setBackupCorruptedDb(boolean backupCorruptedDb)` |
    `String` | `getNaviServer()` | 获取导航服务地址
    `void` | `setNaviServer(String naviServer)` |
    `String` | `getFileServer()` | 获取文件服务地址
    `void` | `setFileServer(String fileServer)` |
    `String` | `getStatisticServer()` | 获取数据上传地址
    `void` | `setStatisticServer(String statisticServer)` |
    `String` | `getLogServer()` |
    `void` | `setLogServer(String logServer)` |
    `InitOption.AreaCode` | `getAreaCode()` |
    `void` | `setAreaCode(InitOption.AreaCode areaCode)` |
    `String` | `getEnv()` |
    `void` | `setEnv(String env)` | 设置环境
    `InitOption.HeartbeatLevel` | `getHeartbeatLevel()` |
    `void` | `setHeartbeatLevel(InitOption.HeartbeatLevel heartbeatLevel)` |
    `void` | `writeToParcel(Parcel dest, int flags)` |
    `int` | `describeContents()` |
    `boolean` | `isEnablePush()` | 获取是否开启推送配置
    `boolean` | `isEnableSyncEmptyTopConversation()` |
    `void` | `enableSyncEmptyTopConversation(boolean enable)` |
    `String` | `toString()` |
    `void` | `setEnablePush(boolean enablePush)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### InitOption

          InitOption(Parcel in)

  - ### Method Detail

    - #### isMainProcess

           Boolean isMainProcess()

      获取是否为主进程配置。isMainProcess 如果为null，则代表由SDK判断进程

    - #### setMainProcess

           void setMainProcess(Boolean mainProcess)

    - #### isBackupCorruptedDb

           boolean isBackupCorruptedDb()

    - #### setBackupCorruptedDb

           void setBackupCorruptedDb(boolean backupCorruptedDb)

    - #### getNaviServer

           String getNaviServer()

      获取导航服务地址

    - #### setNaviServer

           void setNaviServer(String naviServer)

    - #### getFileServer

           String getFileServer()

      获取文件服务地址

    - #### setFileServer

           void setFileServer(String fileServer)

    - #### getStatisticServer

           String getStatisticServer()

      获取数据上传地址

    - #### setStatisticServer

           void setStatisticServer(String statisticServer)

    - #### getLogServer

           String getLogServer()

    - #### setLogServer

           void setLogServer(String logServer)

    - #### getAreaCode

           InitOption.AreaCode getAreaCode()

    - #### setAreaCode

           void setAreaCode(InitOption.AreaCode areaCode)

    - #### getEnv

           String getEnv()

    - #### setEnv

           void setEnv(String env)

      设置环境

      Parameters:
        `env` - 环境
      Since:

        5.8.2

    - #### getHeartbeatLevel

           InitOption.HeartbeatLevel getHeartbeatLevel()

    - #### setHeartbeatLevel

           void setHeartbeatLevel(InitOption.HeartbeatLevel heartbeatLevel)

    - #### writeToParcel

           void writeToParcel(Parcel dest, int flags)

    - #### describeContents

           int describeContents()

    - #### isEnablePush

           boolean isEnablePush()

      获取是否开启推送配置

    - #### isEnableSyncEmptyTopConversation

           boolean isEnableSyncEmptyTopConversation()

    - #### enableSyncEmptyTopConversation

           void enableSyncEmptyTopConversation(boolean enable)

    - #### toString

           String toString()

    - #### setEnablePush

           void setEnablePush(boolean enablePush)