https://github.com/felipebaltazar/maui.auto.car
Android Auto and Apple Car Play implementations for .net Maui
https://github.com/felipebaltazar/maui.auto.car
android-auto android-car apple-carplay auto carplay dotnet-maui maui xamarin-forms xaml
Last synced: about 2 months ago
JSON representation
Android Auto and Apple Car Play implementations for .net Maui
- Host: GitHub
- URL: https://github.com/felipebaltazar/maui.auto.car
- Owner: felipebaltazar
- License: mit
- Created: 2024-10-31T04:10:43.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-31T12:59:18.000Z (7 months ago)
- Last Synced: 2025-04-05T19:49:49.468Z (about 2 months ago)
- Topics: android-auto, android-car, apple-carplay, auto, carplay, dotnet-maui, maui, xamarin-forms, xaml
- Language: C#
- Homepage:
- Size: 222 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Maui.Auto.Car
You can now draw your UI centered at a cross-platform level, for Android Auto and Apple CarPlay.Based on this amazing tutorial from Christian Strydom
https://github.com/christian-strydom/MauiForCars

## Setup
In the MauiProgram, you must add `AddMauiAutoCar` and define the startup page.
```csharp
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp()
.AddMauiAutoCar() //Define the startpage
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});#if DEBUG
builder.Logging.AddDebug();
#endifreturn builder.Build();
}
}
```### Android
You will need to include these meta-data to your android manifest
```xml
````Example:
```xml
```
-------------
## Environment
Here you will find some tips to debug and run the Android Auto and Apple Car Play applications.
### Android Auto Emulator
https://developer.android.com/training/cars/testing/dhu?hl=pt-br
### Apple Car Play Simulator
https://medium.com/@paereson/how-to-open-carplay-simulator-on-real-device-in-xcode-14-6a8399564b8b