mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Don't expose platform types in public d.ts files.
Use any. Add a comment with the real type.
This commit is contained in:
6
ui/action-bar/action-bar.d.ts
vendored
6
ui/action-bar/action-bar.d.ts
vendored
@@ -205,7 +205,7 @@ declare module "ui/action-bar" {
|
||||
}
|
||||
|
||||
//@private
|
||||
export function _setNavBarColor(navBar: UINavigationBar, color: UIColor);
|
||||
export function _setNavBarBackgroundColor(navBar: UINavigationBar, color: UIColor);
|
||||
export function _setNavBarColor(navBar: any /* UINavigationBar */, color: any /* UIColor */);
|
||||
export function _setNavBarBackgroundColor(navBar: any /* UINavigationBar */, color: any /* UIColor */);
|
||||
//@endprivate
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,16 +17,16 @@ declare module "ui/activity-indicator" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.ProgressBar;
|
||||
android: any /* android.widget.ProgressBar */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UIActivityIndicatorView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityIndicatorView_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIActivityIndicatorView;
|
||||
ios: any /* UIActivityIndicatorView */;
|
||||
|
||||
/**
|
||||
* Gets or sets a value indicating whether the widget is currently displaying progress.
|
||||
*/
|
||||
busy: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/button/button.d.ts
vendored
6
ui/button/button.d.ts
vendored
@@ -24,12 +24,12 @@ declare module "ui/button" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/Button.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.Button;
|
||||
android: any /* android.widget.Button */;
|
||||
|
||||
/**
|
||||
* Gets the native [UIButton](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIButton_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIButton;
|
||||
ios: any /* UIButton */;
|
||||
|
||||
/**
|
||||
* Gets or sets the text (label) displayed by this instance.
|
||||
@@ -62,4 +62,4 @@ declare module "ui/button" {
|
||||
*/
|
||||
_addChildFromBuilder(name: string, value: any): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
ui/core/control-state-change.d.ts
vendored
4
ui/core/control-state-change.d.ts
vendored
@@ -9,6 +9,6 @@
|
||||
* @param control An instance of the UIControl which state will be watched.
|
||||
* @param callback A callback called when a visual state of the UIControl is changed.
|
||||
*/
|
||||
constructor(control: UIControl, callback: (state: string) => void);
|
||||
constructor(control: any /* UIControl */, callback: (state: string) => void);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,18 +62,6 @@ function onIsUserInteractionEnabledPropertyChanged(data: dependencyObservable.Pr
|
||||
}
|
||||
(<proxy.PropertyMetadata>viewCommon.View.isUserInteractionEnabledProperty.metadata).onSetNativeValue = onIsUserInteractionEnabledPropertyChanged;
|
||||
|
||||
export var NativeViewGroup = (<any>android.view.ViewGroup).extend({
|
||||
onMeasure: function (widthMeasureSpec, heightMeasureSpec) {
|
||||
var owner: viewDefinition.View = this[OWNER];
|
||||
owner.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||
this.setMeasuredDimension(owner.getMeasuredWidth(), owner.getMeasuredHeight());
|
||||
},
|
||||
onLayout: function (changed: boolean, left: number, top: number, right: number, bottom: number): void {
|
||||
var owner: viewDefinition.View = this[OWNER];
|
||||
owner.onLayout(left, top, right, bottom);
|
||||
}
|
||||
});
|
||||
|
||||
export class View extends viewCommon.View {
|
||||
private _disableUserInteractionListener: android.view.View.OnTouchListener = new android.view.View.OnTouchListener({
|
||||
onTouch: function (view: android.view.View, event: android.view.MotionEvent) {
|
||||
|
||||
11
ui/core/view.d.ts
vendored
11
ui/core/view.d.ts
vendored
@@ -452,7 +452,7 @@ declare module "ui/core/view" {
|
||||
_propagateInheritableProperties(view: View)
|
||||
_inheritProperties(parentView: View)
|
||||
_removeView(view: View);
|
||||
_context: android.content.Context;
|
||||
_context: any /* android.content.Context */;
|
||||
|
||||
public _applyXmlAttribute(attribute: string, value: any): boolean;
|
||||
|
||||
@@ -474,7 +474,7 @@ declare module "ui/core/view" {
|
||||
_eachChildView(callback: (child: View) => boolean);
|
||||
_childrenCount: number;
|
||||
|
||||
_onAttached(context: android.content.Context): void;
|
||||
_onAttached(context: any /* android.content.Context */): void;
|
||||
_onContextChanged(): void;
|
||||
_onDetached(force?: boolean): void;
|
||||
_createUI(): void;
|
||||
@@ -511,13 +511,6 @@ declare module "ui/core/view" {
|
||||
export class CustomLayoutView extends View {
|
||||
}
|
||||
|
||||
//@private
|
||||
export class NativeViewGroup extends android.view.ViewGroup {
|
||||
constructor(context: android.content.Context);
|
||||
public setOwner(view: View);
|
||||
}
|
||||
//@endprivate
|
||||
|
||||
/**
|
||||
* Defines an interface for adding arrays declared in xml.
|
||||
*/
|
||||
|
||||
6
ui/date-picker/date-picker.d.ts
vendored
6
ui/date-picker/date-picker.d.ts
vendored
@@ -18,12 +18,12 @@ declare module "ui/date-picker" {
|
||||
/**
|
||||
* Gets the native [android.widget.DatePicker](http://developer.android.com/reference/android/widget/DatePicker.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.DatePicker;
|
||||
android: any /* android.widget.DatePicker */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UIDatePicker](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIDatePicker;
|
||||
ios: any /* UIDatePicker */;
|
||||
|
||||
/**
|
||||
* Gets or sets the year.
|
||||
@@ -50,4 +50,4 @@ declare module "ui/date-picker" {
|
||||
*/
|
||||
minDate: Date;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
16
ui/frame/frame.d.ts
vendored
16
ui/frame/frame.d.ts
vendored
@@ -176,7 +176,7 @@ declare module "ui/frame" {
|
||||
/**
|
||||
* Gets the Android-specific menu item that has been selected.
|
||||
*/
|
||||
item: android.view.IMenuItem;
|
||||
item: any /* android.view.IMenuItem */;
|
||||
|
||||
/**
|
||||
* True to mark the event as handled (that is to prevent the default processing).
|
||||
@@ -193,28 +193,28 @@ declare module "ui/frame" {
|
||||
/**
|
||||
* Gets the native [android ViewGroup](http://developer.android.com/reference/android/view/ViewGroup.html) instance that represents the root layout part of the Frame.
|
||||
*/
|
||||
rootViewGroup: android.view.ViewGroup;
|
||||
rootViewGroup: any /* android.view.ViewGroup */;
|
||||
|
||||
/**
|
||||
* Gets the native [android Activity](http://developer.android.com/reference/android/app/Activity.html) instance associated with this Frame. In case of nested Frame objects, this property points to the activity of the root Frame.
|
||||
*/
|
||||
activity: android.app.Activity;
|
||||
activity: any /* android.app.Activity */;
|
||||
|
||||
/**
|
||||
* Gets the current (foreground) activity for the application. This property will recursively traverse all existing Frame objects and check for own Activity property.
|
||||
*/
|
||||
currentActivity: android.app.Activity;
|
||||
currentActivity: any /* android.app.Activity */;
|
||||
|
||||
/**
|
||||
* Gets the actionBar property of the currentActivity.
|
||||
*/
|
||||
actionBar: android.app.ActionBar;
|
||||
actionBar: any /* android.app.ActionBar */;
|
||||
|
||||
/**
|
||||
* A function called by the Runtime whenever a new Activity is about to be opened.
|
||||
* @param intent The native [android Intent](http://developer.android.com/reference/android/content/Intent.html) object passed to the Activity's onCreate method.
|
||||
*/
|
||||
onActivityRequested(intent: android.content.Intent): Object;
|
||||
onActivityRequested(intent: any /* android.content.Intent */): Object;
|
||||
|
||||
/**
|
||||
* Determines whether the Activity associated with this Frame will display an action bar or not.
|
||||
@@ -237,7 +237,7 @@ declare module "ui/frame" {
|
||||
/**
|
||||
* Gets the native [UINavigationController](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationController_Class/index.html) instance associated with this Frame.
|
||||
*/
|
||||
controller: UINavigationController;
|
||||
controller: any /* UINavigationController */;
|
||||
|
||||
/**
|
||||
* Gets or sets the visibility of navigationBar.
|
||||
@@ -245,4 +245,4 @@ declare module "ui/frame" {
|
||||
*/
|
||||
navBarVisibility: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/gestures/gestures.d.ts
vendored
6
ui/gestures/gestures.d.ts
vendored
@@ -76,7 +76,7 @@ declare module "ui/gestures" {
|
||||
/**
|
||||
* Gets the underlying native iOS specific [UIGestureRecognizer](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIGestureRecognizer_Class/).
|
||||
*/
|
||||
ios: UIGestureRecognizer
|
||||
ios: any /* UIGestureRecognizer */;
|
||||
/**
|
||||
* Gets the underlying native android specific [gesture detector](http://developer.android.com/reference/android/view/GestureDetector.html).
|
||||
*/
|
||||
@@ -151,7 +151,7 @@ declare module "ui/gestures" {
|
||||
/**
|
||||
* An internal Android specific method used to pass the motion event to the correct gesture observer.
|
||||
*/
|
||||
androidOnTouchEvent: (motionEvent: android.view.MotionEvent) => void;
|
||||
androidOnTouchEvent: (motionEvent: any /* android.view.MotionEvent */) => void;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -174,4 +174,4 @@ declare module "ui/gestures" {
|
||||
* @param type - A string representation of a gesture type (e.g. Tap).
|
||||
*/
|
||||
export function fromString(type: string): GestureTypes;
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/html-view/html-view.d.ts
vendored
6
ui/html-view/html-view.d.ts
vendored
@@ -22,12 +22,12 @@ declare module "ui/html-view" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.TextView;
|
||||
android: any /* android.widget.TextView */;
|
||||
|
||||
/**
|
||||
* Gets the native [UILabel](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UILabel;
|
||||
ios: any /* UILabel */;
|
||||
|
||||
/**
|
||||
* Gets or sets html string for the HtmlView.
|
||||
@@ -44,4 +44,4 @@ declare module "ui/html-view" {
|
||||
*/
|
||||
html?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
ui/image/image.d.ts
vendored
4
ui/image/image.d.ts
vendored
@@ -18,12 +18,12 @@ declare module "ui/image" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/ImageView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.ImageView;
|
||||
android: any /* android.widget.ImageView */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UIImageView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImageView_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIImageView;
|
||||
ios: any /* UIImageView */;
|
||||
|
||||
/**
|
||||
* Gets or sets the image source of the image.
|
||||
|
||||
6
ui/label/label.d.ts
vendored
6
ui/label/label.d.ts
vendored
@@ -21,12 +21,12 @@ declare module "ui/label" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/TextView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.TextView;
|
||||
android: any /* android.widget.TextView */;
|
||||
|
||||
/**
|
||||
* Gets the native [UILabel](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UILabel_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UILabel;
|
||||
ios: any /* UILabel */;
|
||||
|
||||
/**
|
||||
* Gets or sets whether the Label wraps text or not.
|
||||
@@ -48,4 +48,4 @@ declare module "ui/label" {
|
||||
*/
|
||||
textWrap?: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,18 @@ import utils = require("utils/utils");
|
||||
|
||||
var OWNER = "_owner";
|
||||
|
||||
var NativeViewGroup = (<any>android.view.ViewGroup).extend({
|
||||
onMeasure: function (widthMeasureSpec, heightMeasureSpec) {
|
||||
var owner: view.View = this[OWNER];
|
||||
owner.onMeasure(widthMeasureSpec, heightMeasureSpec);
|
||||
this.setMeasuredDimension(owner.getMeasuredWidth(), owner.getMeasuredHeight());
|
||||
},
|
||||
onLayout: function (changed: boolean, left: number, top: number, right: number, bottom: number): void {
|
||||
var owner: view.View = this[OWNER];
|
||||
owner.onLayout(left, top, right, bottom);
|
||||
}
|
||||
});
|
||||
|
||||
export class Layout extends layoutBase.LayoutBase implements definition.Layout {
|
||||
private _viewGroup: android.view.ViewGroup;
|
||||
|
||||
@@ -18,7 +30,7 @@ export class Layout extends layoutBase.LayoutBase implements definition.Layout {
|
||||
}
|
||||
|
||||
public _createUI() {
|
||||
this._viewGroup = new view.NativeViewGroup(this._context);
|
||||
this._viewGroup = new NativeViewGroup(this._context);
|
||||
this._viewGroup[OWNER] = this;
|
||||
}
|
||||
|
||||
@@ -60,4 +72,4 @@ export class Layout extends layoutBase.LayoutBase implements definition.Layout {
|
||||
public onLayout(left: number, top: number, right: number, bottom: number): void {
|
||||
// Don't call super because it will trigger layout again.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/list-picker/list-picker.d.ts
vendored
6
ui/list-picker/list-picker.d.ts
vendored
@@ -17,12 +17,12 @@ declare module "ui/list-picker" {
|
||||
/**
|
||||
* Gets the native [android.widget.NumberPicker](http://developer.android.com/reference/android/widget/NumberPicker.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.NumberPicker;
|
||||
android: any /* android.widget.NumberPicker */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UIPickerView](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIPickerView;
|
||||
ios: any /* UIPickerView */;
|
||||
|
||||
/**
|
||||
* Gets or sets the selected index.
|
||||
@@ -35,4 +35,4 @@ declare module "ui/list-picker" {
|
||||
*/
|
||||
items: any;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
ui/list-view/list-view.d.ts
vendored
8
ui/list-view/list-view.d.ts
vendored
@@ -52,12 +52,12 @@ declare module "ui/list-view" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/ListView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.ListView;
|
||||
android: any /* android.widget.ListView */;
|
||||
|
||||
/**
|
||||
* Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableView_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UITableView;
|
||||
ios: any /* UITableView */;
|
||||
|
||||
/**
|
||||
* Gets a value indicating whether the ListView is currently scrolling.
|
||||
@@ -137,11 +137,11 @@ declare module "ui/list-view" {
|
||||
/**
|
||||
* Gets the native [iOS view](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableViewCell_Class/) that represents the user interface where the view is hosted. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UITableViewCell;
|
||||
ios: any /* UITableViewCell */;
|
||||
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/view/ViewGroup.html) that represents the user interface where the view is hosted. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.view.ViewGroup;
|
||||
android: any /* android.view.ViewGroup */;
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/progress/progress.d.ts
vendored
6
ui/progress/progress.d.ts
vendored
@@ -22,12 +22,12 @@ declare module "ui/progress" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/ProgressBar.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.ProgressBar;
|
||||
android: any /* android.widget.ProgressBar */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UIProgressView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIProgressView_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIProgressView;
|
||||
ios: any /* UIProgressView */;
|
||||
|
||||
/**
|
||||
* Gets or sets a progress current value.
|
||||
@@ -39,4 +39,4 @@ declare module "ui/progress" {
|
||||
*/
|
||||
maxValue: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/search-bar/search-bar.d.ts
vendored
6
ui/search-bar/search-bar.d.ts
vendored
@@ -34,12 +34,12 @@ declare module "ui/search-bar" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/SearchView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.SearchView;
|
||||
android: any /* android.widget.SearchView */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UISearchBar](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISearchBar_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UISearchBar;
|
||||
ios: any /* UISearchBar */;
|
||||
|
||||
/**
|
||||
* Gets or sets a search bar text.
|
||||
@@ -84,4 +84,4 @@ declare module "ui/search-bar" {
|
||||
*/
|
||||
dismissSoftInput(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/slider/slider.d.ts
vendored
6
ui/slider/slider.d.ts
vendored
@@ -27,12 +27,12 @@ declare module "ui/slider" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/SeekBar.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.SeekBar;
|
||||
android: any /* android.widget.SeekBar */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UISlider](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISlider_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UISlider;
|
||||
ios: any /* UISlider */;
|
||||
|
||||
/**
|
||||
* Gets or sets a slider current value. The default value is 0.
|
||||
@@ -49,4 +49,4 @@ declare module "ui/slider" {
|
||||
*/
|
||||
maxValue: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
11
ui/styling/background.android.d.ts
vendored
Normal file
11
ui/styling/background.android.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
declare module "ui/styling/background" {
|
||||
// We are using "ad" here to avoid namespace collision with the global android object
|
||||
export module ad {
|
||||
export class BorderDrawable extends android.graphics.drawable.ColorDrawable {
|
||||
borderWidth: number;
|
||||
cornerRadius: number;
|
||||
borderColor: number;
|
||||
background: Background;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
ui/styling/background.d.ts
vendored
12
ui/styling/background.d.ts
vendored
@@ -44,16 +44,6 @@ declare module "ui/styling/background" {
|
||||
}
|
||||
|
||||
export module ios {
|
||||
export function createBackgroundUIColor(view: viewModule.View): UIColor;
|
||||
}
|
||||
|
||||
// We are using "ad" here to avoid namespace collision with the global android object
|
||||
export module ad {
|
||||
export class BorderDrawable extends android.graphics.drawable.ColorDrawable {
|
||||
borderWidth: number;
|
||||
cornerRadius: number;
|
||||
borderColor: number;
|
||||
background: Background;
|
||||
}
|
||||
export function createBackgroundUIColor(view: viewModule.View): any /* UIColor */;
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/styling/font.d.ts
vendored
6
ui/styling/font.d.ts
vendored
@@ -12,8 +12,8 @@
|
||||
|
||||
constructor(family: string, size: number, style: string, weight: string);
|
||||
|
||||
public getAndroidTypeface(): android.graphics.Typeface;
|
||||
public getUIFont(defaultFont: UIFont): UIFont;
|
||||
public getAndroidTypeface(): any /* android.graphics.Typeface */;
|
||||
public getUIFont(defaultFont: any /* UIFont */): any /* UIFont */;
|
||||
|
||||
public withFontFamily(family: string): Font;
|
||||
public withFontStyle(style: string): Font;
|
||||
@@ -27,4 +27,4 @@
|
||||
export module ios {
|
||||
export function registerFont(fontFile: string);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/switch/switch.d.ts
vendored
6
ui/switch/switch.d.ts
vendored
@@ -18,16 +18,16 @@ declare module "ui/switch" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/Switch.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.Switch;
|
||||
android: any /* android.widget.Switch */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UISwitch](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISwitch_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UISwitch;
|
||||
ios: any /* UISwitch */;
|
||||
|
||||
/**
|
||||
* Gets or sets if a switch is checked or not.
|
||||
*/
|
||||
checked: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
8
ui/tab-view/tab-view.d.ts
vendored
8
ui/tab-view/tab-view.d.ts
vendored
@@ -74,12 +74,12 @@ declare module "ui/tab-view" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/support/v4/view/ViewPager.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.view.View;//android.support.v4.view.ViewPager;
|
||||
android: any /* android.view.View */;//android.support.v4.view.ViewPager;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UITabBarController](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarController_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UITabBarController;
|
||||
ios: any /* UITabBarController */;
|
||||
|
||||
/**
|
||||
* String value used when hooking to the selectedIndexChanged event.
|
||||
@@ -100,8 +100,8 @@ declare module "ui/tab-view" {
|
||||
on(event: "selectedIndexChanged", callback: (args: SelectedIndexChangedEventData) => void, thisArg?: any);
|
||||
|
||||
//@private
|
||||
_getAndroidTabView(): org.nativescript.widgets.TabLayout;
|
||||
_getAndroidTabView(): any /* org.nativescript.widgets.TabLayout */;
|
||||
_updateIOSTabBarColors(): void;
|
||||
//@endprivate
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/text-field/text-field.d.ts
vendored
6
ui/text-field/text-field.d.ts
vendored
@@ -15,12 +15,12 @@ declare module "ui/text-field" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.EditText;
|
||||
android: any /* android.widget.EditText */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UITextField](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextField_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UITextField;
|
||||
ios: any /* UITextField */;
|
||||
|
||||
/**
|
||||
* Gets or sets if a text field is for password entry.
|
||||
@@ -37,4 +37,4 @@ declare module "ui/text-field" {
|
||||
*/
|
||||
secure?: boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/text-view/text-view.d.ts
vendored
6
ui/text-view/text-view.d.ts
vendored
@@ -13,11 +13,11 @@ declare module "ui/text-view" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/widget/EditText.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.EditText;
|
||||
android: any /* android.widget.EditText */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UITextView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextView_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UITextView;
|
||||
ios: any /* UITextView */;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
6
ui/time-picker/time-picker.d.ts
vendored
6
ui/time-picker/time-picker.d.ts
vendored
@@ -17,12 +17,12 @@ declare module "ui/time-picker" {
|
||||
/**
|
||||
* Gets the native [android.widget.TimePicker](http://developer.android.com/reference/android/widget/TimePicker.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.widget.TimePicker;
|
||||
android: any /* android.widget.TimePicker */;
|
||||
|
||||
/**
|
||||
* Gets the native iOS [UIDatePicker](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIDatePicker;
|
||||
ios: any /* UIDatePicker */;
|
||||
|
||||
/**
|
||||
* Gets or sets the time hour.
|
||||
@@ -34,4 +34,4 @@ declare module "ui/time-picker" {
|
||||
*/
|
||||
minute: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
ui/utils.d.ts
vendored
4
ui/utils.d.ts
vendored
@@ -5,9 +5,9 @@
|
||||
* Gets actual height of a [UIView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/) widget.
|
||||
* @param uiView - An instance of UIView.
|
||||
*/
|
||||
export function getActualHeight(uiView: UIView): number;
|
||||
export function getActualHeight(uiView: any /* UIView */): number;
|
||||
|
||||
export function _layoutRootView(rootView: view.View, parentBounds: CGRect): void;
|
||||
export function _layoutRootView(rootView: view.View, parentBounds: any /* CGRect */): void;
|
||||
|
||||
export function getStatusBarHeight(): number;
|
||||
}
|
||||
|
||||
6
ui/web-view/web-view.d.ts
vendored
6
ui/web-view/web-view.d.ts
vendored
@@ -28,12 +28,12 @@ declare module "ui/web-view" {
|
||||
/**
|
||||
* Gets the native [android widget](http://developer.android.com/reference/android/webkit/WebView.html) that represents the user interface for this component. Valid only when running on Android OS.
|
||||
*/
|
||||
android: android.webkit.WebView;
|
||||
android: any /* android.webkit.WebView */;
|
||||
|
||||
/**
|
||||
* Gets the native [UIWebView](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIWebView_Class/) that represents the user interface for this component. Valid only when running on iOS.
|
||||
*/
|
||||
ios: UIWebView;
|
||||
ios: any /* UIWebView */;
|
||||
|
||||
/**
|
||||
* [Obsolete. Please use src instead!] Gets or sets the url displayed by this instance.
|
||||
@@ -107,4 +107,4 @@ declare module "ui/web-view" {
|
||||
*/
|
||||
error: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user