Skip to end of metadata
Go to start of metadata

Titanium SDK 7.5.0.RC - 1 November 2018

About this release

Titanium SDK 7.5.0.RC is a minor release of the SDK, addressing high-priority issues from previous releases.

Note: building of proxy bindings was improved and a validation step was added to ensure that no clashes occur with the combinations of using @Kroll.method, @Kroll.getProperty, and @Kroll.setProperty annotations with properties listed in propertyAccessors. The build script may fail with a message describing the class and will propose a solution to prevent it based on the type of clash.

We also addressed an issue on Windows that fixes a UI rendering performance issue that was causing the UI to freeze.

As of this release, Titanium SDK 7.5.x will not be supported six months from 7.5.0.GA's release date. See Axway Appcelerator Deprecation Policy and Nominal Lifetimes documents for details.

Notice of feature and behavior Changes

Android platform

  • TIMOB-26258 - Android P: Implement Support
    • Added support for Android P including
      • Supporting insetting and display-cutout
      • Updated Ti.Android.Service to handle Android P FOREGROUND_SERVICE permission
      • Modified AndroidManifest.xml template to set <application/> attribute android:usesCleartextTraffic to true for backward compatibility (which can be set to false by modifying tiapp.xml)

New features

Android platform

  • TIMOB-19618 - Android : add mixed content control to webview
    • Implemented Ti.UI.WebView.mixedContentMode which allows the loading of insecure resources from a secure origin
    •  Expand source
  • TIMOB-24317 - Android: Extend Ti.UI.View "swipe" gesture properties using ScaleGestureDetector
    • Implemented focus area for view pinch event
  • TIMOB-24765 - Android O: Pinning Shortcuts and Widgets
    • Implemented Ti.UI.ShortcutItem pinning
    •  Expand source
  • TIMOB-24817 - Android: ListView item template support CommonJS modules
    • Added ListView item template support to CommonJS modules
  • TIMOB-25635 - Android: Multi-View Viewpager (ScrollableView)
    • Added clipViews and padding properties to ScrollableView
    •  Expand source
  • TIMOB-25855 - Android: Add TextArea lines and maxLines support
    • Added support for TextArea lines and maxLines
    •  Expand source
  • TIMOB-26427 - Android: Add "safeAreaPadding" property to Ti.UI.Window
    • Added support for extendSafeArea, safeAreaPadding, and inset/notch in Ti.UI.Window
  • TIMOB-26459 - Android: Add support for translucent status bar and navigation bar
    • Added support for translucent status bar and navigation bar
  • TIMOB-26484 - Android: Add "sound" support to NotificationChannel
    • Added sound support to NotificationChannel

iOS platform

  • TIMOB-24776 - iOS: ListView item template support CommonJS modules
    • Added ListView item template support to CommonJS modules
  • TIMOB-24973 - iOS: Background audio-recording not working when screen is locked
    • Implemented feature that allows background audio recording when screen is locked

Windows platform

  • TIMOB-19934 - Windows: Implement Ti.Network.Cookie
    • Implemented Ti.Network.Cookie for Windows
  • TIMOB-25868 - Windows: Implement WebView.onlink callback
    • Implemented WebView.onlink callback
    •  Expand source
  • TIMOB-25881 - Windows: Implement WebView.blacklistedURLs
    • Implement WebView.blacklistedURLs
    •  Expand source
  • TIMOB-26078 - Windows: Remove Ti.UI.currentWindow
    • Removed Ti.UI.currentWindow

Multiple platforms

  • TIMOB-13379 - TiAPI: Add support for console.time and console.timeEnd
  • TIMOB-13966 - TiAPI: Select Locale for L() at runtime
    • Implemented feature that lets the user select which language to use at runtime
    • est-Setup (requires a hello_world language file in i18n/de and i18n/en)  Expand source
  • TIMOB-25048 - TiAPI: Android/iOS "ApplicationShortcuts" parity

    • Parity for moving ApplicationShortcuts to Ti.UI namespace
  • TIMOB-25985 - TiAPI: Disable accessibility features on Ti.UI.Button by using AttributedString
    • Added attributedString to Ti.UI.Button
  • TIMOB-26115 - TiAPI: Add support for console.timeLog
    • Added support for console.timeLog
    • Responds with

Community credits

Fixed issues

Android

  • TIMOB-13642 - Android: Remove need for leading slash '/' to load images
  • TIMOB-16678 - Android: File.read() of JS files under Resources directory returns empty string for device/production builds
  • TIMOB-23994 - Android: Using __filename in app.js errors with Can't find variable: __filename
  • TIMOB-24321 - Android: Add pivotX and pivotY to view
  • TIMOB-24605 - Android: Setting "backgroundImage" to a web URL causes a crash if JS is running on the UI thread
  • TIMOB-25756 - Android: Restart app on system locale change
  • TIMOB-25810 - Android: ActionBar height won't resize on screen rotation
  • TIMOB-25932 - Android: Cannot build SDK with JDK 10 (missing javah tool)
  • TIMOB-25979 - Android: Changing index break events on TableViewRow
  • TIMOB-26030 - Android: TCP read() and write() methods cause a crash when running on main UI thread
  • TIMOB-26079 - App does not run if included module have multiple .aar file.
  • TIMOB-26080 - Android: ERR_INVALID_CALLBACK error when building a app/module on Node 10
  • TIMOB-26104 - Android: Removing and re-adding drop-down picker resets last selection
  • TIMOB-26124 - Android: "Ti.buildHash" property always returns null
  • TIMOB-26127 - Android: Video Quality undefined
  • TIMOB-26141 - Android: Accessing Titanium.App.Android.R logs GC error
  • TIMOB-26149 - Android: Ti.Filesystem.File#getDirectoryListing() does not return null for file/non-existent directory
  • TIMOB-26155 - Android: ListView setItems causes error after updateItemAt used with custom template
  • TIMOB-26161 - Android: Activity Listening Broken on run-on-main-thread = true
  • TIMOB-26168 - Android: ScrollView does not show ScrollIndicators
  • TIMOB-26180 - Android: CLI does not provide useful information when a selected buildTools version is not installed
  • TIMOB-26181 - Android: Application throws exception after close on 7.4.0
  • TIMOB-26182 - An exception is raised when a remote image URL is set on an ImageView on some Android devices
  • TIMOB-26203 - Android: Prevent exception in Log for HTTP response
  • TIMOB-26204 - Android: TransformAfterLayout NullPointerException in Ti.Animation
  • TIMOB-26205 - Android: getActionBar() throws "CalledFromWrongThreadException" exception
  • TIMOB-26249 - Android: ImageView "image" set to a URL while "autorotate" is true will crash if running on main thread
  • TIMOB-26253 - Android: NotificationManager.notify() will crash while screen is off and if app is missing WAKE_LOCK permission
  • TIMOB-26274 - Android: Drawer hamburger menu disappears on click
  • TIMOB-26284 - Android: Cannot add child-views to views extending UIFragment
  • TIMOB-26295 - Android: Listview with template causes a nullpointer on itemclick
  • TIMOB-26317 - Android: exception handler throws a NullPointerException
  • TIMOB-26374 - Android: Ti.UI.Button can't be disabled until displayed as of 6.1.0
  • TIMOB-26378 - Android: backgroundDisabledColor is ignored
  • TIMOB-26442 - Android: Toolbar with "extendBackground" true is too tall if both status bar and navigation bar is transparent
  • TIMOB-26451 - Android: Hyperloop does not generate meta data for synchronized classes
  • TIMOB-26455 - Android: Hyperloop should sanitize numeric names
  • TIMOB-26460 - Android: Toolbar height set to Ti.UI.SIZE won't resize when changing orientation
  • TIMOB-26477 - Ti.Locale.setLanguage is not applying the locale effects properly on Android & iOS
  • TIMOB-26496 - Android: Exception message not displaying for Java runtime exceptions
  • TIMOB-25845 - Android: Non-production app builds with modules crash on startup if TLS 1.1 or higher is required for Internet access

iOS

  • TIMOB-16511 - iOS: Text in label gets truncated (...) when changing fontWeight from normal to bold
  • TIMOB-23995 - iOS: Using __dirname in app.js errors with Can't find variable: __dirname
  • TIMOB-24452 - iOS: Handling responses from Ti.URLSession UploadTask API in the SDK
  • TIMOB-25391 - iOS: TiUITable crashes app with a Zombie
  • TIMOB-25850 - iOS: SearchBar doesn't show Bookmark button when set on creation in TableView
  • TIMOB-25866 - iOS : TiUISearchBar getter is returning value from proxy not from searchbar view
  • TIMOB-25901 - iOS: App crashes when background services expire and queue tries to flush
  • TIMOB-25942 - iOS 11: Screen orientation not working in navigation window
  • TIMOB-25971 - iOS: minimumFontSize property in Ti.UI.label lowers text baseline as it decreases
  • TIMOB-26032 - iOS/Android: Ti.Contacts.getPersonByIdentifier does not exist (Android), parity is incorrect
  • TIMOB-26047 - iOS: Opening camera on iPhone X shows splash screen after permissions accepted
  • TIMOB-26077 - iOS: Ti.UI.convertUnits returns incorrect values for 3x resolution devices
  • TIMOB-26111 - iOS: Fix static analyzer warnings and possible leaks
  • TIMOB-26117 - iOS: ES6 promises not supported on iOS 9. (Works on iOS 8 and 10.)
  • TIMOB-26121 - iOS: Default simulator should be compatible with selected xcode
  • TIMOB-26160 - iOS: ScrollableView + run-on-main-thread - views dont render until scroll when re-adding views
  • TIMOB-26164 - iOS: TableView + run-on-main-thread - insertRowAfter directly after updateRow causes error / race crash
  • TIMOB-26165 - iOS: Requiring a JSON file that contains single quotes throws error
  • TIMOB-26179 - iOS: Property check on proxy always returns true
  • TIMOB-26184 - iOS: Timer functions can not be re-assigned
  • TIMOB-26211 - iOS: Percentage based layout rounds floating widths/heights incorrectly
  • TIMOB-26216 - iOS CLI: Incremental build does not remove unencrypted JS files when switching deploy type from "development" to "test"
  • TIMOB-26217 - iOS: File methods isFile() and isDirectory() are missing for encrypted assets
  • TIMOB-26299 - iOS: Ti.Media.AudioPlayer test-suite crashes in some situations
  • TIMOB-26313 - iOS: accessibilityLabel doesn't get properly set on Ti.UI.TableView
  • TIMOB-26334 - iOS: New AVPlayer-based Ti.Media.audioPlayer crashes on second setUrl() call
  • TIMOB-26345 - iOS CLI: Upload to AppStore fails if app contains non-alphanumeric characters
  • TIMOB-26347 - IOS: setRemoteBackup(flag) outputs an ERROR message when used on individual files.
  • TIMOB-26369 - iOS: unhandledException Ti.App event no longer working.
  • TIMOB-26372 - iOS: Assigning text value in change event causes duplicated input on TextView
  • TIMOB-26389 - iOS: Application throws an error if there is no Ti.UI.Window reference
  • TIMOB-26436 - iOS: VIdeoPlayer time in seconds
  • TIMOB-26462 - iOS: Build throws unhelpful error when connecting to log server if localhost does not resolve
  • TIMOB-26479 - TiUtils.m missing check for iPhone XR and iPhone XS Max images

Windows

  • TIMOB-25183 - Windows: Default language resource warning
  • TIMOB-25253 - Windows: backgroundGradient should have a default startPoint and endPoint
  • TIMOB-25254 - Windows: backgroundGradient.colors should accept an array of just colour values
  • TIMOB-25352 - Windows: Ti.Database.install should not prefix the specified path with the resourcesDirectory
  • TIMOB-25513 - Windows: Ti.Utils.base64encode behaves different between Android/iOS and Windows
  • TIMOB-25780 - Windows: Ti.Filesystem.File can't handle multilingual filename
  • TIMOB-25783 - Windows: HttpClient.clearCookies freezes app
  • TIMOB-25796 - Windows: Adding a hyperloop created UI element to a View multiple times throws an error
  • TIMOB-25935 - Windows: Ti.Utils.base64decode should ignore line breaks
  • TIMOB-25949 - Windows: Wrong layout with bottom/right and center
  • TIMOB-25983 - Windows : Ti.UI.TextArea is not wrapped when there is long text, it just show in single line
  • TIMOB-26014 - Windows: Titanium.Media.MEDIA_TYPE_VIDEO not working
  • TIMOB-26158 - Windows: Build fails with ENOENT error when using transpile
  • TIMOB-26177 - Windows: "focus" and "blur" events bubbles to parent views when it shouldn't
  • TIMOB-26457 - Windows: Window.exitOnClose doesn't work when only one Window is opened

Multiple platforms

  • TIMOB-26081 - CLI: Fix new Buffer deprecation warnings in build scripts
  • TIMOB-26333 - Generate source maps for transpiled code
  • TIMOB-26360 - Fix API documentation generation
  • TIMOB-26403 - kitchensink-v2 broken on latest SDK build on master

Improvements

Android

  • TIMOB-25533 - Android: Allow HTTPClient to send request in onload
    • Fixed pending HTTP request status
  • TIMOB-25899 - Android: Modify JSON.stringify(Error) to not return "{}"
    • Modified JS Error object to expose non-enumerable properties via JSON.stringify()
  • TIMOB-26128 - Android: Allow asset directory names with a leading underscore to be included in the build
    • Implemented feature that allows asset directory names with a leading underscore to be included in the build
  • TIMOB-26144 - Android: Improve File.getDirectoryListing() performance in Resources directory
    • Improved File.getDirectoryListing() performance in Resources directory
  • TIMOB-26173 - Android: Add the Android Studio default SDK/NDK install paths to the Android lookup
    • Added default Android Studio SDK install paths to lookup
  • TIMOB-26174 - Android: add setCancelable method on Ti.UI.AlertDialog
    • Added the buttonClickRequired property to Ti.UI.AlertDialog which controls whether the dialog can be cancelled by clicking the Android system back button. Defaults to true.
  • TIMOB-26218 - Android: Resolve Veracode string equality warnings
    • Replaced string reference equality with value equality
  • TIMOB-26246 - Android: Handle Android P insetting/display-cutout
    • Added Ti.UI.Window property extendSafeArea to render content beneath insets
    • Unlike iOS, this property is false by default on Android. This is because insets can be of any size and on side, making it more problematic.
  • TIMOB-26260 - Android: Update "Ti.Android.Service" to handle "FOREGROUND_SERVICE" permission
    • Updated Ti.Android.Service to handle Android P FOREGROUND_SERVICE permission
  • TIMOB-26261 - Android: Compile with SDK version 28 (Android P)
    • Added support to compile with API Level 28 (Android P)
  • TIMOB-26278 - Android: Added Ti.App event "userinteraction"
    • Added the userinteraction event when onUserInteraction is triggered
  • TIMOB-26297 - Android: Resolve ImageView "images" property so that it'll work when targeting Android P
    • Fixed MD5-hashing for Android 9
  • TIMOB-26306 - Android: Support faster SDK builds with parallel execution '-j' on Windows
    • Implemented feature that allows for fast parallel execute -j8 NDK builds on Windows
    • Note: this is for the Titanium SDK itself, not for Titanium apps
  • TIMOB-26314 - Android: Add versionCode to tiapp.xml and use version in AndroidManifest.xml
    • Added versionCode to tiapp.xml
  • TIMOB-26376 - Android: Remove "commons-codec.jar" and replace with Java "MessageDigest"
    • Replaced deprecated Apache hashing class DigestUtils with TiDigestUtils
    • Replaced deprecated Apache HTTP classes with Android HttpsUrlConnection
    • Added support for TLS 1.1 and higher
  • TIMOB-26377 - Android: Allow non-https requests to work when targeting Android P
    • Modified AndroidManifest.xml template to set <application/> attribute android:usesCleartextTraffic to true for backward compatibility (which can be set to false by modifying tiapp.xml)
  • TIMOB-26424 - Android: Ti.App lifecycle events are not fired
    • Implemented missing Titanium.App events
    •  Expand source
  • TIMOB-26435 - Android: Update gradle to support JDK 11
    • Updated to gradle 4.10.2
    • Changed "Failed to run dexer" warning to "Failed to run gradle"
  • TIMOB-26481 - Android: Target API Level 28 (Android P) by default
    • Target API Level 28 (Android P) by default

iOS

  • TIMOB-24080 - iOS: Add paragraph styles to AttributedString
    • Added support for paragraph styles to AttributedString
    •  Expand source
  • TIMOB-24909 - iOS: Move Ti.Media.AudioPlayer to AVPlayer internally, remove external library-dependency
    • Moved Ti.Media.AudioPlayer to AVPlayer
  • TIMOB-25871 - iOS: Add ability to hide back button on NavigationWindow
    • Added ability to hide back button on NavigationWindow
    •  Expand source
  • TIMOB-25879 - iOS: Create modules in "dist" directory (Parity with Android)
    • Parity: package iOS module zip in dist directory
  • TIMOB-26060 - iOS: Move iOS-only Ti.UI.iOS.NavigationWindow to cross-platform Ti.UI.NavigationWindow
    • Parity: moved navigationWindow API to cross platform Ti.UI namespace
    •  Expand source
  • TIMOB-26073 - iOS: Implement support for custom TextField backgroundColor in SearchBar
    • Implemented support for custom textField background in Titanium.UI.SearchBar
  • TIMOB-26196 - iOS: Move Ti.Media microphone related APIs to AVAudioRecorder and remove 3rd-party library
    • Removed SCListener and implemented AVAudioRecorder
  • TIMOB-26268 - iOS: Make RefreshControl on ScrollView available on iOS < 10
    • Added support for UIRefreshControl for UIScrollView on iOS < 10
  • TIMOB-26294 - iOS: Added Ti.App event "userinteraction" and property "trackUserInteraction"
    • Added the userinteraction event when onUserInteraction is triggered

Windows

  • TIMOB-19932 - Windows: Implement Ti.Network properties & functions
    • Implemented Ti.Network properties and functions for Windows including Ti.Network.addHTTPCookie, Ti.Network.removeHTTPCookies, and Ti.Network.getHTTPCookies

  • TIMOB-25043 - Windows: Ti.Network.Cookie isValid() is missing
    • Implemented Ti.Network.Cookie
  • TIMOB-26210 - Windows: Compler warnings PRI249: 0xdef00520 - Invalid qualifier
    • Suppressed "PRI249: 0xdef00520 - Invalid qualifier" warnings during build
  • TIMOB-26311 - Windows: leverage extended execution restricted capabilities
    • Fixed compile error when rescap Capabilities are set
  • TIMOB-26331 - Windows: Improve build/launch time via Titanium CLI
    • Improved build and launch time when using Titanium CLI (~40% improvement)
      • Reduced re-build time on device by stopping unnecessary clean build
      • Reduced development build (local/device) time by stopping unnecessary bundle package
      • Reduced build time by stopping unnecessary cmake invocation from msbuild
      • Reduced build time by stopping unnecessary compilation for C++ files

Multiple platforms

  • TIMOB-25862 - Parity: Support async Ti.UI.Webview.evalJS call on Android & iOS
    • Added support for async Ti.UI.Webview.evalJS
  • TIMOB-26120 - Update npm package dependencies and reduce security vulnerabilities listed
    • Updated npm package dependencies
  • TIMOB-26308 - Reduce splash screen image sizes
    • Reduced the classic splash screen size

Known issues

  • TIMOB-26499 - iOS: Third-party modules cannot be referenced anymore in Alloy templates
    • This issue should be resolved by the GA release

API changes

New APIs

The following APIs are new or have expanded platform support in release 7.5.0.

APITypeNotes
Global.console.timeLogmethod

Log duration taken so far for an operation. (New API, supported on Android, iPhone and iPad.)

Titanium.Android.Activity.userinteractionevent

Called whenever a key, touch, or trackball event is dispatched to the activity. (New API, supported on Android.)

Titanium.App.Android.shortcutitemclickevent

Fired when a Titanium.UI.ShortcutItem is clicked. (New API, supported on Android.)

Titanium.App.shortcutitemclickevent

Fired when a Titanium.UI.ShortcutItem is clicked. (New API, supported on Android, iPhone and iPad.)

Titanium.App.trackUserInteractionproperty

Indicates whether or not the user interaction shoud be tracked. (New API, supported on iPhone and iPad.)

Titanium.App.userinteractionevent

Called whenever an interaction with the window occurred. To be used together with the Titanium.App.trackUserInteraction property. (New API, supported on Android, iPhone and iPad.)

Titanium.Locale.changeevent

Fired when the device locale changes. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_BUFFERINGproperty

Audio data is being buffered from the network. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_INITIALIZEDproperty

Audio playback is being initialized. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_PAUSEDproperty

Playback is paused. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_PLAYINGproperty

Audio playback is active. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_STARTINGproperty

Audio playback is starting. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_STOPPEDproperty

Audio playback is stopped. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_STOPPINGproperty

Audio playback is stopping. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_WAITING_FOR_DATAproperty

Player is waiting for audio data from the network. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AUDIO_STATE_WAITING_FOR_QUEUEproperty

Player is waiting for audio data to fill the queue. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AudioPlayer.allowsExternalPlaybackproperty

Indicates whether the player allows switching to "external playback" mode. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.completeevent

Fired when the audio has finished playing. (Added support for iPhone and iPad.)

Titanium.Media.AudioPlayer.externalPlaybackActiveproperty

Indicates whether the player is currently playing video in "external playback" mode. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.getAllowsExternalPlaybackmethod

Gets the value of the Titanium.Media.AudioPlayer.allowsExternalPlayback property. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.getExternalPlaybackActivemethod

Gets the value of the Titanium.Media.AudioPlayer.externalPlaybackActive property. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.getMutedmethod

Gets the value of the Titanium.Media.AudioPlayer.muted property. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AudioPlayer.getRatemethod

Gets the value of the Titanium.Media.AudioPlayer.rate property. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.metadataevent

Fired when the timed metadata was encountered most recently within the media as it plays. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.mutedproperty

Indicates whether or not audio output of the player is muted. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AudioPlayer.rateproperty

Indicates the desired rate of playback; 0.0 means "paused", 1.0 indicates a desire to play at the natural rate of the current item. In addition, 2.0would mean that the audio plays twice as fast. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.releasemethod

Stops buffering audio data and releases audio resources. (Added support for iPhone and iPad.)

Titanium.Media.AudioPlayer.restartmethod

Restarts (stops and stars) audio playback. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AudioPlayer.seekToTimemethod

Moves the playback cursor and invokes the specified block when the seek operation has either been completed or been interrupted. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.setAllowsExternalPlaybackmethod

