()
| 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) { |
nothing calls this directly
no test coverage detected