# android_poll_source

`#include <android_native_app_glue.h>`

Data associated with an ALooper fd that will be returned as the "outData" when that source has data ready.

## Summary

| ### Public attributes ||
|---|---|
| `https://developer.android.com/reference/games/game-activity/structandroid/poll-source#structandroid__poll__source_1a216d0c0e22d09dcf8189baba94bf418b` | `struct https://developer.android.com/reference/games/game-activity/structandroid/app#structandroid__app *` The [android_app](https://developer.android.com/reference/games/game-activity/structandroid/app#structandroid__app) this ident is associated with. |
| `https://developer.android.com/reference/games/game-activity/structandroid/poll-source#structandroid__poll__source_1a2f89671f30d1c5c9126734040d670185` | `int32_t` The identifier of this source. |
| `https://developer.android.com/reference/games/game-activity/structandroid/poll-source#structandroid__poll__source_1a61471816a28992e54f6db07887694f4a)(struct android_app *app, struct android_poll_source *source)` | `void(*` Function to call to perform the standard processing of data from this source. |

## Public attributes

### app

```scdoc
struct android_app * android_poll_source::app
```
The [android_app](https://developer.android.com/reference/games/game-activity/structandroid/app#structandroid__app) this ident is associated with.

### id

```scdoc
int32_t android_poll_source::id
```
The identifier of this source.

May be LOOPER_ID_MAIN or LOOPER_ID_INPUT.

### process

```scdoc
void(* android_poll_source::process)(struct android_app *app, struct android_poll_source *source)
```
Function to call to perform the standard processing of data from this source.