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(FileResult)

Initializes a new instance of the class with a FileResult that is the result of the end user picking a file via the PickFileCommand.

Declaration

cs-api-definition
public ChatAttachedFile(FileResult fileResult)

Parameters

fileResult

FileResult

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

FileResult

Gets the relevant FileResult instance if the attached file was created from a .

Declaration

cs-api-definition
public FileResult FileResult { get; }

Property Value

FileResult

FileSize

Gets or sets the size of the attachment in bytes.

Declaration

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

Property Value

long

FullFilePath

Gets or sets the full file path, if available, of the attachment that will be displayed in the message.

Declaration

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

Property Value

string

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>>