UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

809 lines (424 loc) • 20.8 kB
declare const enum MDCAnimationTimingFunction { Standard = 0, Deceleration = 1, Acceleration = 2, Sharp = 3, EaseInOut = 0, EaseOut = 1, EaseIn = 2, Translate = 0, TranslateOnScreen = 1, TranslateOffScreen = 2, FadeIn = 1, FadeOut = 2 } declare const enum MDCFontTextStyle { Body1 = 0, Body2 = 1, Caption = 2, Headline = 3, Subheadline = 4, Title = 5, Display1 = 6, Display2 = 7, Display3 = 8, Display4 = 9, Button = 10 } declare class MDCInkGestureRecognizer extends UIGestureRecognizer { static alloc(): MDCInkGestureRecognizer; // inherited from NSObject static new(): MDCInkGestureRecognizer; // inherited from NSObject cancelOnDragOut: boolean; dragCancelDistance: number; targetBounds: CGRect; isTouchWithinTargetBounds(): boolean; touchStartLocationInView(view: UIView): CGPoint; } declare const enum MDCInkStyle { Bounded = 0, Unbounded = 1 } declare class MDCInkTouchController extends NSObject implements UIGestureRecognizerDelegate { static alloc(): MDCInkTouchController; // inherited from NSObject static new(): MDCInkTouchController; // inherited from NSObject cancelsOnDragOut: boolean; readonly defaultInkView: MDCInkView; delaysInkSpread: boolean; delegate: MDCInkTouchControllerDelegate; dragCancelDistance: number; readonly gestureRecognizer: MDCInkGestureRecognizer; targetBounds: CGRect; readonly view: UIView; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol constructor(o: { view: UIView; }); addInkView(): void; cancelInkTouchProcessing(): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; gestureRecognizerShouldBeRequiredToFailByGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldBegin(gestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldReceivePress(gestureRecognizer: UIGestureRecognizer, press: UIPress): boolean; gestureRecognizerShouldReceiveTouch(gestureRecognizer: UIGestureRecognizer, touch: UITouch): boolean; gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; gestureRecognizerShouldRequireFailureOfGestureRecognizer(gestureRecognizer: UIGestureRecognizer, otherGestureRecognizer: UIGestureRecognizer): boolean; initWithView(view: UIView): this; inkViewAtTouchLocation(location: CGPoint): MDCInkView; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } interface MDCInkTouchControllerDelegate extends NSObjectProtocol { inkTouchControllerDidProcessInkViewAtTouchLocation?(inkTouchController: MDCInkTouchController, inkView: MDCInkView, location: CGPoint): void; inkTouchControllerInkViewAtTouchLocation?(inkTouchController: MDCInkTouchController, location: CGPoint): MDCInkView; inkTouchControllerInsertInkViewIntoView?(inkTouchController: MDCInkTouchController, inkView: UIView, view: UIView): void; inkTouchControllerShouldProcessInkTouchesAtTouchLocation?(inkTouchController: MDCInkTouchController, location: CGPoint): boolean; } declare var MDCInkTouchControllerDelegate: { prototype: MDCInkTouchControllerDelegate; }; declare class MDCInkView extends UIView { static alloc(): MDCInkView; // inherited from NSObject static appearance(): MDCInkView; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): MDCInkView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MDCInkView; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MDCInkView; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MDCInkView; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MDCInkView; // inherited from UIAppearance static injectedInkViewForView(view: UIView): MDCInkView; static new(): MDCInkView; // inherited from NSObject animationDelegate: MDCInkViewDelegate; customInkCenter: CGPoint; readonly defaultInkColor: UIColor; inkColor: UIColor; inkStyle: MDCInkStyle; maxRippleRadius: number; usesCustomInkCenter: boolean; usesLegacyInkRipple: boolean; cancelAllAnimationsAnimated(animated: boolean): void; startTouchBeganAnimationAtPointCompletion(point: CGPoint, completionBlock: () => void): void; startTouchBeganAtPointAnimatedWithCompletion(point: CGPoint, animated: boolean, completionBlock: () => void): void; startTouchEndAtPointAnimatedWithCompletion(point: CGPoint, animated: boolean, completionBlock: () => void): void; startTouchEndedAnimationAtPointCompletion(point: CGPoint, completionBlock: () => void): void; } interface MDCInkViewDelegate extends NSObjectProtocol { inkAnimationDidEnd?(inkView: MDCInkView): void; inkAnimationDidStart?(inkView: MDCInkView): void; } declare var MDCInkViewDelegate: { prototype: MDCInkViewDelegate; }; declare let MDCShadowElevationAppBar: number; declare let MDCShadowElevationBottomNavigationBar: number; declare let MDCShadowElevationCardPickedUp: number; declare let MDCShadowElevationCardResting: number; declare let MDCShadowElevationDialog: number; declare let MDCShadowElevationFABPressed: number; declare let MDCShadowElevationFABResting: number; declare let MDCShadowElevationMenu: number; declare let MDCShadowElevationModalBottomSheet: number; declare let MDCShadowElevationNavDrawer: number; declare let MDCShadowElevationNone: number; declare let MDCShadowElevationPicker: number; declare let MDCShadowElevationQuickEntry: number; declare let MDCShadowElevationQuickEntryResting: number; declare let MDCShadowElevationRaisedButtonPressed: number; declare let MDCShadowElevationRaisedButtonResting: number; declare let MDCShadowElevationRefresh: number; declare let MDCShadowElevationRightDrawer: number; declare let MDCShadowElevationSearchBarResting: number; declare let MDCShadowElevationSearchBarScrolled: number; declare let MDCShadowElevationSnackbar: number; declare let MDCShadowElevationSubMenu: number; declare let MDCShadowElevationSwitch: number; declare class MDCShadowLayer extends CALayer implements CALayerDelegate { static alloc(): MDCShadowLayer; // inherited from NSObject static layer(): MDCShadowLayer; // inherited from CALayer static new(): MDCShadowLayer; // inherited from NSObject elevation: number; shadowMaskEnabled: boolean; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol actionForLayerForKey(layer: CALayer, event: string): CAAction; animateCornerRadiusWithTimingFunctionDuration(cornerRadius: number, timingFunction: CAMediaTimingFunction, duration: number): void; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; displayLayer(layer: CALayer): void; drawLayerInContext(layer: CALayer, ctx: any): void; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; layerWillDraw(layer: CALayer): void; layoutSublayersOfLayer(layer: CALayer): void; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MDCShadowMetrics extends NSObject { static alloc(): MDCShadowMetrics; // inherited from NSObject static metricsWithElevation(elevation: number): MDCShadowMetrics; static new(): MDCShadowMetrics; // inherited from NSObject readonly bottomShadowOffset: CGSize; readonly bottomShadowOpacity: number; readonly bottomShadowRadius: number; readonly topShadowOffset: CGSize; readonly topShadowOpacity: number; readonly topShadowRadius: number; } declare class MDCSystemFontLoader extends NSObject implements MDCTypographyFontLoading { static alloc(): MDCSystemFontLoader; // inherited from NSObject static new(): MDCSystemFontLoader; // inherited from NSObject readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol boldFontFromFont(font: UIFont): UIFont; boldFontOfSize(fontSize: number): UIFont; boldItalicFontOfSize(fontSize: number): UIFont; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isLargeForContrastRatios(font: UIFont): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; italicFontFromFont(font: UIFont): UIFont; italicFontOfSize(fontSize: number): UIFont; lightFontOfSize(fontSize: number): UIFont; mediumFontOfSize(fontSize: number): UIFont; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; regularFontOfSize(fontSize: number): UIFont; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MDCTabBar extends UIView implements UIBarPositioning { static alloc(): MDCTabBar; // inherited from NSObject static appearance(): MDCTabBar; // inherited from UIAppearance static appearanceForTraitCollection(trait: UITraitCollection): MDCTabBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedIn(trait: UITraitCollection, ContainerClass: typeof NSObject): MDCTabBar; // inherited from UIAppearance static appearanceForTraitCollectionWhenContainedInInstancesOfClasses(trait: UITraitCollection, containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MDCTabBar; // inherited from UIAppearance static appearanceWhenContainedIn(ContainerClass: typeof NSObject): MDCTabBar; // inherited from UIAppearance static appearanceWhenContainedInInstancesOfClasses(containerTypes: NSArray<typeof NSObject> | typeof NSObject[]): MDCTabBar; // inherited from UIAppearance static defaultHeightForBarPositionItemAppearance(position: UIBarPosition, appearance: MDCTabBarItemAppearance): number; static defaultHeightForItemAppearance(appearance: MDCTabBarItemAppearance): number; static new(): MDCTabBar; // inherited from NSObject alignment: MDCTabBarAlignment; barTintColor: UIColor; bottomDividerColor: UIColor; delegate: MDCTabBarDelegate; displaysUppercaseTitles: boolean; enableRippleBehavior: boolean; inkColor: UIColor; itemAppearance: MDCTabBarItemAppearance; items: NSArray<UITabBarItem>; rippleColor: UIColor; selectedItem: UITabBarItem; selectedItemTintColor: UIColor; selectedItemTitleFont: UIFont; selectionIndicatorTemplate: MDCTabBarIndicatorTemplate; titleTextTransform: MDCTabBarTextTransform; unselectedItemTintColor: UIColor; unselectedItemTitleFont: UIFont; readonly barPosition: UIBarPosition; // inherited from UIBarPositioning readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol accessibilityElementForItem(item: UITabBarItem): any; class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; imageTintColorForState(state: MDCTabBarItemState): UIColor; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setAlignmentAnimated(alignment: MDCTabBarAlignment, animated: boolean): void; setImageTintColorForState(color: UIColor, state: MDCTabBarItemState): void; setSelectedItemAnimated(selectedItem: UITabBarItem, animated: boolean): void; setTitleColorForState(color: UIColor, state: MDCTabBarItemState): void; titleColorForState(state: MDCTabBarItemState): UIColor; } declare const enum MDCTabBarAlignment { Leading = 0, Justified = 1, Center = 2, CenterSelected = 3 } interface MDCTabBarControllerDelegate extends NSObjectProtocol { tabBarControllerDidSelectViewController?(tabBarController: MDCTabBarViewController, viewController: UIViewController): void; tabBarControllerShouldSelectViewController?(tabBarController: MDCTabBarViewController, viewController: UIViewController): boolean; } declare var MDCTabBarControllerDelegate: { prototype: MDCTabBarControllerDelegate; }; interface MDCTabBarDelegate extends UIBarPositioningDelegate { tabBarDidSelectItem?(tabBar: MDCTabBar, item: UITabBarItem): void; tabBarShouldSelectItem?(tabBar: MDCTabBar, item: UITabBarItem): boolean; tabBarWillSelectItem?(tabBar: MDCTabBar, item: UITabBarItem): void; } declare var MDCTabBarDelegate: { prototype: MDCTabBarDelegate; }; declare class MDCTabBarIndicatorAttributes extends NSObject implements NSCopying { static alloc(): MDCTabBarIndicatorAttributes; // inherited from NSObject static new(): MDCTabBarIndicatorAttributes; // inherited from NSObject path: UIBezierPath; copyWithZone(zone: interop.Pointer | interop.Reference<any>): any; } interface MDCTabBarIndicatorContext extends NSObjectProtocol { bounds: CGRect; contentFrame: CGRect; item: UITabBarItem; } declare var MDCTabBarIndicatorContext: { prototype: MDCTabBarIndicatorContext; }; interface MDCTabBarIndicatorTemplate extends NSObjectProtocol { indicatorAttributesForContext(context: MDCTabBarIndicatorContext): MDCTabBarIndicatorAttributes; } declare var MDCTabBarIndicatorTemplate: { prototype: MDCTabBarIndicatorTemplate; }; declare const enum MDCTabBarItemAppearance { Titles = 0, Images = 1, TitledImages = 2 } declare const enum MDCTabBarItemState { Normal = 0, Selected = 1 } declare const enum MDCTabBarTextTransform { Automatic = 0, None = 1, Uppercase = 2 } declare class MDCTabBarUnderlineIndicatorTemplate extends NSObject implements MDCTabBarIndicatorTemplate { static alloc(): MDCTabBarUnderlineIndicatorTemplate; // inherited from NSObject static new(): MDCTabBarUnderlineIndicatorTemplate; // inherited from NSObject readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; indicatorAttributesForContext(context: MDCTabBarIndicatorContext): MDCTabBarIndicatorAttributes; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; } declare class MDCTabBarViewController extends UIViewController implements MDCTabBarDelegate, UIBarPositioningDelegate { static alloc(): MDCTabBarViewController; // inherited from NSObject static new(): MDCTabBarViewController; // inherited from NSObject delegate: MDCTabBarControllerDelegate; selectedViewController: UIViewController; readonly tabBar: MDCTabBar; tabBarHidden: boolean; viewControllers: NSArray<UIViewController>; readonly debugDescription: string; // inherited from NSObjectProtocol readonly description: string; // inherited from NSObjectProtocol readonly hash: number; // inherited from NSObjectProtocol readonly isProxy: boolean; // inherited from NSObjectProtocol readonly superclass: typeof NSObject; // inherited from NSObjectProtocol readonly // inherited from NSObjectProtocol class(): typeof NSObject; conformsToProtocol(aProtocol: any /* Protocol */): boolean; isEqual(object: any): boolean; isKindOfClass(aClass: typeof NSObject): boolean; isMemberOfClass(aClass: typeof NSObject): boolean; performSelector(aSelector: string): any; performSelectorWithObject(aSelector: string, object: any): any; performSelectorWithObjectWithObject(aSelector: string, object1: any, object2: any): any; positionForBar(bar: UIBarPositioning): UIBarPosition; respondsToSelector(aSelector: string): boolean; retainCount(): number; self(): this; setTabBarHiddenAnimated(hidden: boolean, animated: boolean): void; tabBarDidSelectItem(tabBar: MDCTabBar, item: UITabBarItem): void; tabBarShouldSelectItem(tabBar: MDCTabBar, item: UITabBarItem): boolean; tabBarWillSelectItem(tabBar: MDCTabBar, item: UITabBarItem): void; } declare let MDCTabBarViewControllerAnimationDuration: number; declare class MDCTypography extends NSObject { static alloc(): MDCTypography; // inherited from NSObject static body1Font(): UIFont; static body1FontOpacity(): number; static body2Font(): UIFont; static body2FontOpacity(): number; static boldFontFromFont(font: UIFont): UIFont; static buttonFont(): UIFont; static buttonFontOpacity(): number; static captionFont(): UIFont; static captionFontOpacity(): number; static display1Font(): UIFont; static display1FontOpacity(): number; static display2Font(): UIFont; static display2FontOpacity(): number; static display3Font(): UIFont; static display3FontOpacity(): number; static display4Font(): UIFont; static display4FontOpacity(): number; static fontLoader(): MDCTypographyFontLoading; static headlineFont(): UIFont; static headlineFontOpacity(): number; static isLargeForContrastRatios(font: UIFont): boolean; static italicFontFromFont(font: UIFont): UIFont; static new(): MDCTypography; // inherited from NSObject static setFontLoader(fontLoader: MDCTypographyFontLoading): void; static subheadFont(): UIFont; static subheadFontOpacity(): number; static titleFont(): UIFont; static titleFontOpacity(): number; } interface MDCTypographyFontLoading extends NSObjectProtocol { boldFontFromFont?(font: UIFont): UIFont; boldFontOfSize?(fontSize: number): UIFont; boldItalicFontOfSize?(fontSize: number): UIFont; isLargeForContrastRatios?(font: UIFont): boolean; italicFontFromFont?(font: UIFont): UIFont; italicFontOfSize?(fontSize: number): UIFont; lightFontOfSize(fontSize: number): UIFont; mediumFontOfSize(fontSize: number): UIFont; regularFontOfSize(fontSize: number): UIFont; } declare var MDCTypographyFontLoading: { prototype: MDCTypographyFontLoading; }; declare let MaterialComponentsVersionNumber: number; declare let MaterialComponentsVersionString: interop.Reference<number>;