diff --git a/apidoc/Titanium/Accelerometer/Accelerometer.yml b/apidoc/Titanium/Accelerometer/Accelerometer.yml index 06f0cb552a8..904e03ac676 100644 --- a/apidoc/Titanium/Accelerometer/Accelerometer.yml +++ b/apidoc/Titanium/Accelerometer/Accelerometer.yml @@ -24,16 +24,19 @@ events: summary: | Reference timestamp since the previous change. This is not a valid timestamp and should simply be used to determine the number of milliseconds between events. - + type: Number - name: y summary: Current `y` axis of the device. + type: Number - name: x summary: Current `x` axis of the device. + type: Number - name: z summary: Current `z` axis of the device. + type: Number examples: - title: Basic Accelerometer Event diff --git a/apidoc/Titanium/Android/QuickSettingsService.yml b/apidoc/Titanium/Android/QuickSettingsService.yml index a03aaa4cd84..043d8c44f3c 100644 --- a/apidoc/Titanium/Android/QuickSettingsService.yml +++ b/apidoc/Titanium/Android/QuickSettingsService.yml @@ -144,6 +144,7 @@ events: properties: - name: itemIndex summary: Index of the selected item from the single choice menu in the dialog. + type: Number - name: tiledialogcancelled summary: Dispatched when the alert dialog has been cancelled. diff --git a/apidoc/Titanium/Android/Service.yml b/apidoc/Titanium/Android/Service.yml index 2e73500bb6b..a3491ea0e82 100644 --- a/apidoc/Titanium/Android/Service.yml +++ b/apidoc/Titanium/Android/Service.yml @@ -273,6 +273,7 @@ events: For example, if you have an interval-based Service running every 10 seconds, iteration 3 would occur at about 30 seconds after you start the instance (assuming your service code runs quickly). + type: Number - name: resume summary: | @@ -289,6 +290,7 @@ events: For example, if you have an interval-based Service running every 10 seconds, iteration 3 would occur at about 30 seconds after you start the instance (assuming your service code runs quickly). + type: Number - name: start summary: Fired when the bound service instance starts. diff --git a/apidoc/Titanium/Media/AudioPlayer.yml b/apidoc/Titanium/Media/AudioPlayer.yml index 3b4360dccf3..ff14f7b17eb 100644 --- a/apidoc/Titanium/Media/AudioPlayer.yml +++ b/apidoc/Titanium/Media/AudioPlayer.yml @@ -217,6 +217,7 @@ events: constants: Titanium.Media.AUDIO_STATE_* - name: description summary: Text description of the state of playback. + type: Number - name: complete summary: Fired when the audio has finished playing. @@ -271,6 +272,7 @@ events: properties: - name: progress summary: Current progress, in milliseconds. + type: Number - name: seek summary: Fired once the [seekToTime](Titanium.Media.AudioPlayer.seek) method completes. @@ -282,6 +284,8 @@ events: If the new request completes without being interrupted by another seek request or by any other operation this event will be invoked with the `finished` parameter set to `true`. + type: Boolean + platforms: [iphone, ipad] properties: - name: STATE_BUFFERING summary: Audio data is being buffered from the network. diff --git a/apidoc/Titanium/Media/Sound.yml b/apidoc/Titanium/Media/Sound.yml index 9c1a1fa0ba3..d4b84d836e9 100644 --- a/apidoc/Titanium/Media/Sound.yml +++ b/apidoc/Titanium/Media/Sound.yml @@ -94,6 +94,7 @@ events: constants: Titanium.Media.Sound.STATE_* - name: description summary: Text description of the state of playback. + type: String - name: complete summary: Fired when the audio has finished playing. diff --git a/apidoc/Titanium/Network/BonjourBrowser.yml b/apidoc/Titanium/Network/BonjourBrowser.yml index 2147de2b487..14f8a2cab1a 100644 --- a/apidoc/Titanium/Network/BonjourBrowser.yml +++ b/apidoc/Titanium/Network/BonjourBrowser.yml @@ -29,6 +29,7 @@ events: properties: - name: services summary: An array of BonjourService objects corresponding to currently available services. If you cache this value, including using it as table data, be aware that it could become out of date at any time due to the asynchronous nature of Bonjour service discovery. + type: Array since: '3.0.0' properties: diff --git a/apidoc/Titanium/Network/TCPSocket.yml b/apidoc/Titanium/Network/TCPSocket.yml index 0db5c6abcba..15f930c3b73 100644 --- a/apidoc/Titanium/Network/TCPSocket.yml +++ b/apidoc/Titanium/Network/TCPSocket.yml @@ -33,8 +33,10 @@ events: properties: - name: from summary: the reference for the socket that data was retrieved from + type: Number - name: data summary: a blob representing the data read, can be interpreted via toString + type: Titanium.Blob - name: readError summary: an error occured when reading properties: diff --git a/apidoc/Titanium/UI/ImageView.yml b/apidoc/Titanium/UI/ImageView.yml index 40bc38524be..47fdf7ecd76 100644 --- a/apidoc/Titanium/UI/ImageView.yml +++ b/apidoc/Titanium/UI/ImageView.yml @@ -79,6 +79,7 @@ events: properties: - name: index summary: Index of the image frame being displayed. + type: Number - name: load summary: | @@ -121,6 +122,8 @@ events: - name: image summary: URL of the image that failed to load. + type: String + optional: true - name: pause summary: Fired when the animation pauses. diff --git a/apidoc/Titanium/UI/Slider.yml b/apidoc/Titanium/UI/Slider.yml index 937e505296f..6a65082f9d6 100644 --- a/apidoc/Titanium/UI/Slider.yml +++ b/apidoc/Titanium/UI/Slider.yml @@ -126,6 +126,7 @@ events: summary: | Dictionary with properties `width` and `height` of the size of the thumb. Available with custom thumb image. + type: Dictionary platforms: [android] - name: thumbOffset diff --git a/apidoc/Titanium/UI/WebView.yml b/apidoc/Titanium/UI/WebView.yml index 51b125a4096..9dd237e4ad7 100644 --- a/apidoc/Titanium/UI/WebView.yml +++ b/apidoc/Titanium/UI/WebView.yml @@ -443,6 +443,7 @@ events: This event does not fire when navigating remote web pages. properties: - name: url + type: String summary: URL of the web document being loaded. - name: navigationType @@ -497,6 +498,7 @@ events: summary: Fired when the web view content is loaded. properties: - name: url + type: String summary: URL of the web document. - name: onLoadResource @@ -530,6 +532,7 @@ events: properties: - name: url summary: The URL of the web document that is stopped. + type: String deprecated: since: "6.1.0" notes: Use the cross-platform `blacklisturl` event instead. @@ -541,6 +544,7 @@ events: properties: - name: url summary: The URL of the web document that is stopped. + type: String - name: message summary: Fired when a script message is received from a webpage.