Share via


CPMapTemplateDelegate.ShouldShowNotificationForNavigationAlert Method

Definition

Method that is called to determine whether a navigation alert should be shown when the app is running in the background.

[Foundation.Export("mapTemplate:shouldShowNotificationForNavigationAlert:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool ShouldShowNotificationForNavigationAlert(CarPlay.CPMapTemplate mapTemplate, CarPlay.CPNavigationAlert navigationAlert);
[<Foundation.Export("mapTemplate:shouldShowNotificationForNavigationAlert:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ShouldShowNotificationForNavigationAlert : CarPlay.CPMapTemplate * CarPlay.CPNavigationAlert -> bool
override this.ShouldShowNotificationForNavigationAlert : CarPlay.CPMapTemplate * CarPlay.CPNavigationAlert -> bool

Parameters

mapTemplate
CPMapTemplate

The template for the map to query.

navigationAlert
CPNavigationAlert

The navigation alert about which to query.

Returns

true if the navigation alert should be shown. Otherwise, false.

Implements

Attributes

Applies to