Class: GarminFacilityWaypointCache
Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:8
A Garmin-specific implementation of FacilityWaypointCache.
Implements
Properties
size
readonlysize:number
Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:18
The maximum size of this cache.
Methods
get()
get<
T>(facility):FacilityWaypoint<T>
Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:26
Gets a waypoint from the cache for a specific facility. If one does not exist, a new waypoint will be created.
Type Parameters
| Type Parameter |
|---|
T extends Facility |
Parameters
| Parameter | Type | Description |
|---|---|---|
facility | Facility | The facility for which to get a waypoint. |
Returns
A waypoint.
Implementation of
getCache()
staticgetCache(bus):GarminFacilityWaypointCache
Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:58
Gets a GarminFacilityWaypointCache instance.
Parameters
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
Returns
GarminFacilityWaypointCache
A GarminFacilityWaypointCache instance.