Interface
IChatAttachedFileConverter

Interface that defines how chat attachments should be converted.

Definition

Namespace:Telerik.Maui.Controls.Chat

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public interface IChatAttachedFileConverter

Methods

ConvertToChatAttachedFile(object, ChatAttachedFileConverterContext)

Converts a data item to a chat attachment. In general here you need to create and set up the corresponding ChatAttachedFile for the given business object.

Declaration

cs-api-definition
ChatAttachedFile ConvertToChatAttachedFile(object dataItem, ChatAttachedFileConverterContext context)

Parameters

dataItem

object

The item to be converted.

context

ChatAttachedFileConverterContext

The respective ChatAttachedFileConverterContext.

Returns

ChatAttachedFile

An ChatAttachedFile instance.

ConvertToDataItem(IFileInfo, ChatAttachedFileConverterContext)

Converts a file pick result to a data item attachment. In general here you need to create an instance of your business object that the RadChat will try to add automatically to the AttachedFilesSource collection.

Declaration

cs-api-definition
object ConvertToDataItem(IFileInfo fileToAttach, ChatAttachedFileConverterContext context)

Parameters

fileToAttach

IFileInfo

The file to be converted and attached.

context

ChatAttachedFileConverterContext

The respective ChatAttachedFileConverterContext.

Returns

object

The corresponding data item.