AnnotationGeoCache class

Caches each annotation's bearing and distance from the user, which only change when the user or the annotation moves, instead of recomputing them for every annotation on every frame. Keep one instance per view and pass it to each AnnotationLayoutEngine.layout call.

Constructors

AnnotationGeoCache()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare(Position deviceLocation, int annotationCount) → void
Invalidates everything when the user moved, and drops entries of annotations that are no longer laid out.
restore(ArAnnotation annotation) → bool
Restores annotation's azimuth and distance; false when unknown or stale (the annotation moved).
store(ArAnnotation annotation) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited