JSPM

  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q61511F
  • License MIT

Essential Toolkit for Titanium Turbo Native Mobile Apps

Package Exports

  • @titanium/essentials
  • @titanium/essentials/info

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@titanium/essentials) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@titanium/essentials

@titanium/essentials Dependabot Status

Essential Toolkit for Titanium Turbo Native Mobile Apps

📝 Description

Essential Toolkit for Titanium Turbo Native Mobile Apps

🚀 Getting Started

  1. Install @titanium/essentials in root of project
npm install @titanium/essentials
  1. Initialize module in alloy.js
require('@titanium/essentials');

✨Features

Adds properties to the global turbo object

These properties are set on initialization

  • app_copyright
  • app_deploy_type
  • app_description
  • app_display_name
  • app_first_installed_version
  • app_guid
  • app_id
  • app_name
  • app_publisher
  • app_url
  • app_version
  • app_version_build
  • app_version_history
  • app_version_major
  • app_version_minor
  • app_version_previous
  • country_code
  • device_architecture
  • device_density
  • device_dpi
  • device_id
  • device_logical_density_factor
  • device_manufacturer
  • device_model
  • device_model_name
  • device_processor_count
  • device_total_memory
  • device_total_memory_formatted
  • install_id
  • ip_address
  • isAndroid
  • isFirstLaunchAfterUpdate
  • isFirstLaunchEver
  • isFirstLaunchForCurrentVersion
  • isIos
  • isIos10Plus
  • isIos11Plus
  • isIos12Plus
  • isIos13Plus
  • isIos14Plus
  • isIos7Plus
  • isIos8Plus
  • isIos9Plus
  • isIpad
  • isIphone
  • isVirtual
  • language_code
  • locale
  • mac_address
  • netmask
  • network_change_reason
  • network_type
  • network_type_name
  • online
  • os
  • os_name
  • os_name_full
  • os_type
  • os_version
  • os_version_build
  • os_version_major
  • os_version_minor
  • platform
  • runtime
  • session_id
  • titanium_sdk_version
  • username

These properties are set on initialization and orientation change

  • device_height_actual
  • device_width
  • isLandscape
  • isPortrait
  • platform_height
  • platform_width

These properties are calculated on-the-fly

  • device_available_memory
  • device_available_memory_formatted
  • battery_level
  • battery_level_formatted
  • uptime
  • uptime_formatted

These functions are available

  • getClipboardText()
  • setClipboardText()

📚Learn More

📣 Feedback

Have an idea or a comment? Join in the conversation here!

Code is licensed under MIT

Alloy is developed by Appcelerator and the community and is Copyright © 2012-Present by Appcelerator, Inc. All Rights Reserved.

Alloy is made available under the Apache Public License, version 2. See their license file for more information.

Appcelerator is a registered trademark of Appcelerator, Inc. Titanium is a registered trademark of Appcelerator, Inc. Please see the LEGAL information about using trademarks, privacy policy, terms of usage and other legal information at http://www.appcelerator.com/legal.