ChannelConfiguration
public struct ChannelConfiguration
The various options for how a channel is configured.
-
Whether the channel supports multiple threads for the same user.
Declaration
Swift
public let hasMultipleThreadsPerEndUser: Bool -
Whether the channel supports proactive chat features.
Declaration
Swift
public let isProactiveChatEnabled: Bool -
Whether OAuth authorization is enabled for the channel.
Declaration
Swift
public let isAuthorizationEnabled: Bool -
Indicates whether the Send Transcript feature is enabled for the channel.
Declaration
Swift
public let isSendTranscriptEnabled: Bool -
Details of attachment uploads allowed.
Declaration
Swift
public let fileRestrictions: FileRestrictions -
Currently handled features.
If the feature is no longer listed, it is by default on.
Declaration
Swift
public let features: [String : Bool] -
Whether the service is available.
Declaration
Swift
public let isOnline: Bool -
Whether the channel is liveChat vs messaging
Declaration
Swift
public let isLiveChat: Bool -
The authentication type for this channel.
Determines which authentication method to use when connecting to this channel.
Declaration
Swift
public let authenticationType: AuthenticationType
-
init(hasMultipleThreadsPerEndUser:isProactiveChatEnabled: isAuthorizationEnabled: isSendTranscriptEnabled: fileRestrictions: features: isOnline: isLiveChat: authenticationType: ) Creates a new channel configuration with the provided options and capabilities.
Declaration
Swift
public init( hasMultipleThreadsPerEndUser: Bool, isProactiveChatEnabled: Bool, isAuthorizationEnabled: Bool, isSendTranscriptEnabled: Bool, fileRestrictions: FileRestrictions, features: [String: Bool], isOnline: Bool, isLiveChat: Bool, authenticationType: AuthenticationType )Parameters
hasMultipleThreadsPerEndUserWhether the channel supports multiple concurrent threads for the same end user.
isProactiveChatEnabledIndicates if proactive chat features are enabled.
isAuthorizationEnabledIndicates if OAuth-based authorization is required/enabled for the channel.
isSendTranscriptEnabledWhether the Send Transcript feature is enabled.
fileRestrictionsConstraints describing allowed uploads for this channel.
featuresA dictionary of feature flags currently handled by the client; if a feature is not present, it is considered on by default.
isOnlineWhether the service is currently available.
isLiveChatWhether the channel operates as live chat (as opposed to messaging).
authenticationTypeThe authentication method required for this channel.
View on GitHub