menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MessageBase - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MessageBase

    Represents a base class which contains the functionality for all the message types in SfChat.

    Inheritance
    System.Object
    MessageBase
    TextMessage
    Implements
    IMessage
    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

    DeliveryStateProperty

    Identifies the DeliveryState Microsoft.Maui.Controls.BindableProperty.

    Declaration
    public static readonly BindableProperty DeliveryStateProperty
    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

    DeliveryState

    Gets or sets the delivery status of a message.

    Declaration
    public DeliveryStates DeliveryState { get; set; }
    Property Value
    Type Description
    DeliveryStates

    A enum value representing the message's delivery state.

    Remarks

    The Default Value of the Delivery State is None. This property reflects the current state of message delivery, such as None, Failed, Sent, Delivered, or Seen. UI components can bind to this property to update the visual representation of the message status.

    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

    Implements

    IMessage
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved