| 1 |
<?xml version="1.0"?> |
| 2 |
<template |
| 3 |
format="5" |
| 4 |
revision="2" |
| 5 |
name="Media service" |
| 6 |
description="Create a MediaBrowserService and adds the required metadata for Android Auto" |
| 7 |
minApi="21"> |
| 8 |
|
| 9 |
<category value="Android Auto" /> |
| 10 |
<formfactor value="Car" /> |
| 11 |
|
| 12 |
<parameter |
| 13 |
id="mediaBrowserServiceName" |
| 14 |
name="Class name" |
| 15 |
type="string" |
| 16 |
constraints="class|unique|nonempty" |
| 17 |
default="MyMusicService" |
| 18 |
help="The name of the service that will extend MediaBrowserService and contain the logic to browse and playback media" /> |
| 19 |
|
| 20 |
<parameter |
| 21 |
id="packageName" |
| 22 |
name="Package name" |
| 23 |
type="string" |
| 24 |
constraints="package" |
| 25 |
help="The package where the media service will be created" /> |
| 26 |
|
| 27 |
<parameter |
| 28 |
id="useCustomTheme" |
| 29 |
name="Use a custom theme for Android Auto colors?" |
| 30 |
type="boolean" |
| 31 |
constraints="package" |
| 32 |
help="Android Auto apps can define a different set of colors that will be used exclusively when running on Android Auto" /> |
| 33 |
|
| 34 |
<parameter |
| 35 |
id="customThemeName" |
| 36 |
name="Android Auto custom theme name" |
| 37 |
type="String" |
| 38 |
default="CarTheme" |
| 39 |
visibility="useCustomTheme" |
| 40 |
constraints="nonempty"/> |
| 41 |
|
| 42 |
<globals file="globals.xml.ftl" /> |
| 43 |
<execute file="recipe.xml.ftl" /> |
| 44 |
|
| 45 |
<thumbs> |
| 46 |
<thumb>templates-mediaService-Auto.png</thumb> |
| 47 |
</thumbs> |
| 48 |
|
| 49 |
</template> |