Skip to content
Titanium SDK
Version12.7.0

You are reading 12.7.0. See this page in 13.4.1.

ReadCallbackArgs

pseudoAndroidiPhoneiPadmacOSsince 1.7

Extends ErrorResponse

Argument passed to the read callback when an asynchronous read 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.