Class MessageBase
Represents a base class which contains the functionality for all the message types in SfChat.
Implements
Namespace: Syncfusion.Maui.Chat
Assembly: Syncfusion.Maui.Chat.dll
Syntax
public abstract class MessageBase : BindableObject, IMessage
Constructors
MessageBase()
Initializes a new instance of the MessageBase class.
Declaration
public MessageBase()
Fields
AuthorProperty
Identifies the Author Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty AuthorProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
DataProperty
Identifies the Data Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty DataProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
DateTimeProperty
Identifies the DateTime Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty DateTimeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
HideAfterSelectionProperty
Identifies the HideAfterSelection Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty HideAfterSelectionProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
SuggestionsProperty
Identifies the Suggestions Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty SuggestionsProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
Author
Gets or sets the information about the author of a message.
Declaration
public Author Author { get; set; }
Property Value
Type |
---|
Author |
Data
Gets or sets the data object of this message.
Declaration
public object Data { get; set; }
Property Value
Type |
---|
System.Object |
DateTime
Gets or sets the date time details when the message was created.
Declaration
public DateTime DateTime { get; set; }
Property Value
Type |
---|
System.DateTime |
HideAfterSelection
Gets or sets a value indicating whether the message content like card, date picker, time picker, calendar should be hidden after user selects a card, date or time from the message.
Declaration
public bool HideAfterSelection { get; set; }
Property Value
Type |
---|
System.Boolean |
IsMessageContentHiddenAfterSelection
Gets or sets a value indicating whether the message content like card, date picker, time picker, is hidden after user selects a card, date or time from the message.
Declaration
public bool IsMessageContentHiddenAfterSelection { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
This property is meant for internal purposes only and should not be handled in application. Upon implementing the interface only add a getter and setter for the property without any other code logic implementation.
IsSuggestionViewHiddenAfterSelection
Gets or sets a value indicating whether suggestion view is hidden after a suggestion item is selected.
Declaration
public bool IsSuggestionViewHiddenAfterSelection { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
This property is meant for internal purposes only and should not be handled in application. Upon implementing the interface only add a getter and setter for the property without any other code logic implementation.
Suggestions
Gets or sets the list of items to be displayed as response to a user message, the orientation of the items, its spacing and wrapping behavior. The suggestions will be displayed directly below the message as part of the message view.
Declaration
public ChatSuggestions Suggestions { get; set; }
Property Value
Type |
---|
ChatSuggestions |