Skip to main content

Config

Feature Introduction

info

Initialization of SDK configuration information.

OIMInitConfig

Field NameField TypeMandatoryDescription
platformIDOIMPlatformYesPlatform number: iOS 1, Android 2, Windows 3, OSX 4, WEB 5, mini-program 6, linux 7
apiAddrNSStringYesIM api address, usually http://xxx:10002 or https://xxx/api
wsAddrNSStringYesIM ws address, usually ws://xxx:10001 or wss://xxx/msg_gateway
dataDirNSStringNoIM client DB storage directory
logLevelNSIntegerNoSDK log print level
isLogStandardOutputBOOLNoWhether to print logs to the console
logFilePathNSStringNoLocal log file storage path