mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
committed by
Alexander Vakrilov
parent
bcadcbe7b5
commit
398c9b3f33
@@ -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; } }
|
||||
85437
tns-platform-declarations/android/android-platform-17.d.ts
vendored
Normal file
85437
tns-platform-declarations/android/android-platform-17.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
86795
tns-platform-declarations/android/android-platform-18.d.ts
vendored
Normal file
86795
tns-platform-declarations/android/android-platform-18.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
90264
tns-platform-declarations/android/android-platform-19.d.ts
vendored
Normal file
90264
tns-platform-declarations/android/android-platform-19.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
90509
tns-platform-declarations/android/android-platform-20.d.ts
vendored
Normal file
90509
tns-platform-declarations/android/android-platform-20.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
98997
tns-platform-declarations/android/android-platform-21.d.ts
vendored
Normal file
98997
tns-platform-declarations/android/android-platform-21.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
99314
tns-platform-declarations/android/android-platform-22.d.ts
vendored
Normal file
99314
tns-platform-declarations/android/android-platform-22.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
94191
tns-platform-declarations/android/android-platform-23.d.ts
vendored
Normal file
94191
tns-platform-declarations/android/android-platform-23.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
105863
tns-platform-declarations/android/android-platform-24.d.ts
vendored
Normal file
105863
tns-platform-declarations/android/android-platform-24.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
106084
tns-platform-declarations/android/android-platform-25.d.ts
vendored
Normal file
106084
tns-platform-declarations/android/android-platform-25.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
115982
tns-platform-declarations/android/android-platform-26.d.ts
vendored
Normal file
115982
tns-platform-declarations/android/android-platform-26.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
116344
tns-platform-declarations/android/android-platform-27.d.ts
vendored
Normal file
116344
tns-platform-declarations/android/android-platform-27.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
30196
tns-platform-declarations/android/android-support-17.d.ts
vendored
Normal file
30196
tns-platform-declarations/android/android-support-17.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
31426
tns-platform-declarations/android/android-support-23.d.ts
vendored
Normal file
31426
tns-platform-declarations/android/android-support-23.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
31815
tns-platform-declarations/android/android-support-26.d.ts
vendored
Normal file
31815
tns-platform-declarations/android/android-support-26.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,3 +0,0 @@
|
||||
/// <reference path="./android17.d.ts" />
|
||||
/// <reference path="./declarations.d.ts" />
|
||||
/// <reference path="./org.nativescript.widgets.d.ts" />
|
||||
259883
tns-platform-declarations/android/android17.d.ts
vendored
259883
tns-platform-declarations/android/android17.d.ts
vendored
File diff suppressed because one or more lines are too long
2
tns-platform-declarations/android/common.d.ts
vendored
Normal file
2
tns-platform-declarations/android/common.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/// <reference path="./android-declarations.d.ts" />
|
||||
/// <reference path="./org.nativescript.widgets.d.ts" />
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user