@types/titanium 13.3.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. titanium/README.md +2 -2
  2. titanium/index.d.ts +786 -50
  3. titanium/package.json +17 -2
titanium/index.d.ts CHANGED
@@ -109,6 +109,11 @@ interface Attribute {
109
109
  */
110
110
  type: number;
111
111
 
112
+ /**
113
+ * Enable or disable the `ATTRIBUTE_LINK` underline.
114
+ */
115
+ underline?: boolean;
116
+
112
117
  /**
113
118
  * Attribute value.
114
119
  */
@@ -324,7 +329,7 @@ interface CameraMediaItemType extends SuccessResponse {
324
329
  success?: boolean;
325
330
  }
326
331
  /**
327
- * A media object from photo gallery when <Titanium.Media.allowMultiple> is `true`.
332
+ * A media object from photo gallery when <PhotoGalleryOptionsType.allowMultiple> is `true`.
328
333
  */
329
334
  interface CameraMediaMultipleItemsType extends SuccessResponse {
330
335
  /**
@@ -400,6 +405,11 @@ interface CameraOptionsType {
400
405
  */
401
406
  error?: (param0: FailureResponse) => void;
402
407
 
408
+ /**
409
+ * Name of the folder under the gallery's `Pictures` directory to save captured photos to.
410
+ */
411
+ galleryFolder?: string;
412
+
403
413
  /**
404
414
  * Show the camera in a popover.
405
415
  */
@@ -498,6 +508,20 @@ interface CameraRecordingCallback {
498
508
  */
499
509
  size?: number;
500
510
  }
511
+ /**
512
+ * Dictionary of options for the <Titanium.App.Android.changeIcon> method.
513
+ */
514
+ interface ChangeIconOptions {
515
+ /**
516
+ * `android:name` (without leading dot) of the `<activity-alias>` of the current icon. The method disables this alias.
517
+ */
518
+ from: string;
519
+
520
+ /**
521
+ * `android:name` (without leading dot) of the `<activity-alias>` of the new icon. The method enables this alias.
522
+ */
523
+ to: string;
524
+ }
501
525
  /**
502
526
  * Dictionary describing the items for <Titanium.UI.Clipboard.setItems>.
503
527
  */
@@ -2015,6 +2039,25 @@ interface OpenURLOptions {
2015
2039
  */
2016
2040
  UIApplicationOpenURLOptionsSourceApplicationKey?: string;
2017
2041
  }
2042
+ /**
2043
+ * Dictionary of options for the <Titanium.UI.OptionDialog.show> method.
2044
+ */
2045
+ interface OptionDialogShowParams {
2046
+ /**
2047
+ * Determines whether to animate the dialog as it is shown.
2048
+ */
2049
+ animated?: boolean;
2050
+
2051
+ /**
2052
+ * Positions the arrow of the option dialog relative to the attached view's dimensions.
2053
+ */
2054
+ rect?: Dimension;
2055
+
2056
+ /**
2057
+ * View to which to attach the dialog.
2058
+ */
2059
+ view?: Titanium.UI.View;
2060
+ }
2018
2061
  /**
2019
2062
  * Simple object passed to the <Titanium.Android.Activity> callbacks for
2020
2063
  * onPrepareOptionsMenu and onCreateOptionsMenu.
@@ -2389,6 +2432,30 @@ interface PushNotificationSuccessArg extends SuccessResponse {
2389
2432
  */
2390
2433
  type?: string;
2391
2434
  }
2435
+ /**
2436
+ * Dictionary of options for the <Titanium.Android.QuickSettingsService.showDialog> method.
2437
+ */
2438
+ interface QuickSettingsServiceShowParams {
2439
+ /**
2440
+ * Array of String instances.
2441
+ */
2442
+ buttonNames?: string[];
2443
+
2444
+ /**
2445
+ * String to be used as a message for the dialog.
2446
+ */
2447
+ message?: string;
2448
+
2449
+ /**
2450
+ * Array of String instances.
2451
+ */
2452
+ options?: string[];
2453
+
2454
+ /**
2455
+ * String to be used as title for the dialog.
2456
+ */
2457
+ title?: string;
2458
+ }
2392
2459
  /**
2393
2460
  * Argument passed to the read callback when an asynchronous [read](Titanium.Stream.read) operation
2394
2461
  * finishes.
@@ -2462,11 +2529,56 @@ interface RequestPermissionAccessResult extends ErrorResponse {
2462
2529
  */
2463
2530
  interface RequestPhotoGalleryAccessResult extends ErrorResponse {
2464
2531
  }
2532
+ /**
2533
+ * Dictionary of options for <Titanium.App.iOS.requestScene>.
2534
+ */
2535
+ interface RequestSceneOptions {
2536
+ /**
2537
+ * The name of the `UISceneConfiguration` to use. Must match a
2538
+ * configuration name in the app's `UIApplicationSceneManifest`.
2539
+ * If omitted, the system uses the default configuration.
2540
+ */
2541
+ configurationName?: string;
2542
+ }
2543
+ /**
2544
+ * Resolution value of the Promise returned by <Titanium.App.iOS.requestScene>
2545
+ * when the newly-requested scene has connected.
2546
+ */
2547
+ interface RequestSceneResult {
2548
+ /**
2549
+ * The scene proxy for the newly-connected scene.
2550
+ */
2551
+ scene?: Titanium.App.iOS.SceneProxy;
2552
+ }
2465
2553
  /**
2466
2554
  * Argument passed to the callback when a request finishes successfully or erroneously.
2467
2555
  */
2468
2556
  interface RequestStorageAccessResult extends ErrorResponse {
2469
2557
  }
2558
+ /**
2559
+ * A region of a window that is reserved by the system.
2560
+ */
2561
+ interface ReservedRegion {
2562
+ /**
2563
+ * Whether the region currently applies. The `division` region is only active while the device is partially folded.
2564
+ */
2565
+ active?: boolean;
2566
+
2567
+ /**
2568
+ * The kind of the region. `division` is the fold of the device and `occlusion` is the inner camera.
2569
+ */
2570
+ kind?: string;
2571
+
2572
+ /**
2573
+ * The margins that are included in the `rect` around the reserved area, for interactive content.
2574
+ */
2575
+ margins?: Padding;
2576
+
2577
+ /**
2578
+ * The rectangle of the region in the coordinate space of the window, including the margins.
2579
+ */
2580
+ rect?: Dimension;
2581
+ }
2470
2582
  /**
2471
2583
  * Simple object returned in the callback from the
2472
2584
  * [reverseGeocoder](Titanium.Geolocation.reverseGeocoder) method.
@@ -2545,6 +2657,15 @@ interface ScreenshotResult {
2545
2657
  */
2546
2658
  media?: Titanium.Blob;
2547
2659
  }
2660
+ /**
2661
+ * Dictionary object of parameters for the padding applied to a <Titanium.UI.ScrollableView>.
2662
+ */
2663
+ interface ScrollablePadding extends Padding {
2664
+ /**
2665
+ * Horizontal offset in pixels that moves the first view while it is the current page.
2666
+ */
2667
+ leftAdjust?: number;
2668
+ }
2548
2669
  /**
2549
2670
  * The search bar token for the <Titanium.UI.SearchBar.insertTokenAtIndex> method.
2550
2671
  */
@@ -5673,7 +5794,7 @@ declare namespace Titanium {
5673
5794
  /**
5674
5795
  * Opens an Alert dialog.
5675
5796
  */
5676
- showDialog(options: showParams): void;
5797
+ showDialog(options: QuickSettingsServiceShowParams): void;
5677
5798
 
5678
5799
  /**
5679
5800
  * Collapses the quick settings menu and starts an activity for the passed Intent.
@@ -6142,6 +6263,26 @@ declare namespace Titanium {
6142
6263
  */
6143
6264
  const EVENT_ACCESSIBILITY_SCREEN_CHANGED: string;
6144
6265
 
6266
+ /**
6267
+ * The hinge is closed.
6268
+ */
6269
+ const HINGE_STATUS_CLOSED: number;
6270
+
6271
+ /**
6272
+ * The hinge is fully open.
6273
+ */
6274
+ const HINGE_STATUS_FULLY_OPEN: number;
6275
+
6276
+ /**
6277
+ * The hinge is partially open.
6278
+ */
6279
+ const HINGE_STATUS_PARTIALLY_OPEN: number;
6280
+
6281
+ /**
6282
+ * The status of the hinge is unknown.
6283
+ */
6284
+ const HINGE_STATUS_UNKNOWN: number;
6285
+
6145
6286
  /**
6146
6287
  * A dark interface style.
6147
6288
  * @deprecated Use <Titanium.UI.USER_INTERFACE_STYLE_DARK> instead, which is supported cross-platform.
@@ -6534,6 +6675,165 @@ declare namespace Titanium {
6534
6675
  */
6535
6676
  removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void;
6536
6677
  }
6678
+ /**
6679
+ * Base event for class Titanium.App.iOS.SceneProxy
6680
+ */
6681
+ interface SceneProxyBaseEvent extends Ti.Event {
6682
+ /**
6683
+ * Source object that fired the event.
6684
+ */
6685
+ source: Titanium.App.iOS.SceneProxy;
6686
+ }
6687
+ /**
6688
+ * Fired when this scene becomes active and can receive user input.
6689
+ */
6690
+ interface SceneProxy_focus_Event extends SceneProxyBaseEvent {
6691
+ /**
6692
+ * The scene proxy that became active.
6693
+ */
6694
+ scene: Titanium.App.iOS.SceneProxy;
6695
+
6696
+ /**
6697
+ * The unique identifier of the scene.
6698
+ */
6699
+ sceneId: string;
6700
+ }
6701
+ /**
6702
+ * Fired when this scene is about to resign the active state.
6703
+ */
6704
+ interface SceneProxy_blur_Event extends SceneProxyBaseEvent {
6705
+ /**
6706
+ * The scene proxy that is resigning active.
6707
+ */
6708
+ scene: Titanium.App.iOS.SceneProxy;
6709
+
6710
+ /**
6711
+ * The unique identifier of the scene.
6712
+ */
6713
+ sceneId: string;
6714
+ }
6715
+ /**
6716
+ * Fired when this scene has entered the background.
6717
+ */
6718
+ interface SceneProxy_paused_Event extends SceneProxyBaseEvent {
6719
+ /**
6720
+ * The scene proxy that entered the background.
6721
+ */
6722
+ scene: Titanium.App.iOS.SceneProxy;
6723
+
6724
+ /**
6725
+ * The unique identifier of the scene.
6726
+ */
6727
+ sceneId: string;
6728
+ }
6729
+ /**
6730
+ * Fired when this scene is about to enter the foreground.
6731
+ */
6732
+ interface SceneProxy_resumed_Event extends SceneProxyBaseEvent {
6733
+ /**
6734
+ * The scene proxy that is entering the foreground.
6735
+ */
6736
+ scene: Titanium.App.iOS.SceneProxy;
6737
+
6738
+ /**
6739
+ * The unique identifier of the scene.
6740
+ */
6741
+ sceneId: string;
6742
+ }
6743
+ interface SceneProxyEventMap extends ProxyEventMap {
6744
+ blur: SceneProxy_blur_Event;
6745
+
6746
+ focus: SceneProxy_focus_Event;
6747
+
6748
+ paused: SceneProxy_paused_Event;
6749
+
6750
+ resumed: SceneProxy_resumed_Event;
6751
+ }
6752
+ /**
6753
+ * Proxy object representing a UIWindowScene in a multi-scene iOS application.
6754
+ */
6755
+ class SceneProxy extends Titanium.Proxy {
6756
+ /**
6757
+ * The unique identifier of the scene (alias for sceneId).
6758
+ */
6759
+ readonly id: string;
6760
+
6761
+ /**
6762
+ * Whether the scene is currently active and receiving input.
6763
+ */
6764
+ readonly isActive: boolean;
6765
+
6766
+ /**
6767
+ * Whether the scene is in the foreground (visible but may not be active).
6768
+ */
6769
+ readonly isForeground: boolean;
6770
+
6771
+ /**
6772
+ * Whether this scene's window is the one the user is currently interacting with.
6773
+ */
6774
+ readonly isKey: boolean;
6775
+
6776
+ /**
6777
+ * Whether this scene is the primary (first) scene.
6778
+ */
6779
+ readonly isPrimary: boolean;
6780
+
6781
+ /**
6782
+ * The unique identifier of the scene.
6783
+ */
6784
+ readonly sceneId: string;
6785
+
6786
+ /**
6787
+ * The configuration name of the scene.
6788
+ */
6789
+ readonly sceneName: string;
6790
+
6791
+ /**
6792
+ * The trait collection for this scene.
6793
+ */
6794
+ readonly traitCollection: any;
6795
+
6796
+ /**
6797
+ * The root window proxy for this scene.
6798
+ */
6799
+ readonly window: Titanium.UI.Window;
6800
+
6801
+ /**
6802
+ * Adds the specified callback as an event listener for the named event.
6803
+ */
6804
+ addEventListener<K extends keyof SceneProxyEventMap>(
6805
+ name: K,
6806
+ callback: (this: Titanium.App.iOS.SceneProxy, event: SceneProxyEventMap[K]) => void,
6807
+ ): void;
6808
+
6809
+ /**
6810
+ * Adds the specified callback as an event listener for the named event.
6811
+ */
6812
+ addEventListener(name: string, callback: (param0: Titanium.Event) => void): void;
6813
+
6814
+ /**
6815
+ * Fires a synthesized event to any registered listeners.
6816
+ */
6817
+ fireEvent<K extends keyof SceneProxyEventMap>(name: K, event?: SceneProxyEventMap[K]): void;
6818
+
6819
+ /**
6820
+ * Fires a synthesized event to any registered listeners.
6821
+ */
6822
+ fireEvent(name: string, event?: any): void;
6823
+
6824
+ /**
6825
+ * Removes the specified callback as an event listener for the named event.
6826
+ */
6827
+ removeEventListener<K extends keyof SceneProxyEventMap>(
6828
+ name: K,
6829
+ callback: (this: Titanium.App.iOS.SceneProxy, event: SceneProxyEventMap[K]) => void,
6830
+ ): void;
6831
+
6832
+ /**
6833
+ * Removes the specified callback as an event listener for the named event.
6834
+ */
6835
+ removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void;
6836
+ }
6537
6837
  /**
6538
6838
  * Base event for class Titanium.App.iOS.SearchQuery
6539
6839
  */
