forked from NativeScript/NativeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimage.d.ts
More file actions
68 lines (58 loc) · 2.24 KB
/
image.d.ts
File metadata and controls
68 lines (58 loc) · 2.24 KB
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
/**
* Contains the Image class, which represents an image widget.
*/
declare module "ui/image" {
import dependencyObservable = require("ui/core/dependency-observable");
import imageSource = require("image-source");
import view = require("ui/core/view");
/**
* Represents a class that provides functionality for loading and streching image(s).
*/
export class Image extends view.View {
public static srcProperty: dependencyObservable.Property;
public static imageSourceProperty: dependencyObservable.Property;
public static isLoadingProperty: dependencyObservable.Property;
public static stretchProperty: dependencyObservable.Property;
/**
* Gets the native [android widget](http://developer.android.com/reference/android/widget/ImageView.html) that represents the user interface for this component. Valid only when running on Android OS.
*/
android: android.widget.ImageView;
/**
* Gets the native iOS [UIImageView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/) that represents the user interface for this component. Valid only when running on iOS.
*/
ios: UIImageView;
/**
* Gets or sets the image source of the image.
*/
imageSource: imageSource.ImageSource;
/**
* Gets or sets the source of the Image. This can be either an URL string or a native image instance.
*/
src: any;
/**
* Gets a value indicating if the image is currently loading
*/
isLoading: boolean;
/**
* Gets or sets the image stretch mode.
*/
stretch: string;
}
/**
* Provides common options for creating an image.
*/
export interface Options extends view.Options {
/**
* Gets or sets the image source of the image.
*/
imageSource: imageSource.ImageSource;
/**
* Gets or sets the URL of the image.
*/
src: string;
/**
* Gets or sets the image stretch mode. Possible values are contained in the [Stretch enumeration](../enums/Stretch/README.md).
*/
stretch: string;
}
}