Skip to content

Titanium.Stream.WriteCallbackArgs

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

Extends: ErrorResponse · Since: 1.7 · Platforms: android, iphone, ipad, macos

Properties #

bytesProcessed#

Type: Number

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

code#

Type: Number

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#

Type: String

Error message, if any returned.

Will be undefined if success is true.

source#

Type: Titanium.IOStream

Stream being written to.

success#

Type: Boolean

Indicates if the operation succeeded.

Returns true if request succeeded, false otherwise.

Titanium SDK Documentation