Sets the value of the Titanium.Media.AudioPlayer.allowsExternalPlayback property. (New API, supported on iPhone and iPad.)

Titanium.Media.AudioPlayer.setMutedmethod

Sets the value of the Titanium.Media.AudioPlayer.muted property. (New API, supported on Android, iPhone and iPad.)

Titanium.Media.AudioPlayer.setRatemethod

Sets the value of the Titanium.Media.AudioPlayer.rate property. (New API, supported on iPhone and iPad.)

Titanium.Media.QUALITY_640x480property

Media type constant for medium-quality video recording. (Added support for Android.)

Titanium.Media.QUALITY_HIGHproperty

Media type constant for high-quality video recording. (Added support for Android.)

Titanium.Media.QUALITY_IFRAME_1280x720property

Media type constant for medium-quality video recording. (Added support for Android.)

Titanium.Media.QUALITY_LOWproperty

Media type constant for low-quality video recording. (Added support for Android.)

Titanium.Media.getQUALITY_640x480method

Gets the value of the Titanium.Media.QUALITY_640x480 property. (Added support for Android.)

Titanium.Media.getQUALITY_IFRAME_1280x720method

Gets the value of the Titanium.Media.QUALITY_IFRAME_1280x720 property. (Added support for Android.)

Titanium.UI.ATTRIBUTE_PARAGRAPH_STYLEproperty

Use with Attribute.type to manages the behaviour of string set. (New API, supported on iPhone and iPad.)

Titanium.UI.ActivityIndicator.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.ActivityIndicator.getAnchorPointmethod

Gets the value of the Titanium.UI.ActivityIndicator.anchorPoint property. (Added support for Android.)

Titanium.UI.ActivityIndicator.setAnchorPointmethod

Sets the value of the Titanium.UI.ActivityIndicator.anchorPoint property. (Added support for Android.)

Titanium.UI.AlertDialog.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.AlertDialog.buttonClickRequiredproperty

Setting this to true requires the end-user to click a dialog button to close the dialog. (New API, supported on Android.)

Titanium.UI.AlertDialog.getAnchorPointmethod

Gets the value of the Titanium.UI.AlertDialog.anchorPoint property. (Added support for Android.)

Titanium.UI.AlertDialog.getButtonClickRequiredmethod

Gets the value of the Titanium.UI.AlertDialog.buttonClickRequired property. (New API, supported on Android.)

Titanium.UI.AlertDialog.setAnchorPointmethod

Sets the value of the Titanium.UI.AlertDialog.anchorPoint property. (Added support for Android.)

Titanium.UI.AlertDialog.setButtonClickRequiredmethod

Sets the value of the Titanium.UI.AlertDialog.buttonClickRequired property. (New API, supported on Android.)

Titanium.UI.Android.FLAG_TRANSLUCENT_NAVIGATIONproperty

Window flag which makes the Android system's navigation bar semi-transparent. (New API, supported on Android.)

Titanium.UI.Android.FLAG_TRANSLUCENT_STATUSproperty

Window flag which makes the Android system's top status bar semi-transparent. (New API, supported on Android.)

Titanium.UI.Android.ProgressIndicator.anchorPointproperty

Coordinate of the view about which to pivot an animation. (New API, supported on Android.)

Titanium.UI.Android.ProgressIndicator.getAnchorPointmethod

Gets the value of the Titanium.UI.Android.ProgressIndicator.anchorPoint property. (New API, supported on Android.)

Titanium.UI.Android.ProgressIndicator.setAnchorPointmethod

Sets the value of the Titanium.UI.Android.ProgressIndicator.anchorPoint property. (New API, supported on Android.)

Titanium.UI.Button.attributedStringproperty

Specify an attributed string for the label. (New API, supported on Android, iPhone and iPad.)

Titanium.UI.Button.getAttributedStringmethod

Gets the value of the Titanium.UI.Button.attributedString property. (New API, supported on Android, iPhone and iPad.)

Titanium.UI.Button.setAttributedStringmethod

Sets the value of the Titanium.UI.Button.attributedString property. (New API, supported on Android, iPhone and iPad.)

Titanium.UI.EmailDialog.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.EmailDialog.getAnchorPointmethod

Gets the value of the Titanium.UI.EmailDialog.anchorPoint property. (Added support for Android.)

Titanium.UI.EmailDialog.setAnchorPointmethod

Sets the value of the Titanium.UI.EmailDialog.anchorPoint property. (Added support for Android.)

Titanium.UI.OptionDialog.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.OptionDialog.getAnchorPointmethod

Gets the value of the Titanium.UI.OptionDialog.anchorPoint property. (Added support for Android.)

