Class InitOption.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public class InitOption.Builder
- 
                
                    
                    - 
                                
                            
                                Constructor SummaryConstructors Constructor Description InitOption.Builder()
 - 
                                
                            
                                Method SummaryModifier and Type Method Description InitOption.BuilderenablePush(boolean enablePush)Whether to enable push notifications InitOption.BuildersetMainProcess(Boolean isMainProcess)Sets whether the current process is the main process. InitOption.BuildersetIsBackupCorruptedDb(boolean isBackupCorruptedDb)InitOption.BuildersetNaviServer(String naviServer)Set the navigation service address InitOption.BuildersetFileServer(String fileServer)Set the file service address For private cloud only If setting fileServer, it must be a valid server address: 1. InitOption.BuildersetStatisticServer(String statisticServer)Sets the data upload address InitOption.BuildersetLogServer(String logServer)InitOption.BuildersetAreaCode(InitOption.AreaCode areaCode)InitOption.BuildersetEnv(String env)InitOption.BuildersetHeartbeatLevel(InitOption.HeartbeatLevel heartbeatLevel)InitOption.BuilderenableSyncEmptyTopConversation(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. InitOptionbuild()- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        enablePushInitOption.Builder enablePush(boolean enablePush) Whether to enable push notifications 
 - 
                                        setMainProcessInitOption.Builder setMainProcess(Boolean isMainProcess) Sets whether the current process is the main process. If null, the SDK will determine the process. 
 - 
                                        setIsBackupCorruptedDbInitOption.Builder setIsBackupCorruptedDb(boolean isBackupCorruptedDb) 
 - 
                                        setNaviServerInitOption.Builder setNaviServer(String naviServer) Set the navigation service address 
 - 
                                        setFileServerInitOption.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 
 
 - 
                                        setStatisticServerInitOption.Builder setStatisticServer(String statisticServer) Sets the data upload address 
 - 
                                        setLogServerInitOption.Builder setLogServer(String logServer) 
 - 
                                        setAreaCodeInitOption.Builder setAreaCode(InitOption.AreaCode areaCode) 
 - 
                                        setEnvInitOption.Builder setEnv(String env) 
 - 
                                        setHeartbeatLevelInitOption.Builder setHeartbeatLevel(InitOption.HeartbeatLevel heartbeatLevel) 
 - 
                                        enableSyncEmptyTopConversationInitOption.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 
 
 - 
                                        buildInitOption build() 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-