InterfaceIChatAttachedFileConverter
Interface that defines how chat attachments should be converted.
Definition
Namespace:Telerik.Maui.Controls.Chat
Assembly:Telerik.Maui.Controls.dll
Syntax:
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
ChatAttachedFile ConvertToChatAttachedFile(object dataItem, ChatAttachedFileConverterContext context)
Parameters
dataItem
The item to be converted.
context
ChatAttachedFileConverterContext
The respective ChatAttachedFileConverterContext.
Returns
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
object ConvertToDataItem(IFileInfo fileToAttach, ChatAttachedFileConverterContext context)
Parameters
fileToAttach
The file to be converted and attached.
context
ChatAttachedFileConverterContext
The respective ChatAttachedFileConverterContext.
Returns
The corresponding data item.