findFeatureOverrideProvider Method

Locate the first registered FeatureOverrideProvider matching the supplied criterion.

findFeatureOverrideProvider(predicate: (provider: FeatureOverrideProvider) => boolean): undefined | FeatureOverrideProvider

@returns The first registered provider that matches the predicate, or undefined if no providers match the predicate.

@see - Viewport.findFeatureOverrideProviderOfType to locate a provider of a specific class.

Parameter Type Description
predicate (provider: FeatureOverrideProvider) => boolean A function that will be invoked for each provider currently registered with the viewport, returning true to accept the provider.

Returns - undefined | FeatureOverrideProvider

The first registered provider that matches the predicate, or undefined if no providers match the predicate.

Defined in

Last Updated: 19 April, 2024