You are reading 13.1.0. See this page in 13.4.1.
Titanium.UI.iOS.WebViewProcessPool
Extends Titanium.Proxy
It represents a pool of Web Content processes.
The process pool associated with a web view is specified by its web view configuration. Each web view is given its own Web Content process until an implementation-defined process limit is reached; after that, web views with the same process pool end up sharing Web Content processes. Process pools do not take arguments, just pass the same reference to multiple web views.
E.g.
var pool = Ti.UI.iOS.createWebViewProcessPool();
var config1 = Ti.UI.iOS.createWebViewConfiguration({
processPool: pool
});
var config2 = Ti.UI.iOS.createWebViewConfiguration({
processPool: pool
});
var firstWebView = Ti.UI.createWebView({
top: 0,
height: 250,
configuration: config1,
url: 'https://www.google.com'
});
var secondWebView = Ti.UI.createWebView({
top: 250,
configuration: config2,
url: 'https://www.apple.com/'
});
var window = Ti.UI.createWindow();
window.add(firstWebView);
window.add(secondWebView);
window.open();
Properties 2
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
Methods 4
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. |
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
|