TwilioChatClientProperties Class Reference

Inherits from NSObject
Declared in TwilioChatClient.h

Overview

Optional chat client initialization properties.

  commandTimeout

Timeout in milliseconds for commands which SDK sends over network (i.e. send message, join to a channel, etc). Completion block will be called when timeout is reached.

@property (nonatomic, assign) NSInteger commandTimeout

Discussion

Timeout in milliseconds for commands which SDK sends over network (i.e. send message, join to a channel, etc). Completion block will be called when timeout is reached.

In case of bad connectivity SDK retries to send command until timeout is reached. Timeout could occur earlier than specified time if there is no enough time to make one more attempt.

Value must be between TCHCommandTimeoutMin and TCHCommandTimeoutMax.

Default value is TCHCommandTimeoutDefault.

Declared In

TwilioChatClient.h

  deferCertificateTrustToPlatform

Defer certificate trust decisions to the OS, overriding the default of certificate pinning for Twilio back-end connections.

@property (nonatomic, readwrite) BOOL deferCertificateTrustToPlatform

Discussion

Defer certificate trust decisions to the OS, overriding the default of certificate pinning for Twilio back-end connections.

Twilio client SDKs utilize certificate pinning to prevent man-in-the-middle attacks against your connections to our services. Customers in certain very specific environments may need to opt-out of this if custom certificate authorities must be allowed to intentionally intercept communications for security or policy reasons.

Setting this property to true for a Chat Client instance will defer to iOS to establish whether or not a given connection is providing valid and trusted TLS certificates.

Keeping this property at its default value of false allows the Twilio client SDK to determine trust when communicating with our servers.

The default value is false.

Declared In

TwilioChatClient.h

  useProxy

If useProxy flag is true TCHConversationsClient will try to read and apply system proxy settings If this flag is false all proxy settings will be ignored and direct connection will be used.

@property (nonatomic, readwrite) BOOL useProxy

Discussion

If useProxy flag is true TCHConversationsClient will try to read and apply system proxy settings If this flag is false all proxy settings will be ignored and direct connection will be used.

The default value is false.

Declared In

TwilioChatClient.h

  dispatchQueue

Queue all completions and events would fire from. If not set main queue would be used.

@property (nonatomic, readwrite, nullable) dispatch_queue_t dispatchQueue

Discussion

Queue all completions and events would fire from. If not set main queue would be used.

Declared In

TwilioChatClient.h