Titanium.UI.OptionDialog.setAnchorPointmethod

Sets the value of the Titanium.UI.OptionDialog.anchorPoint property. (Added support for Android.)

Titanium.UI.Picker.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.Picker.getAnchorPointmethod

Gets the value of the Titanium.UI.Picker.anchorPoint property. (Added support for Android.)

Titanium.UI.Picker.setAnchorPointmethod

Sets the value of the Titanium.UI.Picker.anchorPoint property. (Added support for Android.)

Titanium.UI.ScrollableView.clipViewsproperty

Determines whether the previous and next pages are clipped, so that they are not visibleadjacent to the current page. (Added support for Android.)

Titanium.UI.ScrollableView.getClipViewsmethod

Gets the value of the Titanium.UI.ScrollableView.clipViews property. (Added support for Android.)

Titanium.UI.ScrollableView.getPaddingmethod

Gets the value of the Titanium.UI.ScrollableView.padding property. (New API, supported on Android.)

Titanium.UI.ScrollableView.paddingproperty

The padding applied to the scrollable view. (New API, supported on Android.)

Titanium.UI.ScrollableView.setClipViewsmethod

Sets the value of the Titanium.UI.ScrollableView.clipViews property. (Added support for Android.)

Titanium.UI.ScrollableView.setPaddingmethod

Sets the value of the Titanium.UI.ScrollableView.padding property. (New API, supported on Android.)

Titanium.UI.SearchBar.fieldBackgroundDisabledImageproperty

Background image of the text field in disabled state, specified as a local file path or URL. (New API, supported on iPhone and iPad.)

Titanium.UI.SearchBar.fieldBackgroundImageproperty

Background image of the text field, specified as a local file path or URL. (New API, supported on iPhone and iPad.)

Titanium.UI.SearchBar.getFieldBackgroundDisabledImagemethod

Gets the value of the Titanium.UI.SearchBar.fieldBackgroundDisabledImage property. (New API, supported on iPhone and iPad.)

Titanium.UI.SearchBar.getFieldBackgroundImagemethod

Gets the value of the Titanium.UI.SearchBar.fieldBackgroundImage property. (New API, supported on iPhone and iPad.)

Titanium.UI.SearchBar.setFieldBackgroundDisabledImagemethod

Sets the value of the Titanium.UI.SearchBar.fieldBackgroundDisabledImage property. (New API, supported on iPhone and iPad.)

Titanium.UI.SearchBar.setFieldBackgroundImagemethod

Sets the value of the Titanium.UI.SearchBar.fieldBackgroundImage property. (New API, supported on iPhone and iPad.)

Titanium.UI.ShortcutItemobject

An application shortcut. (New API, supported on Android, iPhone and iPad.)

Titanium.UI.Tab.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.Tab.getAnchorPointmethod

Gets the value of the Titanium.UI.Tab.anchorPoint property. (Added support for Android.)

Titanium.UI.Tab.setAnchorPointmethod

Sets the value of the Titanium.UI.Tab.anchorPoint property. (Added support for Android.)

Titanium.UI.TabGroup.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.TabGroup.getAnchorPointmethod

Gets the value of the Titanium.UI.TabGroup.anchorPoint property. (Added support for Android.)

Titanium.UI.TabGroup.setAnchorPointmethod

Sets the value of the Titanium.UI.TabGroup.anchorPoint property. (Added support for Android.)

Titanium.UI.TextArea.getLinesmethod

Gets the value of the Titanium.UI.TextArea.lines property. (New API, supported on Android.)

Titanium.UI.TextArea.getMaxLinesmethod

Gets the value of the Titanium.UI.TextArea.maxLines property. (New API, supported on Android.)

Titanium.UI.TextArea.linesproperty

Number of lines tall the text area height will be, if set. (New API, supported on Android.)

Titanium.UI.TextArea.maxLinesproperty

Maximum line count of text field input. (New API, supported on Android.)

Titanium.UI.TextArea.setLinesmethod

Sets the value of the Titanium.UI.TextArea.lines property. (New API, supported on Android.)

Titanium.UI.TextArea.setMaxLinesmethod

Sets the value of the Titanium.UI.TextArea.maxLines property. (New API, supported on Android.)

Titanium.UI.TextField.getPasswordRulesmethod

Gets the value of the Titanium.UI.TextField.passwordRules property. (New API, supported on iPhone and iPad.)

Titanium.UI.TextField.passwordRulesproperty

Set password rules that should be used for this text field. (New API, supported on iPhone and iPad.)

Titanium.UI.TextField.setPasswordRulesmethod

Sets the value of the Titanium.UI.TextField.passwordRules property. (New API, supported on iPhone and iPad.)

