# ReadCallbackArgs

> Argument passed to the read callback when an asynchronous [read](https://titaniumsdk.com/docs/sdk/Titanium.Stream.md#read) operation finishes.

- Source: https://titaniumsdk.com/docs/sdk/12.6.2/ReadCallbackArgs
- Titanium SDK version: 12.6.2
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 1.7
- Extends: ErrorResponse
- Inheritance: ErrorResponse

## Properties

### bytesProcessed

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

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

### code

- Type: Number
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 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

- Type: String
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.1.0

Error message, if any returned.

Will be undefined if `success` is `true`.

### source

- Type: Titanium.IOStream
- Platforms: Android, iPhone, iPad, macOS

Stream being read.

### success

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK 3.1.0

Indicates if the operation succeeded.

Returns `true` if request succeeded, `false` otherwise.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

