In your ist like suggested in Apple's docs: UIApplicationSceneManifestĬPTemplateApplicationSceneSessionRoleApplication I managed to build an Apple CarPlay app with Xamarin, although I used quite a different approach to what Suplanus did because I didn't create a music app, my approach followed the Apple docs approach more closely.įirst make sure your provisioning profile has the correct CarPlay entitlement.Īdd the entitlement to ist file. ![]() MPPlayableContentManager.Shared?.ReloadData() ![]() if you change the stations), you have to call this: public void ReloadStations() If (DeviceInfo.DeviceType = DeviceType.Virtual) We have to define the menu items count and how a menu item is displayed (name, icon, …): internal class PlayableContentDataSource : MPPlayableContentDataSource In my example I added radio stations with name and url. PlayableContentDataSource playableContentDataSource = new PlayableContentDataSource() PlayableContentDelegate playableContentDelegate = new PlayableContentDelegate() The delegates are registered as follow: public class CarIntegrationBridge : ICarIntegrationBridge In our iOS project we init the delegates in the AppDelegate.cs with CarIntegrationBridge.Init(). I made a blog post and an example on GitHub.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |