feat(typings): Adding Android typings for API levels from 17 to 27 (#5890)

Adding android typings for API levels from 17 to 27

BREAKING CHANGES:
There is no longer added `I` prefix in the names of the interfaces. For example `android.view.IMenuItem` is now `android.view.MenuItem`. This matches the original name of the interface in the android framework.
This commit is contained in:
Vasil Trifonov
2018-07-05 18:36:23 +03:00
committed by Alexander Vakrilov
parent bcadcbe7b5
commit 398c9b3f33
48 changed files with 1183360 additions and 259921 deletions

View File

@@ -10,4 +10,6 @@ declare function long(num: number): any;
interface ArrayConstructor {
create(type: any, count: number): any;
}
}
declare module native { export class Array<T> { constructor(); length: number; [index: number]: T; } }

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +0,0 @@
/// <reference path="./android17.d.ts" />
/// <reference path="./declarations.d.ts" />
/// <reference path="./org.nativescript.widgets.d.ts" />

View File

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
/// <reference path="./android-declarations.d.ts" />
/// <reference path="./org.nativescript.widgets.d.ts" />

View File

@@ -366,8 +366,8 @@
export class TabLayout extends android.widget.HorizontalScrollView {
constructor(context: android.content.Context);
constructor(context: android.content.Context, attrs: android.util.IAttributeSet);
constructor(context: android.content.Context, attrs: android.util.IAttributeSet, defStyle: number);
constructor(context: android.content.Context, attrs: android.util.AttributeSet);
constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyle: number);
setSelectedIndicatorColors(color: Array<number>): void;
getSelectedIndicatorColors(): Array<number>;
@@ -388,7 +388,7 @@
export class TabViewPager extends android.support.v4.view.ViewPager {
constructor(context: android.content.Context);
constructor(context: android.content.Context, attrs: android.util.IAttributeSet);
constructor(context: android.content.Context, attrs: android.util.AttributeSet);
setSwipePageEnabled(enabled: boolean): void;
}