Files
NativeScript/tns-platform-declarations/android/android-declarations.d.ts
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

24 lines
647 B
TypeScript

/* tslint:disable:no-unused-variable */
// Android specific TypeScript declarations
declare function float(num: number): any;
declare function long(num: number): any;
/**
* Triggers garbage collection in JavaScript
*/
declare var gc: () => void;
/**
* Releases the reference to the wrapped native object
* @param object The Java object to release.
*/
declare function __releaseNativeCounterpart(object: java.lang.Object): void;
interface ArrayConstructor {
create(type: any, count: number): any;
}
declare module native { export class Array<T> { constructor(); length: number; [index: number]: T; } }
import globalAndroid = android;