org.bluez.obex.Transfer๐Ÿ”—

BlueZ D-Bus OBEX Transfer API documentation๐Ÿ”—

Version:

BlueZ

Date:

October 2023

Manual section:

5

Manual group:

Linux System Administration

Interface๐Ÿ”—

Service:

org.bluez.obex

Interface:

org.bluez.obex.Transfer1

Object path:

[Session object path]/transfer{#}

Methods๐Ÿ”—

void Cancel()๐Ÿ”—

Cancels the current transference.

Possible errors:

org.bluez.obex.Error.NotAuthorized:

org.bluez.obex.Error.InProgress:

org.bluez.obex.Error.Failed:

void Suspend()๐Ÿ”—

Suspends transference.

Possible errors:

org.bluez.obex.Error.NotAuthorized:

org.bluez.obex.Error.NotInProgress:

If transfer is still in with Status โ€œqueuedโ€.

void Resume()๐Ÿ”—

Resumes transference previously suspended with use of Suspend() method.

Possible errors:

org.bluez.obex.Error.NotAuthorized:

org.bluez.obex.Error.NotInProgress:

If transfer is still in with Status โ€œqueuedโ€.

Properties๐Ÿ”—

string Status [readonly]๐Ÿ”—

Indicates the current status of the transfer.

Possible values:

โ€œqueuedโ€:

โ€œactiveโ€:

โ€œsuspendedโ€:

โ€œcompleteโ€:

โ€œerrorโ€:

object Session [readonly]๐Ÿ”—

The object path of the session the transfer belongs to.

string Name [readonly, optional]๐Ÿ”—

Name of the object being transferred.

Either Name or Type or both will be present.

string Type [readonly, optional]๐Ÿ”—

Type of the object transferred being transferred.

Either Name or Type or both will be present.

uint64 Time [readonly, optional]๐Ÿ”—

Time of the object being transferred if this is provided by the remote party.

uint64 Size [readonly, optional]๐Ÿ”—

Size of the object being transferred.

If the size is unknown, then this property will not be present.

uint64 Transferred [readonly, optional]๐Ÿ”—

Number of bytes transferred.

For transfers with Status set to โ€œqueuedโ€, this value will not be present.

string Filename [readonly, optional]๐Ÿ”—

Complete name of the file being received or sent.

For incoming object push transaction, this will be the proposed default location and name. It can be overwritten by the AuthorizePush() in org.bluez.obex.Agent(5) and will be then updated accordingly.