VrInputEventPool class
Fixed-capacity pool for VrInputEvent instances.
The pool preallocates all events. Exhaustion throws instead of allocating a fallback object, preserving deterministic behavior on low-memory phones.
Constructors
- VrInputEventPool({int capacity = 64})
Properties
- availableCount → int
-
no setter
- capacity → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inUseCount → int
-
no setter
- peakInUse → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalAcquisitions → int
-
no setter
Methods
-
acquire(
{required VrInputType type, required VrInputSource source, required int timestampMicrosecondsSinceEpoch, String? targetId, Map< String, dynamic> ? data, bool active = true}) → VrInputEvent -
assertNoLeaks(
) → void - Throws when a driver forgot to return one or more events.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
VrInputEvent event) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited