UNPKG

1.16 kBTypeScriptView Raw
1import { View } from '../core/view';
2import { Property } from '../core/properties';
3
4/**
5 * Represents a progress component.
6 */
7export class Progress extends View {
8 /**
9 * Gets the native [android widget](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS.
10 */
11 android: any /* android.widget.ProgressBar */;
12
13 /**
14 * Gets the native iOS [UIProgressView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIProgressView_Class/) that represents the user interface for this component. Valid only when running on iOS.
15 */
16 ios: any /* UIProgressView */;
17
18 /**
19 * Gets or sets a progress current value.
20 */
21 value: number;
22
23 /**
24 * Gets or sets a progress max value.
25 */
26 maxValue: number;
27}
28
29/**
30 * Represents the observable property backing the value property of each Progress instance.
31 */
32export const valueProperty: Property<Progress, number>;
33
34/**
35 * Represents the observable property backing the maxValue property of each Progress instance.
36 */
37export const maxValueProperty: Property<Progress, number>;