MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / start

Method start

packages/core/fps-meter/fps-native.android.ts:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 }
31
32 public start() {
33 if (this.running) {
34 return;
35 }
36
37 if (this.nativeFramesSupported) {
38 (global as any).__postFrameCallback(this.impl);
39 } else {
40 android.view.Choreographer.getInstance().postFrameCallback(this.impl as any);
41 }
42
43 this.running = true;
44 }
45
46 public stop() {
47 if (!this.running) {

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected