MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / buttonTap

Function buttonTap

apps/automated/src/pages/page17.ts:24–36  ·  view source on GitHub ↗
(args: observable.EventData)

Source from the content-addressed store, hash-verified

22}
23var i = 0;
24export function buttonTap(args: observable.EventData) {
25 currentPage.actionBar.title = 'hi ' + i++;
26
27 if (currentPage.actionBar.android) {
28 if (i % 3 === 0) {
29 currentPage.actionBar.android.icon = 'res://ic_test';
30 } else if (i % 3 === 1) {
31 currentPage.actionBar.android.icon = '~/assets/test-icon.png';
32 } else if (i % 3 === 2) {
33 currentPage.actionBar.android.icon = undefined;
34 }
35 }
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected