RuntimeActive

NativeScript Android Runtime

NativeScript Android Runtime: Introduction | NativeScript 9.0 Released!

Open source page

Field note

What it does

API Reference - API / NativeScript 9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more... Read Announcement → NativeScript Search Open main menu Search Docs Blog Community Support Open additional menu Open NativeScript GitHub Menu Docs Tutorials Preview Snacks Plugins UI Components API Reference API Reference Namespaces AccessibilityEvents Variables accessibilityBlurEvent accessibilityFocusChangedEvent accessibilityFocusEvent accessibilityPerformEscapeEvent AndroidHelper Functions clearDrawableColor getCopyOrDrawable getDrawableColor setDrawableColor ApplicationSettings Functions clear flush getAllKeys getBoolean getNumber getString hasKey remove setBoolean setNumber setString capitalizationType Variables all none sentences words Connectivity Enumerations connectionType Functions getConnectionType startMonitoring stopMonitoring CoreTypes Namespaces Accuracy Variables any high AndroidActionBarIconVisibility Variables always auto never AndroidActionItemPosition Variables actionBar actionBarIfRoom popup AnimationCurve Variables ease easeIn easeInOut easeOut linear spring Functions cubicBezier AutocapitalizationType Variables allCharacters none sentences words AutofillType Variables newPassword newUsername none oneTimeCode password username BackgroundRepeat Variables isValid noRepeat parse repeat repeatX repeatY DeviceOrientation Variables landscape portrait unknown DeviceType Variables Phone Tablet Dock Variables bottom left right top FontAttributes Variables Bold Italic Normal FontStyle Variables italic normal FontWeight Variables black bold extraBold extraLight light medium normal semiBold thin HorizontalAlignment Variables center end isValid left parse right start stretch ImageFormat Variables jpeg jpg png ImageStretch Variables aspectFill aspectFit fill none IOSActionItemPosition Variables left right KeyboardType Variables datetime decimal email integer number phone url LayoutDirection Variables ltr rtl NavigationBarVisibility Variables always auto never Orientation Variables horizontal vertical ReturnKeyType Variables done go next search send StatusBarStyle Variables dark light SystemAppearance Variables dark light TextAlignment Variables center justify left right TextDecoration Variables lineThrough none underline TextOverflow Variables clip ellipsis TextTransform Variables capitalize lowercase none uppercase UpdateTextTrigger Variables focusLost textChanged VerticalAlignment Variables bottom middle stretch top VerticalAlignmentText Variables baseline bottom isValid middle parse stretch sub sup textbottom texttop top Visibility Variables collapse collapsed hidden isValid parse visible WhiteSpace Variables normal nowrap wrap Type Aliases AndroidOverflow AutocapitalizationInputType AutofillType BackgroundRepeatType CSSWideKeywords DeviceOrientationType dip DockType FixedLengthType HorizontalAlignmentType ImageStretchType KeyboardInputType LayoutDirectionType LengthDipUnit LengthPercentUnit LengthPxUnit LengthType MaxLinesType OrientationType percent PercentLengthType px ReturnKeyButtonType TextAlignmentType TextDecorationType TextOverflowType TextTransformType UpdateTextTriggerType VerticalAlignmentTextType VerticalAlignmentType VisibilityType WhiteSpaceType Variables zeroLength CSSUtils Variables CLASS_PREFIX MODAL_ROOT_VIEW_CSS_CLASS ROOT_VIEW_CSS_CLASS Functions getModalRootViewCssClass getRootViewCssClasses getSystemCssClasses pushToRootViewCssClasses pushToSystemCssClasses removeFromRootViewCssClasses removeSystemCssClass DialogStrings Variables ALERT CANCEL CONFIRM LOGIN OK PROMPT STRING encoding Variables ISO_8859_1 US_ASCII UTF_16 UTF_16BE UTF_16LE UTF_8 FixedLe Animations | NativeScript 9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more... Read Announcement → NativeScript Search Open main menu Search Docs Blog Community Support Open additional menu Open NativeScript GitHub Menu Docs Tutorials Preview Snacks Plugins UI Components API Reference Getting Started Introduction Environment Setup Windows macOS Linux Creating a Project Choosing an editor Troubleshooting Development Workflow CLI Basics Running Debugging Publishing Plugins Recommended Plugins Testing Updating To Latest Project Structure App_Resources/ src/ fonts/ app.css•scss main.js•ts nativescript.config.ts package.json references.d.ts tsconfig.json vite.config.ts webpack.config.js Configuration Config Reference Vite Reference Webpack Reference Fundamental Concepts Accessibility Animations Best Practices Commonly Used APIs @nativescript/core Application ApplicationSettings Color Connectivity Device FileSystem FPS Meter Http ImageCache Observable Screen Trace Utils XmlParser Data Binding Error Handling Gestures Navigation Using Frames and Pages Using Modals Property System Styling Crash Reporting Using Sentry Developing with Vision Pro Developing with visionOS Previewing visionOS from StackBlitz Agentic Coding Leverage AI assistants Using the Docs with AI Advanced Concepts Adding Native Code Adding Java/Kotlin Code Adding ObjectiveC/Swift Code Generating TypeScript types Extending Native Classes Android iOS Create Custom Native Elements Customizing View Elements Shared Element Transitions Multithreading Multi-Window Development Code Sharing Metadata Marshalling iOS Marshalling iOS Runtime Types Android Marshalling Hooks Platform Version Handling Widgets for iOS Home Fundamental Concepts Animations Fundamental Concepts Animations Copy page Are you an LLM? You can read better optimized documentation at /guide/animations.md for this page in Markdown format NativeScript exposes a simple yet powerful API to allow animating almost every native component in your app. The singular API allows you to animate both iOS and Android the same way. You always have the discretion to use platform animations directly where desired but let's look at how comprehensive this simple API is as it is well suited for a large majority of commonly desired animations.

Capabilities

Available capabilities

Tags

Tags

No tags filed yet.

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

androidRegisteredReceivers ​

androidUnregisterBroadcastReceiver ​

Classes ​

Enumerations ​

Functions ​

Interfaces ​

iosAddNotificationObserver ​

iosNotificationObservers ​

Namespaces ​

References ​

Type Aliases ​

Variables ​