Debian Codegraph @

templates/other/DisplayNotification/template.xml

raw
1 <?xml version="1.0"?>
2 <template
3 format="5"
4 revision="2"
5 name="Display Notification"
6 description="Create an Activity to display inside a custom display notification and a BroadcastReceiver to post it"
7 minApi="20">
8
9 <category value="Wear" />
10 <formfactor value="Wear" />
11
12 <parameter
13 id="displayActivityClass"
14 name="Display Activity Class"
15 type="string"
16 constraints="activity|unique|nonempty"
17 default="MyDisplayActivity"
18 help="The name of the Activity that will be displayed for the notification" />
19
20 <parameter
21 id="displayActivityLayout"
22 name="Display Activity Layout Name"
23 type="string"
24 constraints="layout|unique|nonempty"
25 default="activity_display"
26 help="The layout name for the Activity that will be displayed for the notification" />
27
28 <parameter
29 id="receiverClass"
30 name="Receiver Class"
31 type="string"
32 constraints="class|unique|nonempty"
33 default="MyPostNotificationReceiver"
34 help="The name of the BroadcastReceiver that will post the notification" />
35
36 <parameter
37 id="stubActivityClass"
38 name="Launcher Stub Class"
39 type="string"
40 constraints="activity|unique|nonempty"
41 default="MyStubBroadcastActivity"
42 help="The name of the Stub Activity that sends the broadcast for testing purposes" />
43
44 <parameter
45 id="isExported"
46 name="Exported"
47 type="boolean"
48 default="true"
49 help="Whether or not the broadcast receiver can receive messages from sources outside its application" />
50
51 <parameter
52 id="packageName"
53 name="Package name"
54 type="string"
55 constraints="package"/>
56
57 <globals file="globals.xml.ftl" />
58 <execute file="recipe.xml.ftl" />
59
60 <thumbs>
61 <thumb>templates-activityView-Wear.png</thumb>
62 </thumbs>
63
64 </template>