event-loop

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Sensor event loop pattern combining sensor and looper packages.

Demonstrates sensor discovery and type enumeration using the idiomatic sensor package, and documents the complete ALooper-based event queue pattern in comments. The event queue creation requires low-level access (ASensorManager_createEventQueue), so the actual event loop is shown as a documented pattern rather than executable code.

The executable portion of this example:

  1. Gets the sensor manager singleton.
  2. Queries the default accelerometer and prints its properties.
  3. Enumerates common sensor types, checking availability on the device.

This program must run on an Android device.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL