UNPKG

@nativescript/core

Version:

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

65 lines (64 loc) 3.16 kB
import { IOSActionItemSettings } from '.'; import { ActionItemBase, ActionBarBase, flatProperty, iosIconRenderingModeProperty, iosLargeTitleProperty } from './action-bar-common'; import { Color } from '../../color'; import { LinearGradient } from '../styling/linear-gradient'; import { colorProperty, backgroundInternalProperty, backgroundColorProperty, backgroundImageProperty } from '../styling/style-properties'; import { accessibilityHintProperty, accessibilityLabelProperty, accessibilityLanguageProperty, accessibilityValueProperty } from '../../accessibility/accessibility-properties'; export * from './action-bar-common'; export declare class ActionItem extends ActionItemBase { private _ios; get ios(): IOSActionItemSettings; set ios(value: IOSActionItemSettings); } export declare class NavigationButton extends ActionItem { _navigationItem: UINavigationItem; _onVisibilityChanged(visibility: string): void; } export declare class ActionBar extends ActionBarBase { [accessibilityValueProperty.setNative]: (value: string) => void; [accessibilityLabelProperty.setNative]: (value: string) => void; [accessibilityHintProperty.setNative]: (value: string) => void; [accessibilityLanguageProperty.setNative]: (value: string) => void; [colorProperty.getDefault]: () => UIColor; [colorProperty.setNative]: (color: Color) => void; [backgroundColorProperty.getDefault]: () => UIColor; [backgroundColorProperty.setNative]: (color: UIColor | Color) => void; [backgroundImageProperty.getDefault]: () => UIImage; [backgroundImageProperty.setNative]: (value: string | LinearGradient) => void; [backgroundInternalProperty.getDefault]: () => UIColor; [backgroundInternalProperty.setNative]: (value: UIColor) => void; [flatProperty.setNative]: (value: boolean) => void; [iosIconRenderingModeProperty.getDefault]: () => "automatic" | "alwaysOriginal" | "alwaysTemplate"; [iosIconRenderingModeProperty.setNative]: (value: "automatic" | "alwaysOriginal" | "alwaysTemplate") => void; [iosLargeTitleProperty.setNative]: (value: boolean) => void; get ios(): UIView; createNativeView(): UIView; disposeNativeView(): void; _addChildFromBuilder(name: string, value: any): void; get _getActualSize(): { width: number; height: number; }; layoutInternal(): void; private _getIconRenderingMode; private _getNavigationItem; update(): void; private populateMenuItems; private createBarButtonItem; private updateFills; private setColor; private _setBackgroundColor; private _getBackgroundColor; private _setBackgroundImage; private _getBackgroundImage; private _createBackgroundUIImage; _onTitlePropertyChanged(): void; private updateFlatness; private _getAppearance; private _updateAppearance; onMeasure(widthMeasureSpec: number, heightMeasureSpec: number): void; onLayout(left: number, top: number, right: number, bottom: number): void; layoutNativeView(left: number, top: number, right: number, bottom: number): void; private get navBar(); private checkLargeTitleSupport; }