This repository has been archived by the owner on May 7, 2024. It is now read-only.
forked from PurpleGuitar/MWM-for-Android
-
Notifications
You must be signed in to change notification settings - Fork 30
/
MW_v0.2.4b_APK_API.txt
94 lines (70 loc) · 3.41 KB
/
MW_v0.2.4b_APK_API.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Intents listened for:
org.metawatch.manager.NOTIFICATION
- Display a notification on the watch
"vibrate_on" - int // ms
"vibrate_off" - int // ms
"vibrate_cycles" - int
(optional - notification will display without vibration if omitted)
DIGITAL:
"array" - int[96*96]
or
"buffer" - byte[96*96/8] // encoded buffer
OLED:
"oled1" - Displays large text on the top OLED.
"oled1a" - Displays small text on the upper half of the top OLED
"oled1b" - Displays small text on the lower half of the top OLED
"oled2" - Displays large text on the bottom OLED.
"oled2a" - Displays small text on the upper half of the bottom OLED
"oled2b" - Displays small text on the lower half of the bottom OLED
DIGITAL and OLED (from rm14 onwards)
"text" - Displays text on the watch.
"title" (optional) - Title for the notification when using "text"
"icon" (optional) - Icon for the notification. int[width*height]
"iconWidth" (optional) - Width for the "icon" extra
"iconHeight" (optional) - Height for the "icon" extra
"sticky" (optional) - Whether the notification should be sticky (default is true)
-------------------------------------------------------------------------------
org.metawatch.manager.APPLICATION_UPDATE
"array" - int[96*96]
or
"buffer" - byte[96*96/8] // encoded buffer
org.metawatch.manager.APPLICATION_START
org.metawatch.manager.APPLICATION_STOP
-------------------------------------------------------------------------------
org.metawatch.manager.VIBRATE
- Vibrate the watch, but don't display anything
"vibrate_on" - int // ms
"vibrate_off" - int // ms
"vibrate_cycles" - int
-------------------------------------------------------------------------------
org.metawatch.manager.WIDGET_UPDATE
- Update a widget's image from an external app
- Note that a widget won't automatically be displayed - the user has to
manually add it with the widget setup screen in MWM
"id" - Unique id for this widget - usually APPNAME_WIDTH_HEIGHT - e.g myApp_32_32
"desc" - Textual description of the widget - e.g. "My App (32x32)"
"width" - Width of the widget in pixels
"height" - height of the widget in pixels
"priority" - priority of the widget (0 if no data, >0 otherwise) - bigger means less likely to be culled for space
"array" - pixel array : int[width*height]
-------------------------------------------------------------------------------
org.metawatch.manager.SILENTMODE
- Enable or disable silent mode from an external app
"enabled" - (boolean) - whether to enable to disable silent mode
===============================================================================
Broadcasted:
org.metawatch.manager.BUTTON_PRESS
- When in application mode:
"button" - byte
"mode" - String // ("application", "idle")
-------------------------------------------------------------------------------
org.metawatch.manager.REFRESH_WIDGET_REQUEST
- MWM requesting for external apps to refresh/announce any widgets
"org.metawatch.manager.get_previews"
- Previews are being requested, so reply with a WIDGET_UPDATE for all possible
widgets displaying a dummy image if necessary
or
"org.metawatch.manager.widgets_desired"
- ArrayList<String> of the widget ids requested by the user - reply with a
WIDGET_UPDATE if your widget_id is in the list
-------------------------------------------------------------------------------