SendbirdChatOptions

public final class SendbirdChatOptions : NSObject

Represents SendbirdChat options.

  • Gets the value whether the sender information of sender of UserMessage or FileMessage such as nickname and profile url will be returned as the latest user’s or not.

    Declaration

    Swift

    @objc
    public static func useMemberInfoInMessage() -> Bool
  • Sets useMemberAsMessageSender

    If set true, the sender information of sender of UserMessage or FileMessage such 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

    @objc
    public static func setMemberInfoInMessage(_ value: Bool)

    Parameters

    value

    Bool value

  • Gets connection timeout

    Declaration

    Swift

    @objc
    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

    @objc
    public static func setConnectionTimeout(_ timeout: Int)

    Parameters

    timeout

    timeout for connection.

  • Gets typing indicator throttle

    Declaration

    Swift

    @objc
    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.100

    Declaration

    Swift

    @objc
    public static func setTypingIndicatorThrottle(_ interval: TimeInterval)

    Parameters

    interval

    A time interval that can renew typing indicator. can be RANGE from 1.0 to 9.0.

  • Gets file trnasfer timeout

    Declaration

    Swift

    @objc
    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.130

    Declaration

    Swift

    @objc
    public static func setFileTransferTimeout(_ timeout: Int)

    Parameters

    timeout

    Timeout in seconds. It must be greater than 0. Otherwise, the default value (60 seconds) will be set.

  • Gets websocket response timeout

    Declaration

    Swift

    @objc
    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.199

    Declaration

    Swift

    @objc
    public static func setWebSocketResponseTimeout(_ timeout: Int)

    Parameters

    timeout

    Timeout in seconds.

  • Sets the timeout used in refreshing the session token when SessionHandler.onSessionTokenRequired is called. The value should be between 60 seconds and 1800 seconds (30 minutes). The default value is 60 seconds.

    Since

    4.2.4

    Declaration

    Swift

    @objc
    public static func setSessionTokenRefreshTimeout(_ timeout: Int)

    Parameters

    timeout

    Timeout value in seconds.

  • Gets the timeout in seconds used in refreshing the session token when SessionHandler.onSessionTokenRequired is called.

    Since

    4.2.4

    Declaration

    Swift

    @objc
    public static func getSessionTokenRefreshTimeout() -> TimeInterval