An open API service indexing awesome lists of open source software.

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

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

![image](https://github.com/user-attachments/assets/3685a33c-48d5-4f9f-9e06-9b6c85932406)

## 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();
#endif

return 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