Class
ChatAttachment

Represents an attachment in a ChatAttachmentsMessage.

Definition

Namespace:Telerik.Maui.Controls.Chat

Assembly:Telerik.Maui.Controls.dll

Syntax:

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

Inheritance: objectNotifyPropertyChangedBaseChatAttachment

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

ChatAttachment()

Initializes a new instance of the class.

Declaration

cs-api-definition
public ChatAttachment()

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

GetShareFile

Gets or sets the func that provides a file for sharing.

Declaration

cs-api-definition
public Func<Task<ShareFile>> GetShareFile { get; set; }

Property Value

Func<Task<ShareFile>>