You are reading 13.1.1. See this page in 13.4.1.
Titanium.UI.iOS
Extends Titanium.ModuleTitanium.Proxy
Apple iOS specific UI capabilities. All properties, methods and events in this namespace will only work on Apple iOS devices.
Properties 141
Allow the navigation to continue.
Cancel the navigation.
Indicates that the system should present the alert using the critical, or caution, style.
Use with <Titanium.UI.iOS.createAlertDialog> to specify the alert dialog severity on macOS Catalyst.
Indicates that the system should present the alert using the standard alert style.
Use with <Titanium.UI.iOS.createAlertDialog> to specify the alert dialog severity on macOS Catalyst.
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Value of the badge for the application's springboard icon.
In order to change the app icon badge number you will need to register for notifications. Normally this is done by using local notifications or a push service like Firebase Cloud Messaging (FCM).
Ti.App.iOS.registerUserNotificationSettings({
types: [
Ti.App.iOS.USER_NOTIFICATION_TYPE_BADGE
]
});
Determines whether the shake to edit system-wide capability is enabled.
All media types require a user gesture to begin playing.
Media types containing audio require a user gesture to begin playing.
No media types require a user gesture to begin playing.
Media types containing video require a user gesture to begin playing.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. The area of the view is darker in hue than the underlying view.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. The area of the view is lighter in hue than the underlying view.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. The area of the view is the same approximate hue of the underlying view.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. The area of the view is presented more prominent than the underlying view.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. The blurring effect is the default one specified in iOS 10.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This is an adaptable blur effect that creates the appearance of the system chrome.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of an ultra-thin material and is always dark.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of the system chrome and is always light.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This is an adaptable blur effect that creates the appearance of a material with normal thickness.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of a thin material and is always dark.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of a material with normal thickness and is always light.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This is an adaptable blur effect that creates the appearance of a material that is thicker than normal.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of a material with normal thickness and is always dark.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of a material that is thicker than normal and is always light.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This is an adaptable blur effect that creates the appearance of a thin material.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of a material that is thicker than normal and is always dark.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of a thin material and is always light.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This is an adaptable blur effect that creates the appearance of a material with normal thickness.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of the system chrome and is always dark.
Use with BlurView.effect to specify a blur effect.
Creates a blurring effect in the view. This blur effect creates the appearance of an ultra-thin material and is always light.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
Specifies that the data for the URL load should be loaded from the originating source. No existing cache data should be used to satisfy a URL load request.
Use with Titanium.UI.WebView.cachePolicy.
Specifies that the existing cache data should be used to satisfy a request, regardless of its age or expiration date.
Use with Titanium.UI.WebView.cachePolicy. If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an offline mode.
Specifies that the existing cached data should be used to satisfy the request, regardless of its age or expiration date.
Use with Titanium.UI.WebView.cachePolicy. If there is no existing data in the cache corresponding the request, the data is loaded from the originating source.
Specifies that the caching logic defined in the protocol implementation, if any, is used for a particular URL load request.
Use with Titanium.UI.WebView.cachePolicy. This is the default policy for URL load requests. If you are making HTTP or HTTPS byte-range requests, always use the Titanium.UI.iOS.CACHE_POLICY_RELOAD_IGNORING_LOCAL_CACHE_DATA policy.
Use with Titanium.UI.View.clipMode to specify clipping behavior.
Use with Titanium.UI.View.clipMode to specify clipping behavior.
Use with Titanium.UI.View.clipMode to specify clipping behavior.
Use with Titanium.UI.iOS.CollisionBehavior.collisionMode to specify collisions with both items and boundaries.
Use with Titanium.UI.iOS.CollisionBehavior.collisionMode to specify collisions with boundaries only.
Use with Titanium.UI.iOS.CollisionBehavior.collisionMode to specify collisions with items only.
Credential should be stored only for this session.
Used with the persistence argument of Titanium.UI.WebView.setBasicAuthentication to set the persistence level.
Credential should not be stored.
Used with the persistence argument of Titanium.UI.WebView.setBasicAuthentication to set the persistence level.
Credential should be stored in the keychain.
Used with the persistence argument of Titanium.UI.WebView.setBasicAuthentication to set the persistence level.
Credential should be stored permanently in the keychain, and in addition should be distributed to other devices based on the owning AppleID.
Used with the persistence argument of Titanium.UI.WebView.setBasicAuthentication to set the persistence level.
Deprecated since 10.0.1
Use Titanium.UI.DATE_PICKER_STYLE_AUTOMATIC instead.
Use with Titanium.UI.Picker.datePickerStyle to automatically pick the best style available for the current platform & mode.
Note: Prior to iOS 14, this property is only used on iOS Catalyst apps.
Deprecated since 10.0.1
Use Titanium.UI.DATE_PICKER_STYLE_COMPACT instead.
Use with Titanium.UI.Picker.datePickerStyle to show the picker with a compact style. Editing occurs in an overlay.
Note: Prior to iOS 14, this property is only used on iOS Catalyst apps.
Deprecated since 10.0.1
Use Titanium.UI.DATE_PICKER_STYLE_INLINE instead.
Use with Titanium.UI.Picker.datePickerStyle to allow editing in place (as a calendar).
Deprecated since 10.0.1
Use Titanium.UI.DATE_PICKER_STYLE_WHEELS instead.
Use with Titanium.UI.Picker.datePickerStyle to show the picker the wheels. Editing occurs inline.
The heavy impact style used as the style argument when creating a Titanium.UI.iOS.FeedbackGenerator with the
type Titanium.UI.iOS.FEEDBACK_GENERATOR_TYPE_IMPACT.
The light impact style used as the style argument when creating a Titanium.UI.iOS.FeedbackGenerator with the
type Titanium.UI.iOS.FEEDBACK_GENERATOR_TYPE_IMPACT.
The medium impact style used as the style argument when creating a Titanium.UI.iOS.FeedbackGenerator with the
type Titanium.UI.iOS.FEEDBACK_GENERATOR_TYPE_IMPACT.
The error notification type used as the argument in Titanium.UI.iOS.FeedbackGenerator.notificationOccurred.
The success notification type used as the argument in Titanium.UI.iOS.FeedbackGenerator.notificationOccurred.
The warning notification type used as the argument in Titanium.UI.iOS.FeedbackGenerator.notificationOccurred.
The feedback type to be used when specifying an impact in Titanium.UI.iOS.FeedbackGenerator.
The feedback type to be used when specifying a received notification in Titanium.UI.iOS.FeedbackGenerator.
The feedback type to be used when specifying a selection in Titanium.UI.iOS.FeedbackGenerator.
Determines if the 3D-Touch capability "Force Touch" is supported (true) or not (false) by the device.
Returns true if the device supports 3D-Touch (iPhone 6S / iPhone 6S Plus and later) or false if not.
Use with BlurView.glassEffect to specify a clear glass effect style.
Creates a glass effect with higher translucency and lighter blur intensity compared to the regular style. This style provides a more transparent appearance while still maintaining the glass effect characteristics.
Use with BlurView.glassEffect to specify a regular glass effect style.
Creates a standard glass effect with regular translucency and blur intensity. This is the default style for glass effects and provides a balanced appearance suitable for most use cases.
Inject the script after the document finishes loading, but before other subresources finish loading.
Used to set the injectionTime argument of Titanium.UI.WebView.addUserScript.
Inject the script after the document element is created, but before any other content is loaded.
Used to set the injectionTime argument of Titanium.UI.WebView.addUserScript.
Use with Titanium.UI.ScrollView.keyboardDismissMode to control keyboard dismiss mode.
The keyboard follows the dragging touch offscreen, and can be pulled upward again to cancel the dismiss.
Use with Titanium.UI.ScrollView.keyboardDismissMode to control keyboard dismiss mode.
The keyboard does not get dismissed with a drag.
Use with Titanium.UI.ScrollView.keyboardDismissMode to control keyboard dismiss mode.
The keyboard is dismissed when a drag begins.
Always use a larger title when this item is top most.
Use with Titanium.UI.Window.largeTitleDisplayMode.
Automatically use the large out-of-line title based on the state of the p revious item in the navigation bar.
Use with Titanium.UI.Window.largeTitleDisplayMode. An item with this
constant will show or hide the large title based on the request of the
previous navigation item. If the first item pushed is set to Automatic,
then it will show the large title if the navigation bar has the property
Titanium.UI.Window.largeTitleEnabled set to true.
Never use a larger title when this item is top most.
Use with Titanium.UI.Window.largeTitleDisplayMode.
To indicate that the Live Photo aspect is turned off and it will be treated as a still (e.g. for sharing).
Use with Titanium.UI.iOS.createLivePhotoBadge to specify the badge behavior.
Include treatments so this image can be shown directly over the content of the Live Photo.
Use with Titanium.UI.iOS.createLivePhotoBadge to specify the badge behavior.
Plays back the entire motion and sound content of the Live Photo, including transition effects at the start and end.
This style matches the effect seen when pressing on a photo in the Photos app.
Plays back only a brief section of the motion content of the Live Photo, without sound.
This style matches the effect seen in various iOS interface elements for hinting to the user when an asset contains Live Photo content.
An arrow that is automatically aligned.
An arrow that points downward.
An arrow that points toward the left.
An arrow that points toward the right.
An arrow that points upward.
View presented with the same style as its parent window.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window presentation style constants MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN, MODAL_PRESENTATION_OVER_CURRENT_CONTEXT, MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.
Window width and height are smaller than those of the screen and the view is centered on the screen.
If the system is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible. All uncovered areas are dimmed and do not respond to touch to prevent the user from interacting with them.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window presentation style constants MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN, MODAL_PRESENTATION_OVER_CURRENT_CONTEXT, MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.
Window covers the screen.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window presentation style constants MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN, MODAL_PRESENTATION_OVER_CURRENT_CONTEXT, MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.
View presented over its parent window.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window presentation style constants MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN, MODAL_PRESENTATION_OVER_CURRENT_CONTEXT, MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.
Presented view covers the screen.
The views beneath the presented content are not removed from the view hierarchy when the presentation finishes. So if the presented view controller does not fill the screen with opaque content, the underlying content shows through.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window presentation style constants MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN, MODAL_PRESENTATION_OVER_CURRENT_CONTEXT, MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.
Window height is the height of the screen and width is equal to screen width in a portrait orientation.
Any uncovered areas are dimmed and do not respond to touch, to prevent the user from interacting with them. In portrait orientations, this option is essentially the same as Titanium.UI.iOS.MODAL_PRESENTATION_FULLSCREEN.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window presentation style constants MODAL_PRESENTATION_OVER_CURRENT_FULL_SCREEN, MODAL_PRESENTATION_OVER_CURRENT_CONTEXT, MODAL_PRESENTATION_CURRENT_CONTEXT, MODAL_PRESENTATION_FORMSHEET, MODAL_PRESENTATION_FULLSCREEN, and MODAL_PRESENTATION_PAGESHEET.
When the window is presented, its view slides up from the bottom of the screen. On dismissal, the view slides back down (default.)
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.
When the window is presented, the current view fades out while the new view fades in at the same time. On dismissal, a similar type of cross-fade is used to return to the original view.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.
When the window is presented, the current view initiates a horizontal 3D flip from right-to-left, resulting in the revealing of the new view as if it were on the back of the previous view. On dismissal, the flip occurs from left-to-right, returning to the original view.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.
When the window is presented, one corner of the current view curls up to reveal the modal view underneath. On dismissal, the curled up page unfurls itself back on top of the modal view.
A modal view presented using this transition is itself prevented from presenting any additional modal views. This transition style is supported only if the window is presenting a Titanium.UI.iOS.MODAL_PRESENTATION_FULLSCREEN modal presentation style.
Used with the Titanium.UI.Window.open and Titanium.UI.Window.close methods.
One of the group of modal window transition style constants MODAL_TRANSITION_STYLE_COVER_VERTICAL, MODAL_TRANSITION_STYLE_CROSS_DISSOLVE, MODAL_TRANSITION_STYLE_FLIP_HORIZONTAL, and MODAL_TRANSITION_STYLE_PARTIAL_CURL.
The normal style for preview actions.
Used in conjunction with Titanium.UI.iOS.PreviewAction.style / Titanium.UI.iOS.PreviewActionGroup.style property.
The destructive style for preview actions.
Used in conjunction with Titanium.UI.iOS.PreviewAction.style / Titanium.UI.iOS.PreviewActionGroup.style property.
The selected style for preview actions.
Used in conjunction with Titanium.UI.iOS.PreviewAction.style / Titanium.UI.iOS.PreviewActionGroup.style property.
Use with Titanium.UI.iOS.PushBehavior.pushMode to specifiy a continuous force.
Use with Titanium.UI.iOS.PushBehavior.pushMode to specifiy an instantaneous force.
The default style for RowActionType.
Used in conjunction with Titanium.UI.ListItem.editActions property and Titanium.UI.ListView.editaction event.
The destructive style for RowActionType.
Used in conjunction with Titanium.UI.ListItem.editActions property and Titanium.UI.ListView.editaction event.
The normal style for RowActionType.
Used in conjunction with Titanium.UI.ListItem.editActions property and Titanium.UI.ListView.editaction event.
Use with Titanium.UI.ScrollView.decelerationRate to control deceleration rate.
Use with Titanium.UI.ScrollView.decelerationRate to control deceleration rate.
Use with Titanium.UI.ScrollView.edgeEffect to apply the system default edge effect style.
Use with Titanium.UI.ScrollView.edgeEffect to apply a scroll edge effect with a hard cutoff and dividing line.
Use with Titanium.UI.ScrollView.edgeEffect to apply a soft-edged scroll edge effect.
Use with Titanium.UI.SearchBar.style to change the search bar style.
The search bar has no background, and the search field is translucent.
Use with Titanium.UI.SearchBar.style to change the search bar style.
The search bar has a translucent background, and the search field is opaque.
Selection endpoints can be placed at any character boundary.
Use with Titanium.UI.WebView.selectionGranularity.
Selection granularity varies automatically depending on the selection.
Use with Titanium.UI.WebView.selectionGranularity.
Number that represents the icon used for the application shortcut
An icon for a quick action that adds an item.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers creation of an alarm.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers use of audio.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers creation of a bookmark.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers photo capture.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers video capture.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers cloud access.
Number that represents the icon used for the application shortcut
An icon for a quick action that lets a user compose new content.
Number that represents the icon used for the application shortcut
An icon for a quick action that indicates confirmation.
Number that represents the icon used for the application shortcut
An icon for a quick action that chooses a generic contact.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers use of a calendar.
Number that represents the icon used for the application shortcut
An icon for a quick action that lets a user designate a favorite item.
Number that represents the icon used for the application shortcut
An icon for a quick action that indicates home.
Number that represents the icon used for the application shortcut
An icon for a quick action that indicates an invitation.
Number that represents the icon used for the application shortcut
Will cause a magnifying glass icon to be displayed at that location in the index. This should generally only be used as the first title in the index.
Number that represents the icon used for the application shortcut
An icon for a quick action that lets a user designate a loved item.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers use of mail.
Number that represents the icon used for the application shortcut
An icon for a quick action that lets a user mark a location.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers use of messaging.
Number that represents the icon used for the application shortcut
An icon for a quick action that pauses media playback.
Number that represents the icon used for the application shortcut
An icon for a quick action that plays media.
Number that represents the icon used for the application shortcut
An icon for a quick action that disallows something.
Number that represents the icon used for the application shortcut
An icon for a quick action that accesses the user's current location.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers content sharing.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers shuffle mode.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers task creation.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers task completion.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers use of a clock or timer.
Number that represents the icon used for the application shortcut
An icon for a quick action that offers updating.
Sets the global status bar background color for the application. Android does not support setting instances of Titanium.UI.Color
Default: Undefined (Uses the native defaults)
Automatically determine when the tab group minimizes.
Use with Titanium.UI.TabGroup.minimizeBehavior to let the system choose the appropriate minimize behavior based on context and platform conventions.
Do not minimize the tab group.
Use with Titanium.UI.TabGroup.minimizeBehavior to keep the tab group visible and prevent it from minimizing in response to scrolling.
Minimize the tab group when scrolling down.
Use with Titanium.UI.TabGroup.minimizeBehavior to minimize the tab group as the user scrolls downward.
Minimize the tab group when scrolling up.
Use with Titanium.UI.TabGroup.minimizeBehavior to minimize the tab group as the user scrolls upward.
String that represents the magnifying glass on the table view index bar
Will cause a magnifying glass icon to be displayed at that location in the index. This should generally only be used as the first title in the index.
Methods 35
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
createAnchorAttachmentBehavior
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.AnchorAttachmentBehavior.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.AnchorAttachmentBehavior> | Properties to set on a new object, including any defined by Titanium.UI.iOS.AnchorAttachmentBehavior except those marked not-creation or read-only. |
createAnimator
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.Animator.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.Animator> | Properties to set on a new object, including any defined by Titanium.UI.iOS.Animator except those marked not-creation or read-only. |
Deprecated since 9.1.0
Use Titanium.UI.Shortcut instead.
Creates and returns an instance of Titanium.UI.iOS.ApplicationShortcuts.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.ApplicationShortcuts> | Properties to set on a new object, including any defined by Titanium.UI.iOS.ApplicationShortcuts except those marked not-creation or read-only. |
createBlurView
since iPhone 5.4.0, iPad 5.4.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.BlurView.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.BlurView> | Properties to set on a new object, including any defined by Titanium.UI.iOS.BlurView except those marked not-creation or read-only. |
Creates a button configuration object for customizing button appearance.
Creates a Titanium.UI.iOS.ButtonConfiguration object that can be used to configure the appearance and behavior of buttons with modern styling options.
| Parameters | Type | Description |
|---|---|---|
| parameters | Dictionary<Titanium.UI.iOS.ButtonConfiguration> | Properties to set on the button configuration. |
createCollisionBehavior
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.CollisionBehavior.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.CollisionBehavior> | Properties to set on a new object, including any defined by Titanium.UI.iOS.CollisionBehavior except those marked not-creation or read-only. |
createCoverFlowView
since iPhone 0.8, iPad 0.8, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.CoverFlowView.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.CoverFlowView> | Properties to set on a new object, including any defined by Titanium.UI.iOS.CoverFlowView except those marked not-creation or read-only. |
createDocumentViewer
since iPhone 2.1.1, iPad 2.1.1, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.DocumentViewer.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.DocumentViewer> | Properties to set on a new object, including any defined by Titanium.UI.iOS.DocumentViewer except those marked not-creation or read-only. |
createDynamicItemBehavior
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.DynamicItemBehavior.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.DynamicItemBehavior> | Properties to set on a new object, including any defined by Titanium.UI.iOS.DynamicItemBehavior except those marked not-creation or read-only. |
Creates and returns an instance of Titanium.UI.iOS.FeedbackGenerator.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.FeedbackGenerator> | Properties to set on a new object, including any defined by Titanium.UI.iOS.FeedbackGenerator except those marked not-creation or read-only. |
createGravityBehavior
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.GravityBehavior.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.GravityBehavior> | Properties to set on a new object, including any defined by Titanium.UI.iOS.GravityBehavior except those marked not-creation or read-only. |
Creates a live photo badge to be used together with the Titanium.UI.iOS.LivePhotoView API.
Supported on iOS 9.1 and later.
| Parameters | Type | Description |
|---|---|---|
| type | Number | Constant defining the live photo badge behavior. |
createLivePhotoView
since iPhone 5.2.0, iPad 5.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.LivePhotoView.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.LivePhotoView> | Properties to set on a new object, including any defined by Titanium.UI.iOS.LivePhotoView except those marked not-creation or read-only. |
createMenuPopup
since iPhone 5.2.0, iPad 5.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.MenuPopup.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.MenuPopup> | Properties to set on a new object, including any defined by Titanium.UI.iOS.MenuPopup except those marked not-creation or read-only. |
Deprecated since 8.0.0, removed in 10.0.0
Use Titanium.UI.NavigationWindow instead.
Creates and returns an instance of Titanium.UI.iOS.NavigationWindow.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.NavigationWindow> | Properties to set on a new object, including any defined by Titanium.UI.iOS.NavigationWindow except those marked not-creation or read-only. |
Creates and returns an instance of Titanium.UI.iOS.PreviewAction.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.PreviewAction> | Properties to set on a new object, including any defined by Titanium.UI.iOS.PreviewAction except those marked not-creation or read-only. |
Creates and returns an instance of Titanium.UI.iOS.PreviewActionGroup.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.PreviewActionGroup> | Properties to set on a new object, including any defined by Titanium.UI.iOS.PreviewActionGroup except those marked not-creation or read-only. |
Creates and returns an instance of Titanium.UI.iOS.PreviewContext.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.PreviewContext> | Properties to set on a new object, including any defined by Titanium.UI.iOS.PreviewContext except those marked not-creation or read-only. |
createPushBehavior
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.PushBehavior.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.PushBehavior> | Properties to set on a new object, including any defined by Titanium.UI.iOS.PushBehavior except those marked not-creation or read-only. |
createSnapBehavior
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.SnapBehavior.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.SnapBehavior> | Properties to set on a new object, including any defined by Titanium.UI.iOS.SnapBehavior except those marked not-creation or read-only. |
createSplitWindow
since iPhone 3.6.0, iPad 3.6.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.SplitWindow.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.SplitWindow> | Properties to set on a new object, including any defined by Titanium.UI.iOS.SplitWindow except those marked not-creation or read-only. |
createStepper
since iPhone 5.4.0, iPad 5.4.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.Stepper.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.Stepper> | Properties to set on a new object, including any defined by Titanium.UI.iOS.Stepper except those marked not-creation or read-only. |
createSystemButton
since iPhone 5.4.0, iPad 5.4.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.SystemButton.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.SystemButton> | Properties to set on a new object, including any defined by Titanium.UI.iOS.SystemButton except those marked not-creation or read-only. |
Deprecated since 8.0.0, removed in 10.0.0
Use Titanium.UI.TabbedBar instead.
Creates and returns an instance of Titanium.UI.iOS.TabbedBar.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.TabbedBar> | Properties to set on a new object, including any defined by Titanium.UI.iOS.TabbedBar except those marked not-creation or read-only. |
Deprecated since 6.2.0, removed in 10.0.0
Use the cross-platform Titanium.UI.Toolbar instead.
Creates and returns an instance of Titanium.UI.iOS.Toolbar.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.Toolbar> | Properties to set on a new object, including any defined by Titanium.UI.iOS.Toolbar except those marked not-creation or read-only. |
createTransitionAnimation
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.TransitionAnimation.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.TransitionAnimation> | Properties to set on a new object, including any defined by Titanium.UI.iOS.TransitionAnimation except those marked not-creation or read-only. |
createViewAttachmentBehavior
since iPhone 3.2.0, iPad 3.2.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.ViewAttachmentBehavior.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.ViewAttachmentBehavior> | Properties to set on a new object, including any defined by Titanium.UI.iOS.ViewAttachmentBehavior except those marked not-creation or read-only. |
createWebViewConfiguration
since iPhone 8.0.0, iPad 8.0.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.WebViewConfiguration.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.WebViewConfiguration> | Properties to set on a new object, including any defined by Titanium.UI.iOS.WebViewConfiguration except those marked not-creation or read-only. |
createWebViewDecisionHandler
since iPhone 8.0.0, iPad 8.0.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.WebViewDecisionHandler.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.WebViewDecisionHandler> | Properties to set on a new object, including any defined by Titanium.UI.iOS.WebViewDecisionHandler except those marked not-creation or read-only. |
createWebViewProcessPool
since iPhone 8.0.0, iPad 8.0.0, macOS 9.2.0Creates and returns an instance of Titanium.UI.iOS.WebViewProcessPool.
| Parameters | Type | Description |
|---|---|---|
| parameters? | Dictionary<Titanium.UI.iOS.WebViewProcessPool> | Properties to set on a new object, including any defined by Titanium.UI.iOS.WebViewProcessPool except those marked not-creation or read-only. |
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| event? | Dictionary | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|
Get image from SF Symbols provided by Apple.
More details on SF Symbols can be found here. One can download SF Symbols app from here and use it to lookup the built-in SF Symbol name. Example:
const win = Ti.UI.createWindow({ backgroundColor: '#fff' });
const imageView = Ti.UI.createImageView({
image: Ti.UI.iOS.systemImage('folder'), // folder icon
height: Ti.UI.FILL
});
// iOS 17+ symbol effect
imageView.addSymbolEffect({
symbolEffect: 'bounce',
animated: true,
options: { repeatCount: 4 }
});
win.add(imageView);
win.open();
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of SF Symbol. |
| parameters? | SystemImageParameters | Additional parameters to pass to the SF Symbol. Available in Titanium SDK 10.1.0 and later 2 fields
|