Skip to content
Titanium SDK
Version13.4.1

WriteCallbackArgs

pseudoAndroidiPhoneiPadmacOSsince 1.7

Extends ErrorResponse

Argument passed to the write callback when an asynchronous write operation finishes.

Properties 5

Number of bytes processed, or -1 in the event of an error or end of stream.

code

Numbersince 3.1.0

Error code. Returns 0 if success is true.

Error code will be 0 if success is true, nonzero otherwise. If the error was generated by the operating system, that system's error value is used. Otherwise, this value will be -1.

error

Stringsince 3.1.0

Error message, if any returned.

Will be undefined if success is true.

success

Booleansince 3.1.0

Indicates if the operation succeeded.

Returns true if request succeeded, false otherwise.