forked from NativeScript/nativescript-fresco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nativescript-fresco.android.d.ts
86 lines (86 loc) · 3.67 KB
/
nativescript-fresco.android.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import * as commonModule from "./nativescript-fresco-common";
export declare function initialize(): void;
export declare function getImagePipeline(): ImagePipeline;
export declare class ImagePipeline {
private _android;
private isInDiskCacheSync(uri);
isInBitmapMemoryCache(uri: string): boolean;
evictFromMemoryCache(uri: string): void;
evictFromDiskCache(uri: string): void;
evictFromCache(uri: string): void;
clearCaches(): void;
clearMemoryCaches(): void;
clearDiskCaches(): void;
android: any;
}
export declare class AnimatedImage extends com.facebook.imagepipeline.animated.base.AnimatedDrawable implements commonModule.IAnimatedImage {
start(): void;
stop(): void;
isRunning(): boolean;
}
export declare class FrescoError implements commonModule.IError {
private _stringValue;
private _message;
private _errorType;
constructor(throwable: java.lang.Throwable);
getMessage(): string;
getErrorType(): string;
toString(): string;
}
export interface QualityInfo {
getQuality(): any;
isOfFullQuality(): any;
isOfGoodEnoughQuality(): any;
}
export declare class ImageInfo implements commonModule.IImageInfo {
private _nativeImageInfo;
constructor(imageInfo: any);
getHeight(): number;
getWidth(): number;
getQualityInfo(): QualityInfo;
}
export declare class FinalEventData extends commonModule.EventData {
private _imageInfo;
private _animatable;
imageInfo: ImageInfo;
animatable: commonModule.IAnimatedImage;
}
export declare class IntermediateEventData extends commonModule.EventData {
private _imageInfo;
imageInfo: ImageInfo;
}
export declare class FailureEventData extends commonModule.EventData {
private _error;
error: FrescoError;
}
export declare class FrescoDrawee extends commonModule.FrescoDrawee {
private _android;
createNativeView(): com.facebook.drawee.view.SimpleDraweeView;
initNativeView(): void;
disposeNativeView(): void;
updateImageUri(): void;
protected onImageUriChanged(oldValue: string, newValue: string): void;
protected onPlaceholderImageUriChanged(oldValue: string, newValue: string): void;
protected onFailureImageUriChanged(oldValue: string, newValue: string): void;
protected onActualImageScaleTypeChanged(oldValue: string, newValue: string): void;
protected onFadeDurationChanged(oldValue: number, newValue: number): void;
protected onBackgroundUriChanged(oldValue: string, newValue: string): void;
protected onProgressiveRenderingEnabledChanged(oldValue: boolean, newValue: boolean): void;
protected onShowProgressBarChanged(oldValue: boolean, newValue: boolean): void;
protected onProgressBarColorChanged(oldValue: string, newValue: string): void;
protected onRoundAsCircleChanged(oldValue: boolean, newValue: boolean): void;
protected onRoundTopLeftChanged(oldValue: boolean, newValue: boolean): void;
protected onRoundTopRightChanged(oldValue: boolean, newValue: boolean): void;
protected onRoundBottomLeftChanged(oldValue: boolean, newValue: boolean): void;
protected onRoundBottomRightChanged(oldValue: boolean, newValue: boolean): void;
protected onRoundedCornerRadiusChanged(oldValue: number, newValue: number): void;
protected onAutoPlayAnimationsPChanged(oldValue: boolean, newValue: boolean): void;
protected onTapToRetryEnabledChanged(oldValue: boolean, newValue: boolean): void;
protected onAspectRatioChanged(oldValue: number, newValue: number): void;
private initDrawee();
private initImage();
private updateHierarchy();
private getDrawable(path);
private getDrawableFromLocalFile(localFilePath);
private getDrawableFromResource(resourceName);
}