Image loading is done through native imageView so that once it is removed from window the bitmap is cleared.

This commit is contained in:
Hristo Hristov
2016-11-02 16:57:01 +02:00
parent 4e977f0c4a
commit c5d34c3dd4
5 changed files with 40 additions and 22 deletions

View File

@@ -335,6 +335,9 @@
getRotationAngle(): number;
setRotationAngle(angle: number): void;
setUri(uri: string, decodeWidth: number, decodeHeight: number, useCache: boolean,
async: boolean, listener: image.Worker.IOnImageLoadedListener): void;
}
export class TabLayout extends android.widget.HorizontalScrollView {
@@ -385,7 +388,8 @@
}
export class Fetcher extends Worker {
constructor(context: android.content.Context);
private constructor();
public static getInstance(context: android.content.Context): Fetcher;
public addImageCache(cache: Cache): void;
public initCache(): void;
public clearCache(): void;
@@ -396,10 +400,10 @@
export namespace Cache {
export class CacheParams {
constructor(context: android.content.Context, diskCacheDirectoryName: string);
public setMemCacheSizePercent(percent: number): void;
public diskCacheEnabled: boolean;
public diskCacheSize: number;
public diskCacheEnabled: boolean;
public memoryCacheEnabled: boolean;
public setMemCacheSizePercent(percent: number): void;
}
}
}