Class InitOption.Builder
-
- All Implemented Interfaces:
public class InitOption.Builder
-
-
Constructor Summary
Constructors Constructor Description InitOption.Builder()
-
Method Summary
Modifier and Type Method Description InitOption.Builder
enablePush(boolean enablePush)
Whether to enable push notifications InitOption.Builder
setMainProcess(Boolean isMainProcess)
Sets whether the current process is the main process. InitOption.Builder
setIsBackupCorruptedDb(boolean isBackupCorruptedDb)
InitOption.Builder
setNaviServer(String naviServer)
Set the navigation service address InitOption.Builder
setFileServer(String fileServer)
Set the file service address For private cloud only If setting fileServer, it must be a valid server address: 1. InitOption.Builder
setStatisticServer(String statisticServer)
Sets the data upload address InitOption.Builder
setLogServer(String logServer)
InitOption.Builder
setAreaCode(InitOption.AreaCode areaCode)
InitOption.Builder
setEnv(String env)
InitOption.Builder
setHeartbeatLevel(InitOption.HeartbeatLevel heartbeatLevel)
InitOption.Builder
enableSyncEmptyTopConversation(boolean enable)
Whether to enable the ability to sync empty pinned conversations Note: If not set, the default value is false, meaning empty pinned conversations will not be synced. InitOption
build()
-
-
Method Detail
-
enablePush
InitOption.Builder enablePush(boolean enablePush)
Whether to enable push notifications
-
setMainProcess
InitOption.Builder setMainProcess(Boolean isMainProcess)
Sets whether the current process is the main process. If null, the SDK will determine the process.
-
setIsBackupCorruptedDb
InitOption.Builder setIsBackupCorruptedDb(boolean isBackupCorruptedDb)
-
setNaviServer
InitOption.Builder setNaviServer(String naviServer)
Set the navigation service address
-
setFileServer
InitOption.Builder setFileServer(String fileServer)
Set the file service address
For private cloud only
If setting fileServer, it must be a valid server address: 1. If using https, set it in the format of https://cn.xxx.com:port or https://cn.xxx.com, where the domain part can also be an IP address. If the port is not specified, the default port 443 will be used. 2. If using http, set it in the format of cn.xxx.com:port or cn.xxx.com, where the domain part can also be an IP address. If the port is not specified, the default port 80 will be used.
This has the same effect as setting fileServer in RongCoreClient's setServerInfo(final String naviServer, final String fileServer). Either method will take effect.
- Since:
5.4.1
-
setStatisticServer
InitOption.Builder setStatisticServer(String statisticServer)
Sets the data upload address
-
setLogServer
InitOption.Builder setLogServer(String logServer)
-
setAreaCode
InitOption.Builder setAreaCode(InitOption.AreaCode areaCode)
-
setEnv
InitOption.Builder setEnv(String env)
-
setHeartbeatLevel
InitOption.Builder setHeartbeatLevel(InitOption.HeartbeatLevel heartbeatLevel)
-
enableSyncEmptyTopConversation
InitOption.Builder enableSyncEmptyTopConversation(boolean enable)
Whether to enable the ability to sync empty pinned conversations
Note: If not set, the default value is false, meaning empty pinned conversations will not be synced.
- Since:
5.10.0
-
build
InitOption build()
-
-
-
-