Class: NavReferenceSourceCollection<SourceName>
A basic implementation of NavReferenceSources which stores the sources in a Map.
Type parameters
Name | Type | Description |
---|---|---|
SourceName | extends string | The names of the navigation reference sources supported by the collection. |
Implements
NavReferenceSources
<SourceName
>
Constructors
constructor
• new NavReferenceSourceCollection<SourceName
>(...sources
): NavReferenceSourceCollection
<SourceName
>
Creates a new instance of NavReferenceSourceCollection.
Type parameters
Name | Type |
---|---|
SourceName | extends string |
Parameters
Name | Type | Description |
---|---|---|
...sources | readonly NavReferenceSource <SourceName >[] | The navigation reference sources to include in the collection. |
Returns
NavReferenceSourceCollection
<SourceName
>
Defined in
src/garminsdk/navreference/source/NavReferenceSource.ts:47
Methods
get
▸ get(name
): NavReferenceSource
<SourceName
>
Gets a navigation reference source with a given name.
Parameters
Name | Type | Description |
---|---|---|
name | SourceName | The name of the source to get. |
Returns
NavReferenceSource
<SourceName
>
The specified navigation reference source.
Throws
Error if a source with the specified name could not be found.
Implementation of
Defined in
src/garminsdk/navreference/source/NavReferenceSource.ts:52