-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboredrudolph.d.ts
37 lines (31 loc) · 1.33 KB
/
boredrudolph.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
/**
* Contains the BoredRudolph class, which represents a Layout that contains the UI pattern for pull-to-refresh with a Rudolph themed game.
*/
declare module "nativescript-bored-rudolph" {
import { Property } from "ui/core/dependency-observable";
import { Observable, EventData } from "data/observable";
import { ContentView } from "ui/content-view";
/**
* Represents a standard BoredRudolph Layout
*/
export class BoredRudolph extends ContentView {
public static isRefreshingProperty: Property;
/**
* String value used when hooking to the onRefresh event.
*/
public static refreshEvent: string;
/**
* Gets the native [android widget](http://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html) that represents the user interface for this component. Valid only when running on Android OS.
*/
android: any /* android.support.v4.widget.SwipeRefreshLayout */;
/*
* Gets or sets if the view is refreshing
*/
refreshing: boolean;
/**
* Raised when a refresh event occurs.
*/
on(event: string, callback: (args: EventData) => void, thisArg?: any);
on(event: "refresh", callback: (args: EventData) => void, thisArg?: any);
}
}