menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IChatMessageConverter - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IChatMessageConverter

    Defines methods that can be used to convert data objects to chat messages and vice versa.

    Namespace: Syncfusion.XForms.Chat
    Assembly: Syncfusion.SfChat.XForms.dll
    Syntax
    public interface IChatMessageConverter

    Methods

    ConvertToChatMessage(Object, SfChat)

    Converts given data object to a chat message.

    Declaration
    IMessage ConvertToChatMessage(object data, SfChat chat)
    Parameters
    Type Name Description
    System.Object data

    The data object to be converted as a chat message.

    SfChat chat

    Instance of SfChat.

    Returns
    Type Description
    IMessage

    Returns the data object as a chat message.

    ConvertToData(Object, SfChat)

    Converts the given chat message to a data object.

    Declaration
    object ConvertToData(object chatMessage, SfChat chat)
    Parameters
    Type Name Description
    System.Object chatMessage

    The chat message that is to be converted as a data object.

    SfChat chat

    Instance of SfChat.

    Returns
    Type Description
    System.Object

    Returns the chat message as a data object.

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