Titanium.UI.View.anchorPointproperty

Coordinate of the view about which to pivot an animation. (Added support for Android.)

Titanium.UI.View.getAnchorPointmethod

Gets the value of the Titanium.UI.View.anchorPoint property. (Added support for Android.)

Titanium.UI.View.setAnchorPointmethod

Sets the value of the Titanium.UI.View.anchorPoint property. (Added support for Android.)

Titanium.UI.WebView.getMixedContentModemethod

Gets the value of the Titanium.UI.WebView.mixedContentMode property. (New API, supported on Android.)

Titanium.UI.WebView.getOnlinkmethod

Gets the value of the Titanium.UI.WebView.onlink property. (New API, supported on Android, iPhone and iPad.)

Titanium.UI.WebView.mixedContentModeproperty

If true, allows the loading of insecure resources from a secure origin. (New API, supported on Android.)

Titanium.UI.WebView.onlinkproperty

Fired before navigating to a link. (New API, supported on Android, iPhone and iPad.)

Titanium.UI.WebView.setMixedContentModemethod

Sets the value of the Titanium.UI.WebView.mixedContentMode property. (New API, supported on Android.)

Titanium.UI.WebView.setOnlinkmethod

Sets the value of the Titanium.UI.WebView.onlink property. (New API, supported on Android, iPhone and iPad.)

Titanium.UI.Window.extendSafeAreaproperty

Specifies whether the screen insets/notches are allowed to overlap the window's content or not. (Added support for Android.)

Titanium.UI.Window.getExtendSafeAreamethod

Gets the value of the Titanium.UI.Window.extendSafeArea property. (Added support for Android.)

Titanium.UI.Window.getHidesBackButtonmethod

Gets the value of the Titanium.UI.Window.hidesBackButton property. (New API, supported on iPhone and iPad.)

Titanium.UI.Window.getSafeAreaPaddingmethod

Gets the value of the Titanium.UI.Window.safeAreaPadding property. (New API, supported on Android.)

Titanium.UI.Window.hidesBackButtonproperty

Set this to true to hide the back button of navigation bar. (New API, supported on iPhone and iPad.)

Titanium.UI.Window.safeAreaPaddingproperty

The padding needed to safely display content without it being overlapped by the screen insets and notches. (New API, supported on Android.)

Titanium.UI.Window.setExtendSafeAreamethod

Sets the value of the Titanium.UI.Window.extendSafeArea property. (Added support for Android.)

Titanium.UI.Window.setHidesBackButtonmethod

Sets the value of the Titanium.UI.Window.hidesBackButton property. (New API, supported on iPhone and iPad.)

Titanium.UI.createShortcutItemmethod

Creates and returns an instance of Titanium.UI.ShortcutItem. (New API, supported on Android, iPhone and iPad.)

Deprecated APIs

The following APIs are deprecated in release 7.5.0.

APITypeNotes
Titanium.Media.AudioPlayer.STATE_BUFFERINGproperty

Use Titanium.Media.AUDIO_STATE_BUFFERING instead.

Titanium.Media.AudioPlayer.STATE_INITIALIZEDproperty

Use Titanium.Media.AUDIO_STATE_INITIALIZED instead.

Titanium.Media.AudioPlayer.STATE_PAUSEDproperty

Use Titanium.Media.AUDIO_STATE_PAUSED instead.

Titanium.Media.AudioPlayer.STATE_PLAYINGproperty

Use Titanium.Media.AUDIO_STATE_PLAYING instead.

Titanium.Media.AudioPlayer.STATE_STARTINGproperty

Use Titanium.Media.AUDIO_STATE_STARTING instead.

Titanium.Media.AudioPlayer.STATE_STOPPEDproperty

Use Titanium.Media.AUDIO_STATE_STOPPED instead.

Titanium.Media.AudioPlayer.STATE_STOPPINGproperty

Use Titanium.Media.AUDIO_STATE_STOPPING instead.

Titanium.Media.AudioPlayer.STATE_WAITING_FOR_DATAproperty

Use Titanium.Media.AUDIO_STATE_WAITING_FOR_DATA instead.

Titanium.Media.AudioPlayer.STATE_WAITING_FOR_QUEUEproperty

Use Titanium.Media.AUDIO_STATE_WAITING_FOR_QUEUE instead.

Titanium.Media.AudioPlayer.playmethod

Use the cross-platform API start instead.

Titanium.Media.AudioPlayer.setPausedmethod

Use the cross-platform API pause instead.

Titanium.UI.ATTRIBUTE_LINE_BREAKproperty

Use Titanium.UI.ATTRIBUTE_PARAGRAPH_STYLE.lineBreakMode instead.