Public Member Functions | |
| void | AddContentTypeParameter (string name, string val) |
| void | AddCustomHeader (string headerName, string headerValue) |
| string | ExportPlainFile () |
| Linphone.Content | FindPartByHeader (string headerName, string headerValue) |
| string | GetCustomHeader (string headerName) |
| Linphone.Content | GetPart (int index) |
| void | SetBuffer (uint buffer, long size) |
| void | SetKey (string key, long keyLength) |
Properties | |
| uint | Buffer [get] |
| long | CreationTimestamp [get] |
| string | Disposition [get, set] |
| string | Encoding [get, set] |
| int | FileDuration [get, set] |
| string | FilePath [get, set] |
| long | FileSize [get] |
| bool | IsFile [get] |
| bool | IsFileEncrypted [get] |
| bool | IsFileTransfer [get] |
| bool | IsIcalendar [get] |
| bool | IsMultipart [get] |
| bool | IsText [get] |
| bool | IsVoiceRecording [get] |
| string | Key [get] |
| long | KeySize [get] |
| string | Name [get, set] |
| IEnumerable< Linphone.Content > | Parts [get] |
| string | PlainFilePath [get] |
| string | RelatedChatMessageId [get] |
| long | Size [get, set] |
| string | StringBuffer [get, set] |
| string | Subtype [get, set] |
| string | Type [get, set] |
| string | Utf8Text [get, set] |
Additional Inherited Members | |
Protected Member Functions inherited from Linphone.LinphoneObject | |
| static String | linphone_pointer_to_string (IntPtr ptr) |
| static IntPtr | linphone_string_to_pointer ([MarshalAs(LinphoneWrapper.ByteStringMarshalling)] String str) |
| IntPtr | StringArrayToBctbxList (IEnumerable< string > stringlist) |
| void | CleanStringArrayPtrs (IntPtr l) |
This object holds data that can be embedded in a signaling message or IM message.
Use Linphone.Core.CreateContent() to create it, and then you should set at least it's type and subtype and fill the buffer with your data. A Linphone.Content can be multipart (contain other contents), have file information (name, path, size), be encrypted, have custom headers, etc...
|
inline |
Adds a parameter to the ContentType header.
| name | the name of the parameter to add. |
| val | the value of the parameter to add. |
|
inline |
Adds a custom header in a content.
| headerName | The name of the header to add. |
| headerValue | The value of the header to add. |
|
inline |
Generates a temporary plain copy of the file and returns its paths The caller is responsible to then delete this temporary copy and the returned string.
|
inline |
Find a part from a multipart content looking for a part header with a specified value.
| headerName | The name of the header to look for. |
| headerValue | The value of the header to look for. |
|
inline |
Get a custom header value of a content.
| headerName | The name of the header to get the value from. |
|
inline |
Get a part from a multipart content according to its index.
| index | The index of the part to get. |
|
inline |
Set the content data buffer, usually a string.
| buffer | The content data buffer. |
| size | The size of the content data buffer. |
|
inline |
Set the key associated with a RCS file transfer message if encrypted.
| key | The key to be used to encrypt/decrypt file associated to this content. |
| keyLength | The lengh of the key. |
|
get |
Get the content data buffer, usually a string.
|
get |
Returns the creation timestamp if this content is a FileContent (received or sent by chat).
|
getset |
|
getset |
Get the encoding of the data buffer, for example "gzip".
|
getset |
Gets the file duration in seconds, if information is available.
|
getset |
Get the file transfer filepath set for this content (replace linphone_chat_message_get_file_transfer_filepath).
|
get |
Get the file size if content is either a FileContent or a FileTransferContent.
|
get |
Tells whether or not this content contains a file.
|
get |
Tells whether or not this content contains an encrypted file.
|
get |
Tells whether or not this content is a file transfer.
|
get |
Tells whether or not this content contains an icalendar by checking it's content type.
|
get |
Tell whether a content is a multipart content.
|
get |
Tells whether or not this content contains text.
|
get |
Tells whether or not this content contains a voice recording by checking it's content type.
|
get |
Get the key associated with a RCS file transfer message if encrypted.
|
get |
Get the size of key associated with a RCS file transfer message if encrypted.
|
getset |
Get the name associated with a RCS file transfer message.
It is used to store the original filename of the file to be downloaded from server.
|
get |
Get all the parts from a multipart content.
|
get |
Generates a temporary plain copy of the file and returns its paths The caller is responsible to then delete this temporary copy and the returned string.
Deprecated : 2022-01-07. Use Linphone.Content.ExportPlainFile() instead.
|
get |
Returns the chat message id for which this content is related to, if any.
|
getset |
Get the content data buffer size, excluding null character despite null character is always set for convenience.
|
getset |
Get the string content data buffer.
Deprecated : 2020-07-01. Use Linphone.Content.Utf8Text instead.
|
getset |
Get the mime subtype of the content data.
|
getset |
Get the mime type of the content data.
|
getset |
Get the string content data buffer.
Introduced in 01/07/2020