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

Method stop

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

Source from the content-addressed store, hash-verified

44 }
45
46 public stop() {
47 if (!this.running) {
48 return;
49 }
50
51 if (this.nativeFramesSupported) {
52 (global as any).__removeFrameCallback(this.impl);
53 } else {
54 android.view.Choreographer.getInstance().removeFrameCallback(this.impl as any);
55 }
56
57 this.running = false;
58 }
59
60 private handleFrame(nanos: number) {
61 if (!this.running) {

Callers

nothing calls this directly

Calls 1

getInstanceMethod · 0.45

Tested by

no test coverage detected