@@ -7771,6 +8071,11 @@ declare namespace Titanium {
7771
8071
  */
7772
8072
  static applyProperties(props: any): void;
7773
8073
 
8074
+ /**
8075
+ * Changes the Android app icon at runtime.
8076
+ */
8077
+ static changeIcon(options: ChangeIconOptions): void;
8078
+
7774
8079
  /**
7775
8080
  * Clears app data and cache. This will close the app.
7776
8081
  */
@@ -8399,11 +8704,49 @@ declare namespace Titanium {
8399
8704
  */
8400
8705
  interface iOS_traitcollectionchange_Event extends iOSBaseEvent {
8401
8706
  }
8707
+ /**
8708
+ * Fired when the hinge of a foldable device (iPhone Duo) changes its status or angle.
8709
+ */
8710
+ interface iOS_hingechange_Event extends iOSBaseEvent {
8711
+ /**
8712
+ * The current angle of the hinge in degrees. `0` if the device is closed and `180` if the device is
8713
+ * laid out flat. `0` if the status is <Titanium.App.iOS.HINGE_STATUS_UNKNOWN>.
8714
+ */
8715
+ angle: number;
8716
+
8717
+ /**
8718
+ * The status of the hinge.
8719
+ */
8720
+ status: number;
8721
+ }
8402
8722
  /**
8403
8723
  * Fired after the user takes a screenshot, e.g. by pressing both the home and lock screen buttons.
8404
8724
  */
8405
8725
  interface iOS_screenshotcaptured_Event extends iOSBaseEvent {
8406
8726
  }
8727
+ /**
8728
+ * Fired when a new scene is being connected to the app.
8729
+ */
8730
+ interface iOS_scenewillconnect_Event extends iOSBaseEvent {
8731
+ /**
8732
+ * The scene proxy object for the new scene.
8733
+ */
8734
+ scene: Titanium.App.iOS.SceneProxy;
8735
+
8736
+ /**
8737
+ * The unique identifier of the scene.
8738
+ */
8739
+ sceneId: string;
8740
+ }
8741
+ /**
8742
+ * Fired when a scene is dismissed by the user or system.
8743
+ */
8744
+ interface iOS_scenediddismiss_Event extends iOSBaseEvent {
8745
+ /**
8746
+ * The unique identifier of the dismissed scene.
8747
+ */
8748
+ sceneId: string;
8749
+ }
8407
8750
  interface iOSEventMap extends ProxyEventMap {
8408
8751
  backgroundfetch: iOS_backgroundfetch_Event;
8409
8752
 
@@ -8417,12 +8760,18 @@ declare namespace Titanium {
8417
8760
 
8418
8761
  handleurl: iOS_handleurl_Event;
8419
8762
 
8763
+ hingechange: iOS_hingechange_Event;
8764
+
8420
8765
  localnotificationaction: iOS_localnotificationaction_Event;
8421
8766
 
8422
8767
  notification: iOS_notification_Event;
8423
8768
 
8424
8769
  remotenotificationaction: iOS_remotenotificationaction_Event;
8425
8770
 
8771
+ scenediddismiss: iOS_scenediddismiss_Event;
8772
+
8773
+ scenewillconnect: iOS_scenewillconnect_Event;
8774
+
8426
8775
  screenshotcaptured: iOS_screenshotcaptured_Event;
8427
8776
 
8428
8777
  sessioncompleted: iOS_sessioncompleted_Event;
@@ -8461,12 +8810,27 @@ declare namespace Titanium {
8461
8810
  */
8462
8811
  static bubbleParent: boolean;
8463
8812
 
8813
+ /**
8814
+ * The scene proxy for the current scene context.
8815
+ */
8816
+ static readonly currentScene: Titanium.App.iOS.SceneProxy;
8817
+
8464
8818
  /**
8465
8819
  * Notification types and user notification categories the application is registered to use.
8466
8820
  * @deprecated Use [Titanium.App.iOS.UserNotificationCenter.requestUserNotificationSettings](Titanium.App.iOS.UserNotificationCenter.requestUserNotificationSettings) instead.
8467
8821
  */
8468
8822
  static readonly currentUserNotificationSettings: UserNotificationSettings;
8469
8823
 
8824
+ /**
8825
+ * The scene proxy for the scene the user is currently interacting with.
8826
+ */
8827
+ static readonly focusedScene: Titanium.App.iOS.SceneProxy;
8828
+
8829
+ /**
8830
+ * An array of all active scene proxies.
8831
+ */
8832
+ static readonly scenes: Titanium.App.iOS.SceneProxy[];
8833
+
8470
8834
  /**
8471
8835
  * Provides an Array of the NSUserActivityTypes keys defined within your Titanium project.
8472
8836
  */
@@ -8508,6 +8872,11 @@ declare namespace Titanium {
8508
8872
  */
8509
8873
  static cancelLocalNotification(id: number | string): void;
8510
8874
 
8875
+ /**
8876
+ * Creates and returns an instance of <Titanium.App.iOS.SceneProxy>.
8877
+ */
8878
+ static createSceneProxy(parameters?: Dictionary<Titanium.App.iOS.SceneProxy>): Titanium.App.iOS.SceneProxy;
8879
+
8511
8880
  /**
8512
8881
  * Creates and returns an instance of Titanium.App.iOS.UserDefaults.
8513
8882
  */
@@ -8567,6 +8936,11 @@ declare namespace Titanium {
8567
8936
  */
8568
8937
  static removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void;
8569
8938
 
8939
+ /**
8940
+ * Request the system to open a new scene (window).
8941
+ */
8942
+ static requestScene(options?: Dictionary<RequestSceneOptions>): Promise<RequestSceneResult>;
8943
+
8570
8944
  /**
8571
8945
  * Schedule a local notification.
8572
8946
  */
@@ -9674,6 +10048,17 @@ declare namespace Titanium {
9674
10048
  * in-application SQLite database.
9675
10049
  */
9676
10050
  namespace Database {
10051
+ /**
10052
+ * Open flag for <Titanium.Database.open> requesting that the database file be created
10053
+ * if it does not already exist.
10054
+ */
10055
+ const CREATE_IF_NECESSARY: number;
10056
+
10057
+ /**
10058
+ * Open flag for <Titanium.Database.open> enabling SQLite write-ahead logging (WAL).
10059
+ */
10060
+ const ENABLE_WRITE_AHEAD_LOGGING: number;
10061
+
9677
10062
  /**
9678
10063
  * Constant for requesting a column's value returned in double form.
9679
10064
  */
@@ -9694,6 +10079,22 @@ declare namespace Titanium {
9694
10079
  */
9695
10080
  const FIELD_TYPE_STRING: number;
9696
10081
 
10082
+ /**
10083
+ * Open flag for <Titanium.Database.open> requesting that the database not be
10084
+ * rebuilt with the device's current locale collators.
10085
+ */
10086
+ const NO_LOCALIZED_COLLATORS: number;
10087
+
10088
+ /**
10089
+ * Open flag for <Titanium.Database.open> requesting read-only access.
10090
+ */
10091
+ const OPEN_READONLY: number;
10092
+
10093
+ /**
10094
+ * Open flag for <Titanium.Database.open> requesting read/write access.
10095
+ */
10096
+ const OPEN_READWRITE: number;
10097
+
9697
10098
  /**
9698
10099
  * The `Database` instance returned by <Titanium.Database.open> or <Titanium.Database.install>.
9699
10100
  */
@@ -10710,6 +11111,11 @@ declare namespace Titanium {
10710
11111
  */
10711
11112
  const AUDIO_STATE_WAITING_FOR_DATA: number;
10712
11113
 
11114
+ /**
11115
+ * Player is waiting for the audio queue to fill before starting.
11116
+ */
11117
+ const AUDIO_STATE_WAITING_FOR_QUEUE: number;
11118
+
10713
11119
  /**
10714
11120
  * Constant specifying that app is authorized to use camera. This is available on iOS 7 and later.
10715
11121
  */
@@ -12802,6 +13208,15 @@ declare namespace Titanium {
12802
13208
  */
12803
13209
  y: number;
12804
13210
  }
13211
+ /**
13212
+ * Fired when the video is loading/buffering.
13213
+ */
13214
+ interface VideoPlayer_buffer_Event extends VideoPlayerBaseEvent {
13215
+ /**
13216
+ * Percentage of the video that is buffered/loaded.
13217
+ */
13218
+ percentage: number;
13219
+ }
12805
13220
  /**
12806
13221
  * Fired when movie playback ends or a user exits playback.
12807
13222
  */
@@ -12920,6 +13335,8 @@ declare namespace Titanium {
12920
13335
  interface VideoPlayer_resize_Event extends VideoPlayerBaseEvent {
12921
13336
  }
12922
13337
  interface VideoPlayerEventMap extends ProxyEventMap {
13338
+ buffer: VideoPlayer_buffer_Event;
13339
+
12923
13340
  click: VideoPlayer_click_Event;
12924
13341
 
12925
13342
  complete: VideoPlayer_complete_Event;
@@ -17674,6 +18091,11 @@ declare namespace Titanium {
17674
18091
  callback: (this: Titanium.UI.Android.CollapseToolbar, event: CollapseToolbarEventMap[K]) => void,
17675
18092
  ): void;
17676
18093
 
18094
+ /**
18095
+ * Adds the specified callback as an event listener for the named event.
18096
+ */
18097
+ addEventListener(name: string, callback: (param0: Titanium.Event) => void): void;
18098
+
17677
18099
  /**
17678
18100
  * Animates this view.
17679
18101
  */
@@ -17694,6 +18116,11 @@ declare namespace Titanium {
17694
18116
  */
17695
18117
  fireEvent<K extends keyof CollapseToolbarEventMap>(name: K, event?: CollapseToolbarEventMap[K]): void;
17696
18118
 
18119
+ /**
18120
+ * Fires a synthesized event to any registered listeners.
18121
+ */
18122
+ fireEvent(name: string, event?: any): void;
18123
+
17697
18124
  /**
17698
18125
  * Returns the matching view of a given view ID.
17699
18126
  */
@@ -17727,6 +18154,11 @@ declare namespace Titanium {
17727
18154
  callback: (this: Titanium.UI.Android.CollapseToolbar, event: CollapseToolbarEventMap[K]) => void,
17728
18155
  ): void;
17729
18156
 
18157
+ /**
18158
+ * Removes the specified callback as an event listener for the named event.
18159
+ */
18160
+ removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void;
18161
+
17730
18162
  /**
17731
18163
  * Replaces a view at the specified position in the [children](Titanium.UI.View.children) array.
17732
18164
  */
@@ -21960,6 +22392,36 @@ declare namespace Titanium {
21960
22392
  */
21961
22393
  const AUDIOVISUAL_MEDIA_TYPE_VIDEO: number;
21962
22394
 
22395
+ /**
22396
+ * The system decides if the item is shown in a horizontal or vertical bar.
22397
+ */
22398
+ const BAR_BUTTON_AXIS_BEHAVIOR_AUTOMATIC: number;
22399
+
22400
+ /**
22401
+ * The item is only shown in horizontal bars.
22402
+ */
22403
+ const BAR_BUTTON_AXIS_BEHAVIOR_HORIZONTAL_ONLY: number;
22404
+
22405
+ /**
22406
+ * The item prefers to be shown in a vertical bar.
22407
+ */
22408
+ const BAR_BUTTON_AXIS_BEHAVIOR_VERTICAL_PREFERRED: number;
22409
+
22410
+ /**
22411
+ * The item stays visible as long as possible when the bar runs out of space.
22412
+ */
22413
+ const BAR_BUTTON_VISIBILITY_PRIORITY_HIGH: number;
22414
+
22415
+ /**
22416
+ * The item is moved into the overflow menu first when the bar runs out of space.
22417
+ */
22418
+ const BAR_BUTTON_VISIBILITY_PRIORITY_LOW: number;
22419
+
22420
+ /**
22421
+ * The default priority of a bar item.
22422
+ */
22423
+ const BAR_BUTTON_VISIBILITY_PRIORITY_STANDARD: number;
22424
+
21963
22425
  /**
21964
22426
  * Use with [BlurView.effect](Titanium.UI.iOS.BlurView.effect) to specify a blur effect.
21965
22427
  */
@@ -22598,6 +23060,46 @@ declare namespace Titanium {
22598
23060
  */
22599
23061
  const SHORTCUT_ICON_TYPE_UPDATE: number;
22600
23062
 
23063
+ /**
23064
+ * Let the system choose the display mode of a split window that fits the available width.
23065
+ */
23066
+ const SPLIT_WINDOW_DISPLAY_MODE_AUTOMATIC: number;
23067
+
23068
+ /**
23069
+ * Show the master view of a split window next to the detail view.
23070
+ */
23071
+ const SPLIT_WINDOW_DISPLAY_MODE_ONE_BESIDE_SECONDARY: number;
23072
+
23073
+ /**
23074
+ * Show the master view of a split window as an overlay on top of the detail view.
23075
+ */
23076
+ const SPLIT_WINDOW_DISPLAY_MODE_ONE_OVER_SECONDARY: number;
23077
+
23078
+ /**
23079
+ * Show only the detail view of a split window and hide the master view.
23080
+ */
23081
+ const SPLIT_WINDOW_DISPLAY_MODE_SECONDARY_ONLY: number;
23082
+
23083
+ /**
23084
+ * Let the system choose how the master view and the detail view of a split window share the width.
23085
+ */
23086
+ const SPLIT_WINDOW_SPLIT_BEHAVIOR_AUTOMATIC: number;
23087
+
23088
+ /**
23089
+ * Show the master view of a split window next to the detail view, which keeps its width and moves aside.
23090
+ */
23091
+ const SPLIT_WINDOW_SPLIT_BEHAVIOR_DISPLACE: number;
23092
+
23093
+ /**
23094
+ * Show the master view of a split window on top of the detail view, which keeps its full width.
23095
+ */
23096
+ const SPLIT_WINDOW_SPLIT_BEHAVIOR_OVERLAY: number;
23097
+
23098
+ /**
23099
+ * Show the master view and the detail view of a split window side by side without overlap.
23100
+ */
23101
+ const SPLIT_WINDOW_SPLIT_BEHAVIOR_TILE: number;
23102
+
22601
23103
  /**
22602
23104
  * String that represents the magnifying glass on the table view index bar
22603
23105
  */
@@ -22623,6 +23125,31 @@ declare namespace Titanium {
22623
23125
  */
22624
23126
  const TAB_GROUP_MINIMIZE_BEHAVIOR_ON_SCROLL_UP: number;
22625
23127
 
23128
+ /**
23129
+ * The system decides if a vertical bar is used.
23130
+ */
23131
+ const VERTICAL_BAR_BEHAVIOR_AUTOMATIC: number;
23132
+
23133
+ /**
23134
+ * The vertical bar is disabled.
23135
+ */
23136
+ const VERTICAL_BAR_BEHAVIOR_DISABLED: number;
23137
+
23138
+ /**
23139
+ * The system decides if the bar items or the tab bar compress first.
23140
+ */
23141
+ const VERTICAL_BAR_COMPRESSION_BEHAVIOR_AUTOMATIC: number;
23142
+
23143
+ /**
23144
+ * The bar items compress before the tab bar does.
23145
+ */
23146
+ const VERTICAL_BAR_COMPRESSION_BEHAVIOR_PREFERS_BAR_ITEMS: number;
23147
+
23148
+ /**
23149
+ * The tab bar compresses before the bar items do.
23150
+ */
23151
+ const VERTICAL_BAR_COMPRESSION_BEHAVIOR_PREFERS_TAB_BAR: number;
23152
+
22626
23153
  /**
22627
23154
  * A set of constants for the style that can be used for the `style` property of
22628
23155
  * <Titanium.UI.AlertDialog>.
@@ -26951,6 +27478,34 @@ declare namespace Titanium {
26951
27478
  */
26952
27479
  interface SplitWindow_open_Event extends SplitWindowBaseEvent {
26953
27480
  }
27481
+ /**
27482
+ * Fired when the reserved regions of the window change, e.g. when the device is folded.
27483
+ */
27484
+ interface SplitWindow_reservedregionschange_Event extends SplitWindowBaseEvent {
27485
+ /**
27486
+ * The current reserved regions of the window, as returned by [reservedRegions](Titanium.UI.Window.reservedRegions).
27487
+ */
27488
+ regions: ReservedRegion[];
27489
+ }
27490
+ /**
27491
+ * Fired before the split window changes its display mode, for example when the master view is shown or hidden.
27492
+ */
27493
+ interface SplitWindow_displaymodechange_Event extends SplitWindowBaseEvent {
27494
+ /**
27495
+ * The new display mode.
27496
+ */
27497
+ displayMode: number;
27498
+ }
27499
+ /**
27500
+ * Fired when the split window collapses to a single column, for example when the width becomes compact.
27501
+ */
27502
+ interface SplitWindow_collapse_Event extends SplitWindowBaseEvent {
27503
+ }
27504
+ /**
27505
+ * Fired when the split window expands from a single column to two columns.
27506
+ */
27507
+ interface SplitWindow_expand_Event extends SplitWindowBaseEvent {
27508
+ }
26954
27509
  interface SplitWindowEventMap extends ProxyEventMap {
26955
27510
  blur: SplitWindow_blur_Event;
26956
27511
 
@@ -26958,10 +27513,16 @@ declare namespace Titanium {
26958
27513
 
26959
27514
  close: SplitWindow_close_Event;
26960
27515
 
27516
+ collapse: SplitWindow_collapse_Event;
27517
+
26961
27518
  dblclick: SplitWindow_dblclick_Event;
26962
27519
 
27520
+ displaymodechange: SplitWindow_displaymodechange_Event;
27521
+
26963
27522
  doubletap: SplitWindow_doubletap_Event;
26964
27523
 
27524
+ expand: SplitWindow_expand_Event;
27525
+
26965
27526
  focus: SplitWindow_focus_Event;
26966
27527
 
26967
27528
  keypressed: SplitWindow_keypressed_Event;
@@ -26974,6 +27535,8 @@ declare namespace Titanium {
26974
27535
 
26975
27536
  postlayout: SplitWindow_postlayout_Event;
26976
27537
 
27538
+ reservedregionschange: SplitWindow_reservedregionschange_Event;
27539
+
26977
27540
  rotate: SplitWindow_rotate_Event;
26978
27541
 
26979
27542
  singletap: SplitWindow_singletap_Event;
@@ -27000,13 +27563,22 @@ declare namespace Titanium {
27000
27563
  */
27001
27564
  detailView: Titanium.UI.Window;
27002
27565
 
27566
+ /**
27567
+ * The arrangement of the master view and the detail view.
27568
+ */
27569
+ displayMode: number;
27570
+
27003
27571
  /**
27004
27572
  * Determines the width of the `masterView` in landscape mode.
27573
+ * @deprecated The layout is owned by the system and this property has no effect. Use
27574
+ * <Titanium.UI.iOS.SplitWindow.primaryColumnWidthFraction>.
27005
27575
  */
27006
27576
  landscapeSplit: number;
27007
27577
 
27008
27578
  /**
27009
27579
  * Determines whether to show the master view is overlayed in portrait orientation.
27580
+ * @deprecated The layout is owned by the system and this property has no effect. Use
27581
+ * <Titanium.UI.iOS.SplitWindow.splitBehavior> with <Titanium.UI.iOS.SPLIT_WINDOW_SPLIT_BEHAVIOR_OVERLAY>.
27010
27582
  */
27011
27583
  masterIsOverlayed: boolean;
27012
27584
 
@@ -27017,19 +27589,51 @@ declare namespace Titanium {
27017
27589
 
27018
27590
  /**
27019
27591
  * Determines whether to show the master view or hide.
27592
+ * @deprecated The layout is owned by the system and this property has no effect. Use
27593
+ * <Titanium.UI.iOS.SplitWindow.showMasterView> and <Titanium.UI.iOS.SplitWindow.hideMasterView>.
27020
27594
  */
27021
27595
  masterViewVisible: boolean;
27022
27596
 
27597
+ /**
27598
+ * The maximum width of the master view in points.
27599
+ */
27600
+ maximumPrimaryColumnWidth: number;
27601
+
27602
+ /**
27603
+ * The minimum width of the master view in points.
27604
+ */
27605
+ minimumPrimaryColumnWidth: number;
27606
+
27023
27607
  /**
27024
27608
  * Determines the width of the `masterView` in portrait mode.
27609
+ * @deprecated The layout is owned by the system and this property has no effect. Use
27610
+ * <Titanium.UI.iOS.SplitWindow.primaryColumnWidthFraction>.
27025
27611
  */
27026
27612
  portraitSplit: number;
27027
27613
 
27614
+ /**
27615
+ * Determines whether a swipe from the leading edge shows the hidden master view.
27616
+ */
27617
+ presentsWithGesture: boolean;
27618
+
27619
+ /**
27620
+ * The width of the master view as a fraction of the width of the split window.
27621
+ */
27622
+ primaryColumnWidthFraction: number;
27623
+
27028
27624
  /**
27029
27625
  * Determines whether to show the master view in portrait orientation.
27626
+ * @deprecated The layout is owned by the system and this property has no effect. Use
27627
+ * <Titanium.UI.iOS.SplitWindow.displayMode> with <Titanium.UI.iOS.SPLIT_WINDOW_DISPLAY_MODE_ONE_BESIDE_SECONDARY>
27628
+ * to always show the master view.
27030
27629
  */
27031
27630
  showMasterInPortrait: boolean;
27032
27631
 
27632
+ /**
27633
+ * How the master view and the detail view share the width when both are visible.
27634
+ */
27635
+ splitBehavior: number;
27636
+
27033
27637
  /**
27034
27638
  * Boolean value indicating if the user should be able to close a window using a swipe gesture.
27035
27639
  */
@@ -27064,6 +27668,11 @@ declare namespace Titanium {
27064
27668
  */
27065
27669
  fireEvent(name: string, event?: any): void;
27066
27670
 
27671
+ /**
27672
+ * Hides the master view if the current display mode shows it.
27673
+ */
27674
+ hideMasterView(): void;
27675
+
27067
27676
  /**
27068
27677
  * Removes the specified callback as an event listener for the named event.
27069
27678
  */
@@ -27079,11 +27688,13 @@ declare namespace Titanium {
27079
27688
 
27080
27689
  /**
27081
27690
  * Sets the value of the [masterIsOverlayed](Titanium.UI.iOS.SplitWindow.masterIsOverlayed) property.
27691
+ * @deprecated The layout is owned by the system. Use <Titanium.UI.iOS.SplitWindow.splitBehavior> instead.
27082
27692
  */
27083
27693
  setMasterIsOverlayed(masterIsOverlayed: boolean, options?: AnimatedOptions): void;
27084
27694
 
27085
27695
  /**
27086
27696
  * Sets the value of the [showMasterInPortrait](Titanium.UI.iOS.SplitWindow.showMasterInPortrait) property.
27697
+ * @deprecated The layout is owned by the system. Use <Titanium.UI.iOS.SplitWindow.displayMode> instead.
27087
27698
  */
27088
27699
  setShowMasterInPortrait(showMasterInPortrait: boolean, options?: AnimatedOptions): void;
27089
27700
 
@@ -27091,6 +27702,11 @@ declare namespace Titanium {
27091
27702
  * Sets the array of items to show in the window's toolbar.
27092
27703
  */
27093
27704
  setToolbar: never;
27705
+
27706
+ /**
27707
+ * Shows the master view if the current display mode hides it.
27708
+ */
27709
+ showMasterView(): void;
27094
27710
  }
27095
27711
  /**
27096
27712
  * Base event for class Titanium.UI.iOS.Stepper
@@ -30922,6 +31538,11 @@ declare namespace Titanium {
30922
31538
  */
30923
31539
  width: never;
30924
31540
 
31541
+ /**
31542
+ * The window to present the alert in, for scene-aware display.
31543
+ */
31544
+ window: Titanium.UI.Window;
31545
+
30925
31546
  /**
30926
31547
  * Z-index stack order position, relative to other sibling views.
30927
31548
  */
@@ -31090,7 +31711,7 @@ declare namespace Titanium {
31090
31711
  static fireEvent(name: string, event?: any): void;
31091
31712
 
31092
31713
  /**
31093
- * Returns a <Ti.Color> instance for a color defined by the system or user resources (colors.xml)
31714
+ * Returns a <Titanium.UI.Color> instance for a color defined by the system or user resources (colors.xml)
31094
31715
  */
31095
31716
  static getColorResource(resourceIdOrColorName: number | string): Titanium.UI.Color;
31096
31717
 
@@ -31246,6 +31867,11 @@ declare namespace Titanium {
31246
31867
  */
31247
31868
  right: number;
31248
31869
 
31870
+ /**
31871
+ * Clockwise 2D rotation of the view in degrees at the end of the animation.
31872
+ */
31873
+ rotation: number;
31874
+
31249
31875
  /**
31250
31876
  * Value of the `rotationX` property at the end of the animation.
31251
31877
  */
@@ -31965,6 +32591,11 @@ declare namespace Titanium {
31965
32591
  */
31966
32592
  attributedString: Titanium.UI.AttributedString;
31967
32593
 
32594
+ /**
32595
+ * Whether the button prefers to be shown in a horizontal or a vertical bar.
32596
+ */
32597
+ axisBehavior: number;
32598
+
31968
32599
  /**
31969
32600
  * Background image for the button in its disabled state, specified as a local file path
31970
32601
  * or URL.
@@ -32094,6 +32725,11 @@ declare namespace Titanium {
32094
32725
  */
32095
32726
  verticalAlign: number | string;
32096
32727
 
32728
+ /**
32729
+ * Defines which buttons are moved into the overflow menu first when a bar runs out of space.
32730
+ */
32731
+ visibilityPriority: number;
32732
+
32097
32733
  /**
32098
32734
  * Adds a child to this view's hierarchy.
32099
32735
  */
@@ -36291,6 +36927,11 @@ declare namespace Titanium {
36291
36927
  */
36292
36928
  lines: number;
36293
36929
 
36930
+ /**
36931
+ * Color of the link inside a label, as a color name or hex triplet.
36932
+ */
36933
+ linkColor: string | Titanium.UI.Color;
36934
+
36294
36935
  /**
36295
36936
  * Makes the label at most this many lines tall.
36296
36937
  */
@@ -36301,6 +36942,11 @@ declare namespace Titanium {
36301
36942
  */
36302
36943
  minimumFontSize: number;
36303
36944
 
36945
+ /**
36946
+ * Padding between the label's edges and its text.
36947
+ */
36948
+ padding: Padding;
36949
+
36304
36950
  /**
36305
36951
  * Shadow color of the [text](Titanium.UI.Label.text), as a color name or hex triplet.
36306
36952
  */
@@ -37259,6 +37905,35 @@ declare namespace Titanium {
37259
37905
  */
37260
37906
  sectionIndex: number;
37261
37907
  }
37908
+ /**
37909
+ * Fired when a list row is pressed and held by the user.
37910
+ */
37911
+ interface ListView_itemlongpress_Event extends ListViewBaseEvent {
37912
+ /**
37913
+ * The bind ID of the control that was pressed, if one exists.
37914
+ */
37915
+ bindId: string;
37916
+
37917
+ /**
37918
+ * The item ID bound to the list item that generated the event.
37919
+ */
37920
+ itemId: string;
37921
+
37922
+ /**
37923
+ * Item index.
37924
+ */
37925
+ itemIndex: number;
37926
+
37927
+ /**
37928
+ * List section if the item is contained in a list section.
37929
+ */
37930
+ section: Titanium.UI.ListSection;
37931
+
37932
+ /**
37933
+ * Section index.
37934
+ */
37935
+ sectionIndex: number;
37936
+ }
37262
37937
  /**
37263
37938
  * Fired when user stops two-pan gesture interaction for selecting multiple items.
37264
37939
  * It is used with <Titanium.UI.ListView.allowsMultipleSelectionInteraction>.
@@ -37670,6 +38345,8 @@ declare namespace Titanium {
37670
38345
 
37671
38346
  itemclick: ListView_itemclick_Event;
37672
38347
 
38348
+ itemlongpress: ListView_itemlongpress_Event;
38349
+
37673
38350
  itemsselected: ListView_itemsselected_Event;
37674
38351
 
37675
38352
  keypressed: ListView_keypressed_Event;
@@ -37987,6 +38664,11 @@ declare namespace Titanium {
37987
38664
  */
37988
38665
  showVerticalScrollIndicator: boolean;
37989
38666
 
38667
+ /**
38668
+ * Determines whether items snap into place when scrolling stops.
38669
+ */
38670
+ snapping: boolean;
38671
+
37990
38672
  /**
37991
38673
  * Style of the list view.
37992
38674
  */
@@ -39564,6 +40246,15 @@ declare namespace Titanium {
39564
40246
  */
39565
40247
  interface NavigationWindow_open_Event extends NavigationWindowBaseEvent {
39566
40248
  }
40249
+ /**
40250
+ * Fired when the reserved regions of the window change, e.g. when the device is folded.
40251
+ */
40252
+ interface NavigationWindow_reservedregionschange_Event extends NavigationWindowBaseEvent {
40253
+ /**
40254
+ * The current reserved regions of the window, as returned by [reservedRegions](Titanium.UI.Window.reservedRegions).
40255
+ */
40256
+ regions: ReservedRegion[];
40257
+ }
39567
40258
  interface NavigationWindowEventMap extends ProxyEventMap {
39568
40259
  androidback: NavigationWindow_androidback_Event;
39569
40260
 
@@ -39601,6 +40292,8 @@ declare namespace Titanium {
39601
40292
 
39602
40293
  postlayout: NavigationWindow_postlayout_Event;
39603
40294
 
40295
+ reservedregionschange: NavigationWindow_reservedregionschange_Event;
40296
+
39604
40297
  rotate: NavigationWindow_rotate_Event;
39605
40298
 
39606
40299
  singletap: NavigationWindow_singletap_Event;
@@ -41459,7 +42152,7 @@ declare namespace Titanium {
41459
42152
  /**
41460
42153
  * Shows this dialog.
41461
42154
  */
41462
- show(params?: showParams): void;
42155
+ show(params?: OptionDialogShowParams): void;
41463
42156
 
41464
42157
  /**
41465
42158
  * Returns an image of the rendered view, as a Blob.
@@ -45647,12 +46340,12 @@ declare namespace Titanium {
45647
46340
  /**
45648
46341
  * Moves the end of the scrollable region into the viewable area.
45649
46342
  */
45650
- scrollToBottom(): void;
46343
+ scrollToBottom(options?: AnimatedOptions): void;
45651
46344
 
45652
46345
  /**
45653
46346
  * Moves the top of the scrollable region into the viewable area.
45654
46347
  */
45655
- scrollToTop(): void;
46348
+ scrollToTop(options?: AnimatedOptions): void;
45656
46349
 
45657
46350
  /**
45658
46351
  * Sets the value of the [contentOffset](Titanium.UI.ScrollView.contentOffset) property.
@@ -46201,7 +46894,7 @@ declare namespace Titanium {
46201
46894
  /**
46202
46895
  * The padding applied to the scrollable view.
46203
46896
  */
46204
- padding: Padding;
46897
+ padding: ScrollablePadding;
46205
46898
 
46206
46899
  /**
46207
46900
  * Color of the paging control, as a color name or hex triplet.
@@ -50468,6 +51161,15 @@ declare namespace Titanium {
50468
51161
  */
50469
51162
  interface TabGroup_open_Event extends TabGroupBaseEvent {
50470
51163
  }
51164
+ /**
51165
+ * Fired when the reserved regions of the window change, e.g. when the device is folded.
51166
+ */
51167
+ interface TabGroup_reservedregionschange_Event extends TabGroupBaseEvent {
51168
+ /**
51169
+ * The current reserved regions of the window, as returned by [reservedRegions](Titanium.UI.Window.reservedRegions).
51170
+ */
51171
+ regions: ReservedRegion[];
51172
+ }
50471
51173
  interface TabGroupEventMap extends ProxyEventMap {
50472
51174
  androidback: TabGroup_androidback_Event;
50473
51175
 
@@ -50505,6 +51207,8 @@ declare namespace Titanium {
50505
51207
 
50506
51208
  postlayout: TabGroup_postlayout_Event;
50507
51209
 
51210
+ reservedregionschange: TabGroup_reservedregionschange_Event;
51211
+
50508
51212
  rotate: TabGroup_rotate_Event;
50509
51213
 
50510
51214
  singletap: TabGroup_singletap_Event;
@@ -50748,6 +51452,11 @@ declare namespace Titanium {
50748
51452
  */
50749
51453
  layout: never;
50750
51454
 
51455
+ /**
51456
+ * Lazily opens each tab's root window only when that tab becomes active/selected.
51457
+ */
51458
+ lazyLoadingEnabled: boolean;
51459
+
50751
51460
  /**
50752
51461
  * Window's left position, in platform-specific units.
50753
51462
  */
@@ -50758,6 +51467,11 @@ declare namespace Titanium {
50758
51467
  */
50759
51468
  minimizeBehavior: number;
50760
51469
 
51470
+ /**
51471
+ * Hides the action bar (`true`) or shows the action bar (`false`).
51472
+ */
51473
+ navBarHidden: boolean;
51474
+
50761
51475
  /**
50762
51476
  * The tintColor to apply to the navigation bar (typically for the **More** tab).
50763
51477
  */
@@ -52796,6 +53510,11 @@ declare namespace Titanium {
52796
53510
  */
52797
53511
  searchHidden: boolean;
52798
53512
 
53513
+ /**
53514
+ * The string to use as the search parameter.
53515
+ */
53516
+ searchText: string;
53517
+
52799
53518
  /**
52800
53519
  * Number of sections in this table view.
52801
53520
  */
@@ -52842,6 +53561,11 @@ declare namespace Titanium {
52842
53561
  */
52843
53562
  showVerticalScrollIndicator: boolean;
52844
53563
 
53564
+ /**
53565
+ * Determines whether rows snap into place when scrolling stops.
53566
+ */
53567
+ snapping: boolean;
53568
+
52845
53569
  /**
52846
53570
  * Style of the table view, specified using one of the constants from
52847
53571
  * <Titanium.UI.iOS.TableViewStyle>.
@@ -56200,6 +56924,11 @@ declare namespace Titanium {
56200
56924
  */
56201
56925
  extendBackground: boolean;
56202
56926
 
56927
+ /**
56928
+ * If `true`, each toolbar item is rendered in its own separate visual container.
56929
+ */
56930
+ hideSharedBackground: boolean;
56931
+
56203
56932
  /**
56204
56933
  * An array of buttons (or other widgets) contained in the toolbar.
56205
56934
  */
@@ -57069,6 +57798,11 @@ declare namespace Titanium {
57069
57798
  */
57070
57799
  borderColor: string | Titanium.UI.Color;
57071
57800
 
57801
+ /**
57802
+ * Dash pattern of the view's border, as alternating dash and gap lengths.
57803
+ */
57804
+ borderDashPattern: number[];
57805
+
57072
57806
  /**
57073
57807
  * Radius for the rounded corners of the view's border.
57074
57808
  */
@@ -58539,6 +59273,11 @@ declare namespace Titanium {
58539
59273
  */
58540
59274
  goForward(): void;
58541
59275
 
59276
+ /**
59277
+ * Injects the Titanium event bindings from bindings.js code into an external webpage.
59278
+ */
59279
+ injectEventBindings(): void;
59280
+
58542
59281
  /**
58543
59282
  * Pauses native webview plugins.
58544
59283
  */
@@ -59210,6 +59949,15 @@ declare namespace Titanium {
59210
59949
  */
59211
59950
  interface Window_open_Event extends WindowBaseEvent {
59212
59951
  }
59952
+ /**
59953
+ * Fired when the reserved regions of the window change, e.g. when the device is folded.
59954
+ */
59955
+ interface Window_reservedregionschange_Event extends WindowBaseEvent {
59956
+ /**
59957
+ * The current reserved regions of the window, as returned by [reservedRegions](Titanium.UI.Window.reservedRegions).
59958
+ */
59959
+ regions: ReservedRegion[];
59960
+ }
59213
59961
  interface WindowEventMap extends ProxyEventMap {
59214
59962
  androidback: Window_androidback_Event;
59215
59963
 
@@ -59247,6 +59995,8 @@ declare namespace Titanium {
59247
59995
 
59248
59996
  postlayout: Window_postlayout_Event;
59249
59997
 
59998
+ reservedregionschange: Window_reservedregionschange_Event;
59999
+
59250
60000
  rotate: Window_rotate_Event;
59251
60001
 
59252
60002
  singletap: Window_singletap_Event;
@@ -59496,6 +60246,11 @@ declare namespace Titanium {
59496
60246
  */
59497
60247
  orientationModes: number[];
59498
60248
 
60249
+ /**
60250
+ * The regions of the window that are reserved by the system, e.g. by the fold or the inner camera of the iPhone Duo.
60251
+ */
60252
+ readonly reservedRegions: ReservedRegion[];
60253
+
59499
60254
  /**
59500
60255
  * Window's right position, in platform-specific units.
59501
60256
  */
@@ -59516,6 +60271,11 @@ declare namespace Titanium {
59516
60271
  */
59517
60272
  readonly safeAreaPadding: Padding;
59518
60273
 
60274
+ /**
60275
+ * The scene proxy associated with this window.
60276
+ */
60277
+ readonly scene: Titanium.App.iOS.SceneProxy;
60278
+
59519
60279
  /**
59520
60280
  * Shadow image for the navigation bar, specified as a URL to a local image..
59521
60281
  */
@@ -59618,6 +60378,16 @@ declare namespace Titanium {
59618
60378
  */
59619
60379
  uiFlags: number;
59620
60380
 
60381
+ /**
60382
+ * Whether the system may lay out the bars of this window vertically.
60383
+ */
60384
+ verticalBarBehavior: number;
60385
+
60386
+ /**
60387
+ * Defines whether the bar items or the tab bar compress first when the vertical bar runs out of space.
60388
+ */
60389
+ verticalBarCompressionBehavior: number;
60390
+
59621
60391
  /**
59622
60392
  * Additional flags to set on the Activity Window.
59623
60393
  */
@@ -61131,6 +61901,11 @@ declare namespace Titanium {
61131
61901
  */
61132
61902
  static readonly rootActivity: Titanium.Android.Activity;
61133
61903
 
61904
+ /**
61905
+ * Android SDK version number (e.g. returns 35 for Android 15).
61906
+ */
61907
+ static readonly sdkVersion: number;
61908
+
61134
61909
  /**
61135
61910
  * Adds the specified callback as an event listener for the named event.
61136
61911
  */
@@ -62375,7 +63150,7 @@ declare namespace Titanium {
62375
63150
  /**
62376
63151
  * Opens an SQLite database.
62377
63152
  */
62378
- static open(dbName: string): Titanium.Database.DB;
63153
+ static open(dbName: string, flags?: number): Titanium.Database.DB;
62379
63154
 
62380
63155
  /**
62381
63156
  * Removes the specified callback as an event listener for the named event.
@@ -62789,7 +63564,7 @@ declare namespace Titanium {
62789
63564
  static getCurrentHeading(callback?: (param0: HeadingResponse) => void): Promise<HeadingResponse>;
62790
63565
 
62791
63566
  /**
62792
- * Retrieves the last known location from the device.
63567
+ * Retrieves the current location from the device.
62793
63568
  */
62794
63569
  static getCurrentPosition(callback?: (param0: LocationResults) => void): Promise<LocationResults>;
62795
63570
 
@@ -64256,7 +65031,7 @@ declare namespace Titanium {
64256
65031
  sourceStream: Titanium.IOStream,
64257
65032
  buffer?: Titanium.Buffer,
64258
65033
  resultsCallback?: (param0: ReadCallbackArgs) => void,
64259
- ): Titanium.Buffer | undefined;
65034
+ ): Titanium.Buffer;
64260
65035
 
64261
65036
  /**
64262
65037
  * Removes the specified callback as an event listener for the named event.
@@ -65593,7 +66368,7 @@ interface daysOfTheWeekDictionary {
65593
66368
  week?: number;
65594
66369
  }
65595
66370
  /**
65596
- * Dictionary of options for the <Titanium.UI.TabGroup.disableTabOptions> method.
66371
+ * Dictionary of options for the <Titanium.UI.TabGroup.disableTabNavigation> method.
65597
66372
  */
65598
66373
  interface disableTabOptions {
65599
66374
  /**
@@ -65807,45 +66582,6 @@ interface showContactsParams {
65807
66582
  */
65808
66583
  selectedProperty?: (param0: any) => void;
65809
66584
  }
65810
- /**
65811
- * Dictionary of options for the <Titanium.UI.OptionDialog.show> method.
65812
- */
65813
- interface showParams {
65814
- /**
65815
- * Determines whether to animate the dialog as it is shown.
65816
- */
65817
- animated?: boolean;
65818
-
65819
- /**
65820
- * Array of String instances.
65821
- */
65822
- buttonNames?: string[];
65823
-
65824
- /**
65825
- * String to be used as a message for the dialog.
65826
- */
65827
- message?: string;
65828
-
65829
- /**
65830
- * Array of String instances.
65831
- */
65832
- options?: string[];
65833
-
65834
- /**
65835
- * Positions the arrow of the option dialog relative to the attached view's dimensions.
65836
- */
65837
- rect?: Dimension;
65838
-
65839
- /**
65840
- * String to be used as title for the dialog.
65841
- */
65842
- title?: string;
65843
-
65844
- /**
65845
- * View to which to attach the dialog.
65846
- */
65847
- view?: Titanium.UI.View;
65848
- }
65849
66585
  /**
65850
66586
  * Dictionary object of parameters for the <Titanium.UI.TextArea.selected> event and <Titanium.UI.TextArea.selection> property that describes
65851
66587
  * position and length of the selected text.