共用方式為


CPMapTemplateDelegate_Extensions.ShouldShowNotificationForNavigationAlert 方法

定義

呼叫以判斷當應用程式在背景中執行時,是否應該顯示導覽警示的方法。

public static bool ShouldShowNotificationForNavigationAlert (this CarPlay.ICPMapTemplateDelegate This, CarPlay.CPMapTemplate mapTemplate, CarPlay.CPNavigationAlert navigationAlert);
static member ShouldShowNotificationForNavigationAlert : CarPlay.ICPMapTemplateDelegate * CarPlay.CPMapTemplate * CarPlay.CPNavigationAlert -> bool

參數

This
ICPMapTemplateDelegate

這個方法運作所在的 實例。

mapTemplate
CPMapTemplate

要查詢之地圖的範本。

navigationAlert
CPNavigationAlert

要查詢的導覽警示。

傳回

true 如果應該顯示導覽警示,則為 。 否則為 false

適用於