-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwatchsession.xml
53 lines (33 loc) · 1.74 KB
/
watchsession.xml
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
<Alloy>
<Tab title="WatchSession">
<Window title="WatchSession">
<RightNavButton>
<Button systemButton="REFRESH" onClick="showProperties" />
</RightNavButton>
<ScrollView layout="vertical">
<!-- Ti.WatchSession properties, click to update -->
<Label class="label" onClick="showProperty">isSupported</Label>
<Label class="value" id="isSupported">undefined</Label>
<Label class="label" onClick="showProperty">isPaired</Label>
<Label class="value" id="isPaired">undefined</Label>
<Label class="label" onClick="showProperty">isWatchAppInstalled</Label>
<Label class="value" id="isWatchAppInstalled">undefined</Label>
<Label class="label" onClick="showProperty">isComplicationEnabled</Label>
<Label class="value" id="isComplicationEnabled">undefined</Label>
<Label class="label" onClick="showProperty">isReachable</Label>
<Label class="value" id="isReachable">undefined</Label>
<Label class="label" onClick="showProperty">recentApplicationContext</Label>
<Label class="value" id="recentApplicationContext">undefined</Label>
<!-- Ti.WatchSession methods -->
<Button onClick="sendMessage">sendMessage()</Button>
<Button onClick="transferCurrentComplication">transferCurrentComplication()</Button>
<Button onClick="transferFile">transferFile()</Button>
<Button onClick="cancelAllFileTransfers">cancelAllFileTransfers()</Button>
<Button onClick="transferUserInfo">transferUserInfo()</Button>
<Button onClick="cancelAllUserInfoTransfers">cancelAllUserInfoTransfers()</Button>
<Button onClick="cancelAllTransfers">cancelAllTransfers()</Button>
<Button onClick="updateApplicationContext">updateApplicationContext()</Button>
</ScrollView>
</Window>
</Tab>
</Alloy>