All Projects → hansemannn → Ios12 Carplay Example

hansemannn / Ios12 Carplay Example

Licence: mit
An example of using the CarPlay framework in iOS 12 and later.

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Ios12 Carplay Example

Space rocks
Asteroids-like game made with Godot Engine 3.0.
Stars: ✭ 20 (-51.22%)
Mutual labels:  example
Terraform Sqs Lambda Trigger Example
Example on how to create a AWS Lambda triggered by SQS in Terraform
Stars: ✭ 31 (-24.39%)
Mutual labels:  example
Kitchen In Travis
Chef cookbook example to run test-kitchen inside Travis CI.
Stars: ✭ 36 (-12.2%)
Mutual labels:  example
Pwa Example
A short example illustrating some essential steps for creating a progressive web app (PWA).
Stars: ✭ 28 (-31.71%)
Mutual labels:  example
Suicrux
🚀 Ultimate universal starter with lazy-loading, SSR and i18n. [not maintained]
Stars: ✭ 958 (+2236.59%)
Mutual labels:  example
Limbobyexample
Examples for the Limbo Programming Language
Stars: ✭ 34 (-17.07%)
Mutual labels:  example
Ionic3 Angular43 Httpclient
Example of Ionic 3 and the new Angular 4.3 HTTPClient
Stars: ✭ 20 (-51.22%)
Mutual labels:  example
Keras basic
keras를 이용한 딥러닝 기초 학습
Stars: ✭ 39 (-4.88%)
Mutual labels:  example
Pixar raytracer
Ported to Rust from https://mattwarren.org/2019/03/01/Is-CSharp-a-low-level-language/
Stars: ✭ 31 (-24.39%)
Mutual labels:  example
Elementarypython
Python application template for elementary OS.
Stars: ✭ 36 (-12.2%)
Mutual labels:  example
Generals.io Node.js Bot Example
An example Node.js bot for generals.io. Learn more at http://dev.generals.io/api#tutorial
Stars: ✭ 28 (-31.71%)
Mutual labels:  example
Extending Tea
Example of an extension to The Elm Architecture
Stars: ✭ 30 (-26.83%)
Mutual labels:  example
Rxjava Android Samples
Learning RxJava for Android by example
Stars: ✭ 7,520 (+18241.46%)
Mutual labels:  example
Expo Chroma Key Camera
Live green-screen effect with Expo and THREE.js
Stars: ✭ 28 (-31.71%)
Mutual labels:  example
Figmagic Example
Using Figmagic (simplifying design token generation and asset extraction) with Webpack 5, React 16, Styled Components.
Stars: ✭ 37 (-9.76%)
Mutual labels:  example
React Native Npm Version
Example of React-Native application with version from package.json and npm version bump.
Stars: ✭ 20 (-51.22%)
Mutual labels:  example
Adhokku
A toy PaaS
Stars: ✭ 32 (-21.95%)
Mutual labels:  example
Obs Studio Python Scripting Cheatsheet Obspython Examples Of Api
⚫️ OBS Studio API with Python
Stars: ✭ 40 (-2.44%)
Mutual labels:  example
Nwjs Edge Example1
An example using Edge in NW.js directly from the DOM
Stars: ✭ 38 (-7.32%)
Mutual labels:  example
Golang Docker Build Tutorial
A template project to create a minimal Docker image for a Go application
Stars: ✭ 36 (-12.2%)
Mutual labels:  example

iOS 12 CarPlay Example

An example of using the CarPlay framework in iOS 12 and later.

Summary

This sample project uses the CarPlay framework to start a simple navigation session from your existing project. It utilizes the CPApplicationDelegate to connect to your car, CPInterfaceController to attach your view controller and CPMapTemplate to show and example template as part of the "root template" of the controller.

Notes

Some general hints I have noticed so far:

  • CarPlay works primarily in "templates", not "views" or "controllers". It means that you cannot design your CarPlay screen like you would design your iOS app, but you need to provide information that is then displayed in the related template.
  • The connection is done via the CPApplicationDelegate delegate that inherits from the UIApplicationDelegate, so you usually handle it as part of your main app-delegate class.
  • Once connected, you can push and pop templates like you would do with view controllers
  • Data can be used by shared frameworks, networking or general persistence layer. In this example, I simply persist an encoded dictionary of latitude and longitude pairs in the UserDefaults and grab it for my CarPlay connection once ready.

More?

Let me know if you have further questions! As of for now, this is a tiny example to get your head around the whole framework, but it can be extended to show other template types like lists, grids and UI elements like alerts and notifications.

Author

Hans Knöchel (@hansemannnn / Web)

License

MIT

Contributing

Code contributions are greatly appreciated, please submit a new Pull-Request!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].