SendbirdChatOptions
public final class SendbirdChatOptions: NSObject
Represents SendbirdChat options.
-
Gets the value whether the sender information of
senderofUserMessageorFileMessagesuch as nickname and profile url will be returned as the latest user’s or not.Declaration
Swift
public static func useMemberInfoInMessage() -> Bool -
Sets
useMemberAsMessageSenderIf set
true, the sender information ofsenderofUserMessageorFileMessagesuch as nickname and profile url will be returned as the latest user’s. Otherwise, the information will be the value of the message creation time.Declaration
Swift
public static func setMemberInfoInMessage(_ value: Bool)Parameters
valueBoolvalue -
Gets connection timeout
Declaration
Swift
public static func getConnectionTimeout() -> TimeInterval -
Sets the timeout for connection.
If there is a timeout error frequently, set the longer timeout than default value. The default is 10 seconds.
Declaration
Swift
public static func setConnectionTimeout(_ timeout: Int)Parameters
timeouttimeout for connection.
-
Gets typing indicator throttle
Declaration
Swift
public static func getTypingIndicatorThrottle() -> TimeInterval -
Sets a term of typing indicator throttling in group channel.
After this throttling interval from typing indicator started (or ended), You can re-start (or re-end) typing indicator. If you call start (or end) again in this interval, the call will be ignored.
Since
3.0.100Declaration
Swift
public static func setTypingIndicatorThrottle(_ interval: TimeInterval)Parameters
intervalA time interval that can renew typing indicator. can be RANGE from 1.0 to 9.0.
-
Gets file trnasfer timeout
Declaration
Swift
public static func getFileTransferTimeout() -> TimeInterval -
Sets the timeout for file transfer.
This value affects the methods that send a binary data including sending file messages, creating and updating channels.
Since
3.0.130Declaration
Swift
public static func setFileTransferTimeout(_ timeout: Int)Parameters
timeoutTimeout in seconds. It must be greater than 0. Otherwise, the default value (60 seconds) will be set.
-
Gets websocket response timeout
Declaration
Swift
public static func getWebSocketResponseTimeout() -> TimeInterval -
Sets the websocket response timeout used in sending/receiving commmands by websocket.
The value should be between 5 seconds and 300 seconds (5 minutes). The default value is 10 seconds.
Since
3.0.199Declaration
Swift
public static func setWebSocketResponseTimeout(_ timeout: Int)Parameters
timeoutTimeout in seconds.
-
Sets the timeout used in refreshing the session token when
SessionHandler.onSessionTokenRequiredis called. The value should be between 60 seconds and 1800 seconds (30 minutes). The default value is 60 seconds.Since
4.2.4Declaration
Swift
public static func setSessionTokenRefreshTimeout(_ timeout: Int)Parameters
timeoutTimeout value in seconds.
-
Gets the timeout in seconds used in refreshing the session token when
SessionHandler.onSessionTokenRequiredis called.Since
4.2.4Declaration
Swift
public static func getSessionTokenRefreshTimeout() -> TimeInterval
View on GitHub
Install in Dash