CreationKit Documentation

Enumeration System​Message.​Style

public enum Style  

The style of the SystemMessage.

You can use these styles to quickly format system messages.

Member Of

SystemMessage

Use this MessageType when the Sender is a SystemSender

Enumeration Cases

transfer

case transfer(from: String, to: String) 

Used for transfers from one user to another.

A user is messaging a provider and is transferred to another provider would be an example.

file

case file(from: String) 

Used to show that the user uploaded a file that the view controller may not visually support rendering of.

file​Request

case fileRequest(from: String, to: String) 

Used to show that a file request was sent to the user.

chat​Started

case chatStarted(by: String) 

Used to show that a conversation was started by someone.

chat​Ended

case chatEnded(by: String) 

Used to show that the conversation has ended.

enter

case enter(by: String) 

Used to show that another user entered the conversation.

exit

case exit(by: String) 

Used to show that a user left the conversation.

custom

case custom(
      string: String,
      foregroundColor: UIColor = ColorManager.Neutral.fiveHundred,
      showsDate: Bool = false
     ) 

A custom style