Skip to main content

ChannelType

An enum describing possible types of a channel.

public enum ChannelType: Codable, Hashable 

Inheritance

Codable, Hashable

Initializers

init(from:)

public init(from decoder: Decoder) throws 

Enumeration Cases

livestream

Sensible defaults in case you want to build livestream chat like Instagram Livestream or Periscope.

case livestream

messaging

Configured for apps such as WhatsApp or Facebook Messenger.

case messaging

team

If you want to build your own version of Slack or something similar, start here.

case team

gaming

Good defaults for building something like your own version of Twitch.

case gaming

commerce

Good defaults for building something like your own version of Intercom or Drift.

case commerce

custom

The type of the channel is custom.

case custom(String)

Only small letters, underscore and numbers should be used

Properties

title

A channel type title.

public var title: String 

rawValue

A raw value of the channel type.

public var rawValue: String 

Methods

encode(to:)

public func encode(to encoder: Encoder) throws 

Did you find this page helpful?