-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for heading calibration alert #1509
Conversation
|
@@ -40,3 +40,7 @@ internal class EmptyLocationProviderDelegate: LocationProviderDelegate { | |||
func locationProvider(_ provider: LocationProvider, didUpdateLocations locations: [CLLocation]) {} | |||
func locationProviderDidChangeAuthorization(_ provider: LocationProvider) {} | |||
} | |||
|
|||
internal protocol CalibratingLocationProviderDelegate: LocationProviderDelegate { | |||
func locationProviderShouldDisplayHeadingCalibration(_ locationProvider: LocationProvider) -> Bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed, we should have this as part of public LocationProviderDelegate
so custom LocationProvider
can have one possible channel of communicating back to LocationManager to consult whether or not should calibration alert be displayed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding another method to a public protocol would be a breaking change and we need to verify that methods with default implementation are dispatched correctly before using those.
Dismissed as the requested changes are done.
…) (#1509) * [CarPlay] Get associated scene of a window in CarPlay dashboard. - When a CarPlay application is displaying with a dashboard, a window in the dashboard scene will not have an associated windowScene, instead we need to check if the notification's scene if it contains the map's window and pause display link accordingly.
* [CarPlay] Get associated scene of a window in CarPlay dashboard. (#1503) (#1509) * [CarPlay] Get associated scene of a window in CarPlay dashboard. - When a CarPlay application is displaying with a dashboard, a window in the dashboard scene will not have an associated windowScene, instead we need to check if the notification's scene if it contains the map's window and pause display link accordingly. * [v10] Expose ModelLayer api (#1513) * Prepare release v10.13.1 (#1515) * Expose Style/addMode(modelId:modelUri:) as experimental) (#1521)
…) (#1509) * [CarPlay] Get associated scene of a window in CarPlay dashboard. - When a CarPlay application is displaying with a dashboard, a window in the dashboard scene will not have an associated windowScene, instead we need to check if the notification's scene if it contains the map's window and pause display link accordingly.
This PR adds a method to location manager's delegate protocol to provide the ability to display the heading calibration alert on top of the current window immediately.
Public API changes
LocationPermissionsDelegate.locationManagerShouldDisplayHeadingCalibration(_:) -> Bool
addedPull request checklist:
custom_categories
(scripts/doc-generation/.jazzy.yaml)## main
heading near the top).PRs must be submitted under the terms of our Contributor License Agreement CLA.