Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + type ALooper = capi.ALooper + type ALooper_callbackFunc = capi.ALooper_callbackFunc + type ASensorList = capi.ASensorList + type ASensorRef = capi.ASensorRef + type AdditionalInfoEvent struct + func NewAdditionalInfoEventFromPointer(ptr unsafe.Pointer) *AdditionalInfoEvent + func (h *AdditionalInfoEvent) Pointer() unsafe.Pointer + type DynamicSensorEvent struct + func NewDynamicSensorEventFromPointer(ptr unsafe.Pointer) *DynamicSensorEvent + func (h *DynamicSensorEvent) Pointer() unsafe.Pointer + type Error int32 + func (e Error) Error() string + type EventQueue struct + func NewEventQueueFromPointer(ptr unsafe.Pointer) *EventQueue + func (h *EventQueue) DisableSensor(sensor *Sensor) error + func (h *EventQueue) EnableSensor(sensor *Sensor) error + func (h *EventQueue) GetEvents(events *SensorEvent, count uint64) int64 + func (h *EventQueue) HasEvents() int32 + func (h *EventQueue) Pointer() unsafe.Pointer + func (h *EventQueue) RegisterSensor(sensor *Sensor, samplingPeriodUs int32, maxBatchReportLatencyUs int64) error + func (h *EventQueue) RequestAdditionalInfoEvents(enable bool) error + func (h *EventQueue) SetEventRate(sensor *Sensor, usec int32) error + type HardwareBuffer struct + func NewHardwareBufferFromPointer(ptr unsafe.Pointer) *HardwareBuffer + func (h *HardwareBuffer) Pointer() unsafe.Pointer + type HeadTrackerEvent struct + func NewHeadTrackerEventFromPointer(ptr unsafe.Pointer) *HeadTrackerEvent + func (h *HeadTrackerEvent) Pointer() unsafe.Pointer + type HeadingEvent struct + func NewHeadingEventFromPointer(ptr unsafe.Pointer) *HeadingEvent + func (h *HeadingEvent) Pointer() unsafe.Pointer + type HeartRateEvent struct + func NewHeartRateEventFromPointer(ptr unsafe.Pointer) *HeartRateEvent + func (h *HeartRateEvent) Pointer() unsafe.Pointer + type LimitedAxesImuEvent struct + func NewLimitedAxesImuEventFromPointer(ptr unsafe.Pointer) *LimitedAxesImuEvent + func (h *LimitedAxesImuEvent) Pointer() unsafe.Pointer + type LimitedAxesImuUncalibratedEvent struct + func NewLimitedAxesImuUncalibratedEventFromPointer(ptr unsafe.Pointer) *LimitedAxesImuUncalibratedEvent + func (h *LimitedAxesImuUncalibratedEvent) Pointer() unsafe.Pointer + type Manager struct + func ASensorManager_getInstanceForPackage(packageName string) *Manager + func GetInstance() *Manager + func NewManagerFromPointer(ptr unsafe.Pointer) *Manager + func (h *Manager) ConfigureDirectReport(sensor *Sensor, channelID int32, rate int32) error + func (h *Manager) CreateEventQueue(looper *ALooper, ident int32, callback ALooper_callbackFunc, ...) *EventQueue + func (h *Manager) CreateHardwareBufferDirectChannel(buffer *HardwareBuffer, size uint64) error + func (h *Manager) CreateSharedMemoryDirectChannel(fd int32, size uint64) error + func (h *Manager) DefaultSensor(_type Type) *Sensor + func (h *Manager) DestroyDirectChannel(channelID int32) + func (h *Manager) DestroyEventQueue(queue *EventQueue) error + func (h *Manager) GetDefaultSensorEx(_type Type, wakeUp bool) *Sensor + func (h *Manager) GetDynamicSensorList(list *ASensorList) int64 + func (h *Manager) Pointer() unsafe.Pointer + type MetaDataEvent struct + func NewMetaDataEventFromPointer(ptr unsafe.Pointer) *MetaDataEvent + func (h *MetaDataEvent) Pointer() unsafe.Pointer + type REPORTING_MODE int32 + const AREPORTING_MODE_CONTINUOUS + const AREPORTING_MODE_INVALID + const AREPORTING_MODE_ONE_SHOT + const AREPORTING_MODE_ON_CHANGE + const AREPORTING_MODE_SPECIAL_TRIGGER + type SENSOR_ADDITIONAL_INFO int32 + const ASENSOR_ADDITIONAL_INFO_BEGIN + const ASENSOR_ADDITIONAL_INFO_END + const ASENSOR_ADDITIONAL_INFO_INTERNAL_TEMPERATURE + const ASENSOR_ADDITIONAL_INFO_SAMPLING + const ASENSOR_ADDITIONAL_INFO_SENSOR_PLACEMENT + const ASENSOR_ADDITIONAL_INFO_UNTRACKED_DELAY + const ASENSOR_ADDITIONAL_INFO_VEC3_CALIBRATION + type SENSOR_DIRECT_CHANNEL_TYPE int32 + const ASENSOR_DIRECT_CHANNEL_TYPE_HARDWARE_BUFFER + const ASENSOR_DIRECT_CHANNEL_TYPE_SHARED_MEMORY + type SENSOR_DIRECT_RATE int32 + const ASENSOR_DIRECT_RATE_FAST + const ASENSOR_DIRECT_RATE_NORMAL + const ASENSOR_DIRECT_RATE_STOP + const ASENSOR_DIRECT_RATE_VERY_FAST + type Sensor struct + func NewSensorFromPointer(ptr unsafe.Pointer) *Sensor + func (h *Sensor) GetFifoMaxEventCount() error + func (h *Sensor) GetFifoReservedEventCount() error + func (h *Sensor) GetHandle() error + func (h *Sensor) GetHighestDirectReportRateLevel() error + func (h *Sensor) GetReportingMode() error + func (h *Sensor) GetStringType() string + func (h *Sensor) IsDirectChannelTypeSupported(channelType int32) bool + func (h *Sensor) IsWakeUpSensor() bool + func (h *Sensor) MinDelay() int32 + func (h *Sensor) Name() string + func (h *Sensor) Pointer() unsafe.Pointer + func (h *Sensor) Resolution() float32 + func (h *Sensor) Type() int32 + func (h *Sensor) Vendor() string + type SensorEvent struct + func NewSensorEventFromPointer(ptr unsafe.Pointer) *SensorEvent + func (h *SensorEvent) Pointer() unsafe.Pointer + type SensorVector struct + func NewSensorVectorFromPointer(ptr unsafe.Pointer) *SensorVector + func (h *SensorVector) Pointer() unsafe.Pointer + type Status int32 + const AccuracyHigh + const AccuracyLow + const AccuracyMedium + const NoContact + const Unreliable + func (v Status) String() string + type Type int32 + const Accelerometer + const AccelerometerLimitedAxes + const AccelerometerLimitedAxesUncalibrated + const AccelerometerUncalibrated + const AdditionalInfo + const AmbientTemperature + const DynamicSensorMeta + const GameRotationVector + const GeomagneticRotationVector + const Gravity + const Gyroscope + const GyroscopeLimitedAxes + const GyroscopeLimitedAxesUncalibrated + const GyroscopeUncalibrated + const HeadTracker + const Heading + const HeartBeat + const HeartRate + const HingeAngle + const Invalid + const Light + const LinearAcceleration + const LowLatencyOffbodyDetect + const MagneticField + const MagneticFieldUncalibrated + const MotionDetect + const Pose6dof + const Pressure + const Proximity + const RelativeHumidity + const RotationVector + const SignificantMotion + const StationaryDetect + const StepCounter + const StepDetector + func (v Type) String() string + type UncalibratedEvent struct + func NewUncalibratedEventFromPointer(ptr unsafe.Pointer) *UncalibratedEvent + func (h *UncalibratedEvent) Pointer() unsafe.Pointer