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

Function addCallback

packages/core/fps-meter/index.ts:71–79  ·  view source on GitHub ↗
(callback: (fps: number, minFps?: number) => void)

Source from the content-addressed store, hash-verified

69}
70
71export function addCallback(callback: (fps: number, minFps?: number) => void): number {
72 const id = idCounter;
73
74 // Wrap all calback in zonedCallback so that they work with the current zone.
75 callbacks[id] = zonedCallback(callback);
76 idCounter++;
77
78 return id;
79}
80
81export function removeCallback(id: number) {
82 if (id in callbacks) {

Callers 1

startFPSMeterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected