UNPKG

874 BTypeScriptView Raw
1type CallbackDetails = {
2 callback: (frameInfo: FrameInfo) => void;
3 startTime: number | null;
4};
5export type FrameInfo = {
6 timestamp: number;
7 timeSincePreviousFrame: number | null;
8 timeSinceFirstFrame: number;
9};
10export interface FrameCallbackRegistryUI {
11 frameCallbackRegistry: Map<number, CallbackDetails>;
12 activeFrameCallbacks: Set<number>;
13 previousFrameTimestamp: number | null;
14 runCallbacks: (callId: number) => void;
15 nextCallId: number;
16 registerFrameCallback: (callback: (frameInfo: FrameInfo) => void, callbackId: number) => void;
17 unregisterFrameCallback: (callbackId: number) => void;
18 manageStateFrameCallback: (callbackId: number, state: boolean) => void;
19}
20export declare const prepareUIRegistry: import("../commonTypes").WorkletFunction<[], void>;
21export {};
22//# sourceMappingURL=FrameCallbackRegistryUI.d.ts.map
\No newline at end of file