Class FilePayload
Definition
- Namespace:
- Tizen.Applications.Cion
- Assembly:
- Tizen.Applications.Cion.dll
A class to represent file type payload.
public class FilePayload : Payload
- Inheritance
Constructors
View SourceFilePayload(string)
The constructor of FilePayload class.
Declaration
public FilePayload(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of file for the FilePayload. |
Remarks
http://tizen.org/privilege/mediastorage is needed if the file path is relevant to media storage. http://tizen.org/privilege/externalstorage is needed if the file path is relevant to external storage.
Properties
View SourcePayloadType
Gets type of the payload.
Declaration
public override PayloadType PayloadType { get; }
Property Value
Type | Description |
---|---|
PayloadType |
Overrides
View SourceReceivedBytes
Gets size of received file.
Declaration
public UInt64 ReceivedBytes { get; }
Property Value
Type | Description |
---|---|
UInt64 |
ReceivedFileName
Gets the name of received file.
Declaration
public string ReceivedFileName { get; }
Property Value
Type | Description |
---|---|
string |
TotalBytes
Gets total size of the file.
Declaration
public UInt64 TotalBytes { get; }
Property Value
Type | Description |
---|---|
UInt64 |
Methods
View SourceSaveAsFile(string)
Saves file of payload to speicific path.
Declaration
public void SaveAsFile(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of file to save. |
Remarks
http://tizen.org/privilege/mediastorage is needed if the file path is relevant to media storage. http://tizen.org/privilege/externalstorage is needed if the file path is relevant to external storage.