Class
ChatAttachedFile

Represents an attached file in the ChatInputArea.

Definition

Namespace:Telerik.Maui.Controls.Chat

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class ChatAttachedFile : NotifyPropertyChangedBase, INotifyPropertyChanged

Inheritance: objectNotifyPropertyChangedBaseChatAttachedFile

Implements: INotifyPropertyChanged

Inherited Members NotifyPropertyChangedBase.OnPropertyChanged(string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, string)NotifyPropertyChangedBase.UpdateValue<T>(ref T, T, Action<T>, string)NotifyPropertyChangedBase.PropertyChanged

Constructors

ChatAttachedFile()

Initializes a new instance of the class.

Declaration

cs-api-definition
public ChatAttachedFile()

ChatAttachedFile(IFileInfo)

Initializes a new instance of the class with a IFileInfo.

Declaration

cs-api-definition
public ChatAttachedFile(IFileInfo file)

Parameters

file

IFileInfo

Properties

Data

Gets or sets some custom information about the particular item. The RadChat does not use this property anywhere, use this to carry a payload of information for your convenience.

Declaration

cs-api-definition
public object Data { get; set; }

Property Value

object

FileName

Gets or sets the short file name of the attachment that will be displayed in the message.

Declaration

cs-api-definition
public string FileName { get; set; }

Property Value

string

FileSize

Gets or sets the size of the attachment in bytes.

Declaration

cs-api-definition
public long FileSize { get; set; }

Property Value

long

GetFileStream

Gets or sets the func that provides a stream of the attachment.

Declaration

cs-api-definition
public Func<Task<Stream>> GetFileStream { get; set; }

Property Value

Func<Task<Stream>>