setRoot(path_to_root_xml) |
This function sets the root WURFL data file to be used by WURFL to a specific path in your file system. Please note that if you plan to use the updater feature, you MUST use a compressed (i.e, ZIP or XML.GZ) wurfl data file. |
1.5.1.2 |
addPatch(path_to_patch_xml) |
This function adds a patch to WURFL by taking the path to the patch xml file. |
1.5.1.2 |
addRequestedCapability(capability_name) |
Adds a new capability to the capabilities filter. If not used, all capabilities are loaded |
1.5.1.2 |
setCacheProvider(cache_mode, max_useragents, max_devices) |
This function sets the WURFL Cache provider to be used. Choose "cache_mode" between 0 (no cache) or 1 (single LRU cache, default). If you choose the single LRU cache you also need to pass a "max_useragents" integer which tells how many user agents WURFL can cache (recommended: "100000"). |
1.5.1.2 |
load() |
Loads the WURFL Instance with the previously selected modes (engine target, cache, root data file..). |
1.5.1.2 |
lookupUseragent(useragent) |
This function is responsible to query WURFL for a device matching the passed "useragent" as a string. It returns a wurfl_device_handle structure. |
1.5.1.2 |
lookupWithHeaderResolverFunction(header_resolver) |
This function is responsible to query WURFL for a specific device. The header_resolver function passed as a parameter must tell WURFL how to retrieve the header values. Please note that the header-retrieval functions should be case-insensitive. It returns a wurfl_device_handle structure. |
1.5.1.2 |
getDevice(device_id) |
This function is responsible to query WURFL for a specific device matching a specific wurfl device identifier as a string. It returns a wurfl_device_handle structure. |
1.5.1.2 |
getLastLoadTime() |
This function returns a string describing the timestamp of the latest successful WURFL load. |
1.5.1.2 |
getInfo() |
This function returns a string describing some information regarding the loaded WURFL database and optional patch files. |
1.5.1.2 |
setUpdaterLogPath(file_path) |
Instructs the internal WURFL InFuze updater to log to file any operation/error. If not used, the updater will not log anything. |
1.8.3.0 |
setUpdaterDataURL(url) |
Sets remote data file URL to be downloaded via internal WURFL InFuze updater. This is the only MANDATORY call if you want to use the InFuze Updater |
1.8.3.0 |
setUpdaterDataFrequency(check_frequency) |
Sets how often the updater checks for any new/updated WURFL data file to be downloaded and used by the engine (DAILY (default) or WEEKLY). |
1.8.3.0 |
setUpdaterDataURLTimeouts(connection_timeout, data_transfer_timeout) |
Sets internal WURFL InFuze Updater timeouts, in milliseconds. The values are mapped to `curl` `--connect-timeout` and `--max-time` parameters (after millisecs-to-secs conversion). Connection timeout has a WURFL InFuze default value of 10 seconds (10000 ms) and refers only to connection phase. Passing 0 will use `curl` value "no timeout used". Data transfer timeout has a InFuze default value of 600 seconds (600000 ms). Passing 0 will use `curl` default value "no timeout used". So, pass 0 to either parameter to invoke `curl` "no timeout used" behaviour. Pass -1 to either parameter to use WURFL InFuze default values (10 secs, 600 secs). The specified timeouts (if any) are only used in the synchronous (i.e., `updaterRunonce()`) API call. The asynchronous background updater invoked by `updaterStart()`/`updaterStop()` always runs with `curl` behaviour and timeouts (i.e., it will wait "as long as needed" for a new data file to be downloaded) |
1.8.3.0 |
updaterStart() |
Starts the asynchronous WURFL InFuze background update thread. |
1.8.3.0 |
updaterStop() |
Stops the asynchronous WURFL InFuze background update thread. |
1.8.3.0 |
updaterRunonce() |
Call a WURFL InFuze synchronous update. |
1.8.3.0 |