SendbirdChatOptions

public 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 class 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 class func setMemberInfoInMessage(_ value: Bool)

    Parameters

    value

    Bool value

  • Gets connection timeout

    Declaration

    Swift

    @objc
    public class 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 class func setConnectionTimeout(_ timeout: Int)

    Parameters

    timeout

    timeout for connection.

  • Gets typing indicator throttle

    Declaration

    Swift

    @objc
    public class 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 class 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 class 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 class 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 class 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 class func setWebSocketResponseTimeout(_ timeout: Int)

    Parameters

    timeout

    Timeout in seconds.