Files
Martin Bektchiev 8b4a9b3c6b feat: Provide API to release the native object wrapped by a JS one (#6873)
* Add `releaseNativeObject` function in `utils`
* Add tests
* Add typings for the global `__releaseNativeCounterpart` functions
provided by Android and iOS runtimes

refs https://github.com/NativeScript/ios-runtime/issues/1062 and https://github.com/NativeScript/android-runtime/issues/1254
2019-02-08 10:42:51 +02:00

18 lines
398 B
TypeScript

/// <reference path="interop.d.ts" />
/**
* Triggers garbage collection in JavaScript
*/
declare function __collect(): void;
/**
* Releases the reference to the wrapped native object
* @param object The Objective-C object to release.
*/
declare function __releaseNativeCounterpart(object: NSObject): void;
/**
* Gets accurate system timestamp in ms.
*/
declare function __time(): Number;