Class: GarminFacilityWaypointCache
Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:8
A Garmin-specific implementation of FacilityWaypointCache.
Implements
FacilityWaypointCache
Properties
size
readonly
size: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
FacilityWaypoint
<T
>
A waypoint.
Implementation of
FacilityWaypointCache.get
getCache()
static
getCache(bus
):GarminFacilityWaypointCache
Defined in: src/garminsdk/navigation/GarminFacilityWaypointCache.ts:58
Gets a FacilityWaypointCache instance.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
Returns
GarminFacilityWaypointCache
A FacilityWaypointCache instance.