InitParams
@objc(SBDInitParams)
public final class InitParams : NSObject
An object to initialize SendbirdChat
Since
4.0.0-
Application ID
Declaration
Swift
@objc public var applicationId: String
-
Determines to use local caching
Declaration
Swift
@objc public var isLocalCachingEnabled: Bool
-
Loglevel
Declaration
Swift
@objc public var logLevel: LogLevel
-
Host app version
Declaration
Swift
@objc public var appVersion: String?
-
A set of options for local caching.
Since
4.6.0Declaration
Swift
@objc 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
@objc public var needsSynchronous: Bool
- Default value is
-
Parameter constructor
Declaration
Swift
@objc 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
@objc 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