InitParams
public final class InitParams: NSObject
An object to initialize SendbirdChat
Since
4.0.0-
Application ID
Declaration
Swift
public var applicationId: String
-
Determines to use local caching
Declaration
Swift
public var isLocalCachingEnabled: Bool
-
Loglevel
Declaration
Swift
public var logLevel: LogLevel = .none
-
Host app version
Declaration
Swift
public var appVersion: String?
-
A set of options for local caching.
Since
4.6.0Declaration
Swift
public var localCacheConfig: LocalCacheConfig?
-
Check if initialization needs synchronous.
- Default value is
false
. - Options
true
: When SendbirdChat is initialized, the work thread will be handled synchronously until the localCaching migration is complete.false
: Local caching migration operations are handled asynchronously.
And, if the
isLocalCachingEnabled
isfalse
, no localCaching migration operation is performed even if this value istrue
.
Since
4.15.0
Declaration
Swift
public var needsSynchronous: Bool = false
- Default value is
-
Parameter constructor
Declaration
Swift
public init( applicationId: String, isLocalCachingEnabled: Bool = false, localCacheConfig: LocalCacheConfig? = nil, logLevel: LogLevel = .none, appVersion: String? = nil )
Parameters
applicationId
Sendbird Application ID
isLocalCachingEnabled
true
if using local cachinglogLevel
log level
appVersion
host app version
-
Parameter constructor
Since
4.15.0
Declaration
Swift
public init( applicationId: String, isLocalCachingEnabled: Bool = false, localCacheConfig: LocalCacheConfig? = nil, logLevel: LogLevel = .none, appVersion: String? = nil, needsSynchronous: Bool )
Parameters
applicationId
Sendbird Application ID
isLocalCachingEnabled
true
if using local cachinglogLevel
log level
appVersion
host app version
needsSynchronous
If this value set
true
, when SendbirdChat is initialized, the work thread will be handled synchronously until the localCaching migration is complete. -
Undocumented
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool