InitParams

public final class InitParams

Required parameters Via Constructor Pass input, Optional parameters Via Builder style apply block Set.

Usage Example:

// Simplest usage (Required parameters only)
```kotlin
// With optional configuration
val params = InitParams(context, "your-app-key")

logLevel = LogLevel.DEBUG
val params = InitParams(context, "your-app-key").apply {
logLevel = LogLevel.DEBUG
naviServer = "nav.custom-server.com"
enableHttps = true
areaCode = AreaCode.SINGAPORE
}

NCEngine.initialize(params)

======================================== Optional Configuration item (user on demand Set)

Constructors

Link copied to clipboard
public InitParams InitParams(<Error class: unknown class> context, String appKey)

Properties

Link copied to clipboard
private final String appKey
Link copied to clipboard

overseas deployment When Based on actual Data center location selection Corresponds to Area code.

Link copied to clipboard
private final <Error class: unknown class> context
Link copied to clipboard
private Boolean enablePush

Whether enable Sync empty pinned conversation capability, Default is false.

Link copied to clipboard

是否开启同步空置顶会话能力,默认为 false。

Link copied to clipboard
private String fileServer

Default is null, Uses SDK built-in Statistics Server.

Link copied to clipboard

recommended for development Set to LogLevel.DEBUG, production Environment recommend LogLevel.WARN or LogLevel.ERROR.

Link copied to clipboard
private String logServer

Whether enable Push, Default is true.

Link copied to clipboard
private String naviServer

Custom File Server URL (Private cloud scenario).

Link copied to clipboard
private String statisticServer

Custom Log Server URL (Private cloud scenario).

Functions

Link copied to clipboard
public final String getAppKey()
Link copied to clipboard
public final AreaCode getAreaCode()

overseas deployment When Based on actual Data center location selection Corresponds to Area code.

Link copied to clipboard
public final <Error class: unknown class> getContext()
Link copied to clipboard
public final Boolean getEnablePush()

Whether enable Sync empty pinned conversation capability, Default is false.

Link copied to clipboard
public final Boolean getEnableSyncEmptyTopConversation()

是否开启同步空置顶会话能力,默认为 false。

Link copied to clipboard
public final String getFileServer()

Default is null, Uses SDK built-in Statistics Server.

Link copied to clipboard
public final LogLevel getLogLevel()

recommended for development Set to LogLevel.DEBUG, production Environment recommend LogLevel.WARN or LogLevel.ERROR.

Link copied to clipboard
public final String getLogServer()

Whether enable Push, Default is true.

Link copied to clipboard
public final String getNaviServer()

Custom File Server URL (Private cloud scenario).

Link copied to clipboard
public final String getStatisticServer()

Custom Log Server URL (Private cloud scenario).

Link copied to clipboard
public final Unit setAreaCode(AreaCode areaCode)

overseas deployment When Based on actual Data center location selection Corresponds to Area code.

Link copied to clipboard
public final Unit setEnablePush(Boolean enablePush)

Whether enable Sync empty pinned conversation capability, Default is false.

Link copied to clipboard
public final Unit setEnableSyncEmptyTopConversation(Boolean enableSyncEmptyTopConversation)

是否开启同步空置顶会话能力,默认为 false。

Link copied to clipboard
public final Unit setFileServer(String fileServer)

Default is null, Uses SDK built-in Statistics Server.

Link copied to clipboard
public final Unit setLogLevel(LogLevel logLevel)

recommended for development Set to LogLevel.DEBUG, production Environment recommend LogLevel.WARN or LogLevel.ERROR.

Link copied to clipboard
public final Unit setLogServer(String logServer)

Whether enable Push, Default is true.

Link copied to clipboard
public final Unit setNaviServer(String naviServer)

Custom File Server URL (Private cloud scenario).

Link copied to clipboard
public final Unit setStatisticServer(String statisticServer)

Custom Log Server URL (Private cloud scenario).