-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
48 changed files
with
1,183,360 additions
and
259,921 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tns-core-modules/application-settings/application-settings.android.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
tns-core-modules/ui/frame/transition-definitions.android.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/** | ||
* @private | ||
*/ /** */ | ||
|
||
// Definitions for Android API lvl 21 transitions | ||
declare module android { | ||
export module transition { | ||
export abstract class Transition extends java.lang.Object { | ||
addListener(transition: Transition.TransitionListener): Transition; | ||
removeListener(transition: Transition.TransitionListener): Transition; | ||
setDuration(duration: number): Transition; | ||
setInterpolator(interpolator: android.animation.TimeInterpolator): Transition; | ||
} | ||
|
||
export abstract class Visibility extends android.transition.Transition { | ||
constructor(); | ||
} | ||
|
||
export class Slide extends Visibility { | ||
constructor(slideEdge: number); | ||
} | ||
|
||
export class Fade extends Visibility { | ||
constructor(fadingMode: number); | ||
static IN: number; | ||
static OUT: number; | ||
} | ||
|
||
export class Explode extends Visibility { | ||
constructor(); | ||
} | ||
|
||
export module Transition { | ||
export interface TransitionListener { | ||
onTransitionStart(transition: android.transition.Transition): void; | ||
onTransitionEnd(transition: android.transition.Transition): void; | ||
onTransitionResume(transition: android.transition.Transition): void; | ||
onTransitionPause(transition: android.transition.Transition): void; | ||
onTransitionCancel(transition: android.transition.Transition): void; | ||
} | ||
} | ||
} | ||
|
||
export module app { | ||
export interface Fragment { | ||
getEnterTransition(): android.transition.Transition; | ||
getExitTransition(): android.transition.Transition; | ||
getReenterTransition(): android.transition.Transition; | ||
getReturnTransition(): android.transition.Transition; | ||
setEnterTransition(transition: android.transition.Transition): void; | ||
setExitTransition(transition: android.transition.Transition): void; | ||
setReenterTransition(transition: android.transition.Transition): void; | ||
setReturnTransition(transition: android.transition.Transition): void; | ||
setAllowEnterTransitionOverlap(allow: boolean): void; | ||
setAllowReturnTransitionOverlap(allow: boolean): void; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-17.d.ts" /> | ||
/// <reference path="./android/android-support-17.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-18.d.ts" /> | ||
/// <reference path="./android/android-support-17.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-19.d.ts" /> | ||
/// <reference path="./android/android-support-17.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-20.d.ts" /> | ||
/// <reference path="./android/android-support-17.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-21.d.ts" /> | ||
/// <reference path="./android/android-support-17.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-22.d.ts" /> | ||
/// <reference path="./android/android-support-17.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-23.d.ts" /> | ||
/// <reference path="./android/android-support-23.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-24.d.ts" /> | ||
/// <reference path="./android/android-support-23.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-25.d.ts" /> | ||
/// <reference path="./android/android-support-23.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-26.d.ts" /> | ||
/// <reference path="./android/android-support-26.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference path="./android/android-platform-27.d.ts" /> | ||
/// <reference path="./android/android-support-26.d.ts" /> | ||
/// <reference path="./android/common.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/// <reference path="./android/android.d.ts" /> | ||
/// <reference path="./android-17.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.