forked from NativeScript/nativescript-fresco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nativescript-fresco-common.d.ts
113 lines (113 loc) · 5.48 KB
/
nativescript-fresco-common.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/// <reference path="references.d.ts" />
import { View, Property } from "tns-core-modules/ui/core/view";
import * as observableModule from "data/observable";
export declare module ScaleType {
var Center: string;
var CenterCrop: string;
var CenterInside: string;
var FitCenter: string;
var FitEnd: string;
var FitStart: string;
var FitXY: string;
var FocusCrop: string;
}
export interface IAnimatedImage {
start(): void;
stop(): void;
isRunning(): boolean;
}
export interface IImageInfo {
getHeight(): number;
getWidth(): number;
}
export interface IError {
getMessage(): string;
getErrorType(): string;
toString(): string;
}
export declare class EventData implements observableModule.EventData {
private _eventName;
private _object;
eventName: string;
object: any;
}
export declare class FrescoDrawee extends View {
static finalImageSetEvent: string;
static failureEvent: string;
static intermediateImageFailedEvent: string;
static intermediateImageSetEvent: string;
static releaseEvent: string;
static submitEvent: string;
imageUri: string;
placeholderImageUri: string;
failureImageUri: string;
actualImageScaleType: string;
fadeDuration: number;
backgroundUri: string;
progressiveRenderingEnabled: boolean;
showProgressBar: boolean;
progressBarColor: string;
roundAsCircle: boolean;
roundBottomRight: boolean;
roundTopLeft: boolean;
roundTopRight: boolean;
roundBottomLeft: boolean;
roundedCornerRadius: number;
autoPlayAnimations: boolean;
tapToRetryEnabled: boolean;
aspectRatio: number;
static imageUriProperty: Property<FrescoDrawee, string>;
static placeholderImageUriProperty: Property<FrescoDrawee, string>;
static failureImageUriProperty: Property<FrescoDrawee, string>;
static actualImageScaleTypeProperty: Property<FrescoDrawee, string>;
static fadeDurationProperty: Property<FrescoDrawee, number>;
static backgroundUriProperty: Property<FrescoDrawee, string>;
static progressiveRenderingEnabledProperty: Property<FrescoDrawee, boolean>;
static showProgressBarProperty: Property<FrescoDrawee, boolean>;
static progressBarColorProperty: Property<FrescoDrawee, string>;
static roundAsCircleProperty: Property<FrescoDrawee, boolean>;
static roundTopLeftProperty: Property<FrescoDrawee, boolean>;
static roundTopRightProperty: Property<FrescoDrawee, boolean>;
static roundBottomLeftProperty: Property<FrescoDrawee, boolean>;
static roundBottomRightProperty: Property<FrescoDrawee, boolean>;
static roundedCornerRadiusProperty: Property<FrescoDrawee, number>;
static autoPlayAnimationsProperty: Property<FrescoDrawee, boolean>;
static tapToRetryEnabledProperty: Property<FrescoDrawee, boolean>;
static aspectRatioProperty: Property<FrescoDrawee, number>;
private onImageUriPropertyChanged(oldValue, newValue);
private onPlaceholderImageUriPropertyChanged(oldValue, newValue);
private onFailureImageUriPropertyChanged(oldValue, newValue);
private onActualImageScaleTypePropertyChanged(oldValue, newValue);
private onFadeDurationPropertyChanged(oldValue, newValue);
private onBackgroundUriPropertyChanged(oldValue, newValue);
private onProgressiveRenderingEnabledPropertyChanged(oldValue, newValue);
private onShowProgressBarPropertyChanged(oldValue, newValue);
private onProgressBarColorPropertyChanged(oldValue, newValue);
private onRoundAsCirclePropertyChanged(oldValue, newValue);
private onRoundTopLeftPropertyChanged(oldValue, newValue);
private onRoundTopRightPropertyChanged(oldValue, newValue);
private onRoundBottomLeftPropertyChanged(oldValue, newValue);
private onRoundBottomRightPropertyChanged(oldValue, newValue);
private onRoundedCornerRadiusPropertyChanged(oldValue, newValue);
private onAutoPlayAnimationsPropertyChanged(oldValue, newValue);
private onTapToRetryEnabledPropertyChanged(oldValue, newValue);
private onAspectRatioPropertyChanged(oldValue, newValue);
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;
}