app :: App :: poll_looper
ALooper_pollAll
to retrieve events and callback the application
# Call the `ALooper_pollAll` to retrieve events and callback the application
fun poll_looper(timeout_ms: Int) import handle_looper_event `{
int ident;
int event;
void* source;
while ((ident=ALooper_pollAll(timeout_ms, NULL, &event, &source)) >= 0) {
App_handle_looper_event(self, ident, event, source);
}
`}
lib/android/native_app_glue.nit:233,2--241,3