Skip to content

Commit bed0565

Browse files
authored
chore: update nativescript.api.md (NativeScript#8117)
1 parent 8d382a6 commit bed0565

File tree

1 file changed

+38
-35
lines changed

1 file changed

+38
-35
lines changed

api-reports/NativeScript.api.md

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@ export class AndroidApplication extends Observable {
170170

171171
nativeApp: any /* android.app.Application */;
172172

173+
on(eventNames: string, callback: (data: AndroidActivityEventData) => void, thisArg?: any);
174+
175+
on(event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any);
176+
177+
on(event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
178+
179+
on(event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
180+
181+
on(event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
182+
173183
on(event: "activityResumed", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
174184

175185
on(event: "activityStopped", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
@@ -184,16 +194,6 @@ export class AndroidApplication extends Observable {
184194

185195
on(event: "activityRequestPermissions", callback: (args: AndroidActivityRequestPermissionsEventData) => void, thisArg?: any);
186196

187-
on(eventNames: string, callback: (data: AndroidActivityEventData) => void, thisArg?: any);
188-
189-
on(event: "activityCreated", callback: (args: AndroidActivityBundleEventData) => void, thisArg?: any);
190-
191-
on(event: "activityDestroyed", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
192-
193-
on(event: "activityStarted", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
194-
195-
on(event: "activityPaused", callback: (args: AndroidActivityEventData) => void, thisArg?: any);
196-
197197
orientation: "portrait" | "landscape" | "unknown";
198198

199199
packageName: string;
@@ -404,15 +404,15 @@ export class ChangeType {
404404
// @public
405405
export class Color {
406406
constructor(knownColor: string);
407-
constructor(alpha: number, red: number, green: number, blue: number);
408407
constructor(hex: string);
409408
constructor(argb: number);
409+
constructor(alpha: number, red: number, green: number, blue: number);
410410
public a: number;
411411
android: number;
412412
public argb: number;
413413
public b: number;
414-
public static equals(value1: Color, value2: Color): boolean;
415414
public equals(value: Color): boolean;
415+
public static equals(value1: Color, value2: Color): boolean;
416416
public g: number;
417417
public hex: string;
418418
ios: any /* UIColor */;
@@ -1112,9 +1112,9 @@ export class ImageCache extends Observable {
11121112
enqueue(request: DownloadRequest);
11131113
get(key: string): any;
11141114
maxRequests: number;
1115-
on(event: "downloadError", callback: (args: DownloadError) => void, thisArg?: any);
11161115
on(eventNames: string, callback: (args: EventData) => void, thisArg?: any);
11171116
on(event: "downloaded", callback: (args: DownloadedData) => void, thisArg?: any);
1117+
on(event: "downloadError", callback: (args: DownloadError) => void, thisArg?: any);
11181118
// (undocumented)
11191119
_onDownloadCompleted(key: string, image: any);
11201120
// (undocumented)
@@ -1144,11 +1144,11 @@ export class ImageSource {
11441144

11451145
static fromBase64Sync(source: string): ImageSource;
11461146

1147+
static fromData(data: any): Promise<ImageSource>;
1148+
11471149
// @deprecated (undocumented)
11481150
fromData(data: any): Promise<boolean>;
11491151

1150-
static fromData(data: any): Promise<ImageSource>;
1151-
11521152
static fromDataSync(data: any): ImageSource;
11531153

11541154
static fromFile(path: string): Promise<ImageSource>;
@@ -1372,10 +1372,10 @@ export class ListView extends View {
13721372
itemTemplates: string | Array<KeyedTemplate>;
13731373
itemTemplateSelector: string | ((item: any, index: number, items: any) => string);
13741374
public static loadMoreItemsEvent: string;
1375-
on(event: "loadMoreItems", callback: (args: EventData) => void, thisArg?: any);
1376-
on(event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any);
13771375
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
1376+
on(event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any);
13781377
on(event: "itemTap", callback: (args: ItemEventData) => void, thisArg?: any);
1378+
on(event: "loadMoreItems", callback: (args: EventData) => void, thisArg?: any);
13791379
refresh();
13801380
rowHeight: Length;
13811381
scrollToIndex(index: number);
@@ -1482,10 +1482,10 @@ export class Observable {
14821482

14831483
off(eventNames: string, callback?: any, thisArg?: any);
14841484

1485-
on(event: "propertyChange", callback: (data: EventData) => void, thisArg?: any);
1486-
14871485
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
14881486

1487+
on(event: "propertyChange", callback: (data: EventData) => void, thisArg?: any);
1488+
14891489
once(event: string, callback: (data: EventData) => void, thisArg?: any);
14901490

14911491
public static propertyChangeEvent: string;
@@ -1506,10 +1506,10 @@ export class ObservableArray<T> extends Observable {
15061506

15071507
public static changeEvent: string;
15081508

1509-
concat(...items: T[]): T[];
1510-
15111509
concat<U extends T[]>(...items: U[]): T[];
15121510

1511+
concat(...items: T[]): T[];
1512+
15131513
every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
15141514

15151515
filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
@@ -1558,10 +1558,10 @@ export class ObservableArray<T> extends Observable {
15581558

15591559
sort(compareFn?: (a: T, b: T) => number): T[];
15601560

1561-
splice(start: number, deleteCount: number, ...items: T[]): T[];
1562-
15631561
splice(start: number): T[];
15641562

1563+
splice(start: number, deleteCount: number, ...items: T[]): T[];
1564+
15651565
// (undocumented)
15661566
toLocaleString(): string;
15671567

@@ -1610,14 +1610,14 @@ export class Page extends ContentView {
16101610

16111611
public on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void;
16121612

1613+
public on(event: "navigatingTo", callback: (args: NavigatedData) => void, thisArg?: any): void;
1614+
16131615
public on(event: "navigatedTo", callback: (args: NavigatedData) => void, thisArg?: any): void;
16141616

16151617
public on(event: "navigatingFrom", callback: (args: NavigatedData) => void, thisArg?: any): void;
16161618

16171619
public on(event: "navigatedFrom", callback: (args: NavigatedData) => void, thisArg?: any): void;
16181620

1619-
public on(event: "navigatingTo", callback: (args: NavigatedData) => void, thisArg?: any): void;
1620-
16211621
public onNavigatedFrom(isBackNavigation: boolean): void;
16221622

16231623
public onNavigatedTo(isBackNavigation: boolean): void;
@@ -1779,10 +1779,10 @@ export class ScrollView extends ContentView {
17791779

17801780
isScrollEnabled: boolean;
17811781

1782-
on(event: "scroll", callback: (args: ScrollEventData) => void, thisArg?: any);
1783-
17841782
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
17851783

1784+
on(event: "scroll", callback: (args: ScrollEventData) => void, thisArg?: any);
1785+
17861786
// (undocumented)
17871787
_onOrientationChanged();
17881788

@@ -1816,11 +1816,11 @@ export class SearchBar extends View {
18161816

18171817
ios: any /* UISearchBar */;
18181818

1819-
on(event: "close", callback: (args: EventData) => void, thisArg?: any);
1819+
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
18201820

18211821
on(event: "submit", callback: (args: EventData) => void, thisArg?: any);
18221822

1823-
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
1823+
on(event: "close", callback: (args: EventData) => void, thisArg?: any);
18241824

18251825
public static submitEvent: string;
18261826

@@ -2304,6 +2304,9 @@ export class TabStripItem extends View {
23042304

23052305
image: Image;
23062306

2307+
// (undocumented)
2308+
_index: number;
2309+
23072310
label: Label;
23082311

23092312
on(eventNames: string, callback: (data: EventData) => void);
@@ -2678,12 +2681,12 @@ export abstract class View extends ViewBase {
26782681
// (undocumented)
26792682
_modalParent?: View;
26802683
off(eventNames: string | GestureTypes, callback?: (args: EventData) => void, thisArg?: any);
2681-
on(event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void;
2682-
on(event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any);
2683-
on(event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any);
2684+
on(eventNames: string | GestureTypes, callback: (args: EventData) => void, thisArg?: any);
26842685
on(event: "loaded", callback: (args: EventData) => void, thisArg?: any);
26852686
on(event: "unloaded", callback: (args: EventData) => void, thisArg?: any);
2686-
on(eventNames: string | GestureTypes, callback: (args: EventData) => void, thisArg?: any);
2687+
on(event: "androidBackPressed", callback: (args: EventData) => void, thisArg?: any);
2688+
on(event: "showingModally", callback: (args: ShownModallyData) => void, thisArg?: any): void;
2689+
on(event: "shownModally", callback: (args: ShownModallyData) => void, thisArg?: any);
26872690
_onAttachedToWindow(): void;
26882691
onBackPressed(): boolean;
26892692
_onDetachedFromWindow(): void;
@@ -2949,13 +2952,13 @@ export class WebView extends View {
29492952

29502953
public static loadStartedEvent: string;
29512954

2955+
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
2956+
29522957
// Warning: (ae-forgotten-export) The symbol "LoadEventData" needs to be exported by the entry point index.d.ts
29532958
on(event: "loadFinished", callback: (args: LoadEventData) => void, thisArg?: any);
29542959

29552960
on(event: "loadStarted", callback: (args: LoadEventData) => void, thisArg?: any);
29562961

2957-
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any);
2958-
29592962
reload();
29602963

29612964
src: string;

0 commit comments

Comments
 (0)