New to Telerik UI for Xamarin? Download free 30-day trial

Time Break

TimeBreak item of RadChat is intended to encapsulate a group of messages according to a certain condition, such as given time intervals or read/unread messages. It is visualized as a dividing line across the messages board with a text message attached to it.

TimeBreak derives from ChatItem and provides an additional Text property which holds the string message.

Adding a TimeBreak

You could create a sample TimeBreak item like this:

chat.Items.Add(new TextMessage { Author = bot, Text = "Hello there" });
chat.Items.Add(new TimeBreak() { Text = "Unread" });
chat.Items.Add(new TextMessage() { Author = bot, Text = "How are you today?"});

And here is the result:

Chat Message

See Also

In this article