chore: cleanup

This commit is contained in:
Nathan Walker
2025-07-19 01:18:12 -07:00
parent 2fb70c1f10
commit 248a85f6e0
15 changed files with 439 additions and 417 deletions

View File

@@ -1,7 +1,6 @@
import * as definition from './fps-native';
import { SDK_VERSION } from '../utils/constants';
export class FPSCallback implements definition.FPSCallback {
export class FPSCallback {
private impl: android.view.Choreographer.FrameCallback | ((nanos: number) => void);
private onFrame: (currentTimeMillis: number) => void;

View File

@@ -1,5 +1,3 @@
import * as definition from './fps-native';
@NativeClass
class FrameHandlerImpl extends NSObject {
private _owner: WeakRef<FPSCallback>;
@@ -23,7 +21,7 @@ class FrameHandlerImpl extends NSObject {
};
}
export class FPSCallback implements definition.FPSCallback {
export class FPSCallback {
public running: boolean;
private onFrame: Function;
private displayLink: CADisplayLink;