-
Notifications
You must be signed in to change notification settings - Fork 318
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
CarPlay refactoring and bugfixing. #3219
Conversation
693f3ec
to
884f728
Compare
ff3ffa9
to
d08cce9
Compare
@@ -306,10 +306,9 @@ extension CarPlayMapViewController: StyleManagerDelegate { | |||
} | |||
|
|||
public func styleManager(_ styleManager: StyleManager, didApply style: Style) { | |||
let styleURL = style.previewMapStyleURL |
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.
Fixes #3224. There should be an ability to change MapView
style URL similarly to iOS.
/** | ||
Delegate method, which allows to observe when template presented by the `CarPlayManager` will | ||
appear on the screen. | ||
*/ | ||
func carPlayManager(_ carPlayManager: CarPlayManager, | ||
templateWillAppear template: CPTemplate, | ||
animated: Bool) | ||
|
||
/** | ||
Delegate method, which allows to observe when template presented by the `CarPlayManager` did | ||
appear on the screen. | ||
*/ | ||
func carPlayManager(_ carPlayManager: CarPlayManager, | ||
templateDidAppear template: CPTemplate, | ||
animated: Bool) | ||
|
||
/** | ||
Delegate method, which allows to observe when template presented by the `CarPlayManager` will | ||
disappear from the screen. | ||
*/ | ||
func carPlayManager(_ carPlayManager: CarPlayManager, | ||
templateWillDisappear template: CPTemplate, | ||
animated: Bool) | ||
|
||
/** | ||
Delegate method, which allows to observe when template presented by the `CarPlayManager` did | ||
disappear from the screen. | ||
*/ | ||
func carPlayManager(_ carPlayManager: CarPlayManager, | ||
templateDidDisappear template: CPTemplate, | ||
animated: 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.
Delegate methods, which were added in scope of #3220.
cee1849
to
107969b
Compare
107969b
to
76f3ac2
Compare
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.
Mostly documentation nits, but the removal of previewMapStyleURL
usage would be a regression. Maybe I’m misunderstanding the impetus for that change though.
5c35d70
to
308505f
Compare
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.
Sorry, these suggestions didn’t take for some reason. Looks good overall.
…ack when template is being presented or dismissed. Improve documentation. Minor styling changes.
a8969d9
to
033d827
Compare
Description
PR brings some improvements and changes, which are needed for mapbox/mapbox-navigation-ios-examples#134.
Also fixes:
CarPlayManager.interfaceController.delegate
should not change internalCarPlayManager
behavior. #3220Custom style cannot be applied forCarPlayMapViewController
. #3224