Class FilePayload

Definition

Namespace:
Tizen.Applications.Cion
Assembly:
Tizen.Applications.Cion.dll
API Level:
9

A class to represent file type payload.

C#
Copy
public class FilePayload : Payload
Inheritance
FilePayload

Constructors

View Source

FilePayload(String)

The constructor of FilePayload class.

Declaration
C#
Copy
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.

API Level: 9

Properties

View Source

PayloadType

Gets type of the payload.

Declaration
C#
Copy
public override PayloadType PayloadType { get; }
Property Value
Type Description
PayloadType
Overrides
API Level: 9
View Source

ReceivedBytes

Gets size of received file.

Declaration
C#
Copy
public UInt64 ReceivedBytes { get; }
Property Value
Type Description
UInt64
API Level: 9
View Source

ReceivedFileName

Gets the name of received file.

Declaration
C#
Copy
public string ReceivedFileName { get; }
Property Value
Type Description
String
API Level: 9
View Source

TotalBytes

Gets total size of the file.

Declaration
C#
Copy
public UInt64 TotalBytes { get; }
Property Value
Type Description
UInt64
API Level: 9

Methods

View Source

SaveAsFile(String)

Saves file of payload to speicific path.

Declaration
C#
Copy
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.

API Level: 9

Extension Methods