Transfer interface

Represents a Transfer Object

Properties

error

The transfer error code.

state

The transfer state.

Methods

off("stateChanged", PropertyChangedEvent)

Unsubscribe function for stateChanged event

on("stateChanged", PropertyChangedEvent)

Subscribe function for stateChanged event

Property Details

error

The transfer error code.

error?: TransferErrorCode

Property Value

state

The transfer state.

state: TransferState

Property Value

Method Details

off("stateChanged", PropertyChangedEvent)

Unsubscribe function for stateChanged event

function off(event: "stateChanged", listener: PropertyChangedEvent)

Parameters

event

"stateChanged"

event name

listener
PropertyChangedEvent

callback fn that was used to subscribe to this event

on("stateChanged", PropertyChangedEvent)

Subscribe function for stateChanged event

function on(event: "stateChanged", listener: PropertyChangedEvent)

Parameters

event

"stateChanged"

event name

listener
PropertyChangedEvent

callback fn that was used to subscribe to this event