Init Params
SDK initialization parameters.
Contains required and optional configuration for SDK initialization. Required parameters are passed via the constructor; optional parameters are set via properties using the builder-style apply block.
// Basic usage (required parameters only)
val params = InitParams(context, "your-app-key")
// With optional configuration
val params = InitParams(context, "your-app-key").apply {
logLevel = LogLevel.DEBUG
naviServer = "nav.custom-server.com"
areaCode = AreaCode.SG
}
NCEngine.initialize(params)Properties
Area code. Default is AreaCode.SG.
Media compression options for images and short videos.
Whether to enable push notifications. Default is true.
Whether to sync empty pinned channels. Default is false.
Log level. Default is LogLevel.WARN.
Custom navigation server URL (for private cloud).
Functions
Area code. Default is AreaCode.SG.
Media compression options for images and short videos.
Whether to enable push notifications. Default is true.
Whether to sync empty pinned channels. Default is false.
Log level. Default is LogLevel.WARN.
Custom navigation server URL (for private cloud).
Area code. Default is AreaCode.SG.
Media compression options for images and short videos.
Whether to enable push notifications. Default is true.
Whether to sync empty pinned channels. Default is false.
Log level. Default is LogLevel.WARN.
Custom navigation server URL (for private cloud).