forked from NativeScript/nativescript-fresco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nativescript-fresco.android-map.d.ts
194 lines (168 loc) · 5.88 KB
/
nativescript-fresco.android-map.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
declare module android {
module net {
class Uri {
static parse(orientation);
}
module Uri {
class Builder {
scheme(scheme: string);
path(path: string);
}
}
}
module graphics {
module drawable {
class BitmapDrawable {
constructor(resources, image);
}
}
class Color {
static parseColor(color: string);
}
}
}
declare module com {
module facebook {
module drawee {
module drawable {
class ProgressBarDrawable<T> {
constructor();
setColor(color: any);
}
module ScalingUtils {
class ScaleType {
static CENTER;
static CENTER_CROP;
static CENTER_INSIDE;
static FIT_CENTER;
static FIT_END;
static FIT_START;
static FIT_XY;
static FOCUS_CROP;
}
}
}
module backends {
module pipeline {
class Fresco {
static initialize(context);
static newDraweeControllerBuilder(): PipelineDraweeControllerBuilder;
static getImagePipeline(): com.facebook.imagepipeline.core.ImagePipeline;
}
}
class PipelineDraweeController {
}
class PipelineDraweeControllerBuilder {
setAutoPlayAnimations(value: boolean): PipelineDraweeControllerBuilder;
setImageRequest(uri): PipelineDraweeControllerBuilder;
setControllerListener(controller: com.facebook.drawee.controller.ControllerListener<com.facebook.imagepipeline.image.ImageInfo>): PipelineDraweeControllerBuilder;
setTapToRetryEnabled(value: boolean): PipelineDraweeControllerBuilder;
setOldController(controller): PipelineDraweeControllerBuilder;
build(): PipelineDraweeController;
}
}
module view {
class SimpleDraweeView {
constructor(context);
setImageURI(context, hierarchy);
setImageURI(context);
getController();
setController(controller);
setHierarchy(hierarchy);
setAspectRatio(ratio:number);
}
}
module controller {
class ControllerListener<T> {
constructor(context);
}
}
module generic {
class GenericDraweeHierarchyBuilder {
constructor(context);
setPlaceholderImage(drawable);
setFailureImage(drawable);
setActualImageScaleType(sclaleType);
build();
setFadeDuration(duration: number);
setBackground(drawable);
setProgressBarImage(drawable);
setRoundingParams(params: RoundingParams);
shutDown();
}
class GenericDraweeHierarchy {
}
class RoundingParams {
static asCircle(): void;
setCornersRadii(topLeft: number, topRight: number, bottomRight: number, bottomLeft: number);
}
}
}
module common {
module util {
class UriUtil {
static LOCAL_RESOURCE_SCHEME;
}
}
}
module imagepipeline {
module request {
class ImageRequestBuilder {
static newBuilderWithSource(url);
}
}
module image {
class ImageInfo {
getHeight(): number;
getWidth(): number;
getQualityInfo(): QualityInfo;
}
class QualityInfo {
getQuality(): number;
isOfFullQuality(): boolean;
isOfGoodEnoughQuality(): boolean;
}
class ImmutableQualityInfo {
getQuality(): number;
isOfFullQuality(): boolean;
isOfGoodEnoughQuality(): boolean;
}
}
module animated {
module base {
class AnimatedDrawable {
start(): void;
stop(): void;
isRunning(): boolean;
}
}
}
module core {
class ImagePipeline {
isInBitmapMemoryCache(uri: string): boolean;
isInDiskCacheSync(uri: string): boolean;
evictFromMemoryCache(uri: string): void;
evictFromDiskCache(uri: string): void;
evictFromCache(uri: string): void;
clearCaches(): void;
clearMemoryCaches(): void;
clearDiskCaches(): void;
}
}
}
}
}
declare module java {
module lang {
class String {
static valueOf(identifier);
}
class Class {
getName(): string;
}
class Throwable {
getClass(): java.lang.Class;
getMessage(): string;
}
}
}