com.opera.core.systems.scope.services
Interface ICoreUtils

All Known Implementing Classes:
CoreUtils

public interface ICoreUtils

Core utility service exposing metadata about the browser core in general, i.e. information which can not be associated to any one window, document, or object. Version changelog: 1.0 First release. 1.1 Idle detection now handles invalidation and SVG painting/animation. 1.2 Added GetBrowserInformation command. 1.3 Added ClearPrivateData.

Author:
Andreas Tolf Tolfsen

Method Summary
 java.lang.String getBinaryPath()
          The full path of the currently running binary.
 java.lang.String getCoreVersion()
          Which Core version this instance is running, e.g.
 java.lang.String getOperatingSystem()
          Gets a string which describes the operating system the connected Opera instance is running on.
 java.lang.Integer getProcessID()
          Gets the process ID of connected Opera instance.
 java.lang.String getProduct()
          A string which describes the product.
 java.lang.String getUserAgent()
          Gets the User-Agent string, typically something like "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01"
 boolean hasMetaInformation()
          Whether this version of the CoreUtils service supports getting metadata.
 void init()
           
 

Method Detail

init

void init()

hasMetaInformation

boolean hasMetaInformation()
Whether this version of the CoreUtils service supports getting metadata.

Returns:
true if meta information is available

getCoreVersion

java.lang.String getCoreVersion()
Which Core version this instance is running, e.g. "2.8.119".

Returns:
version number

getOperatingSystem

java.lang.String getOperatingSystem()
Gets a string which describes the operating system the connected Opera instance is running on. An example would be "Window NT 6.1"

Returns:
operating system

getProduct

java.lang.String getProduct()
A string which describes the product. For regular desktop builds this will be "desktop". Other examples are "mobile" and "gogi".

Returns:
product type

getBinaryPath

java.lang.String getBinaryPath()
The full path of the currently running binary.

Returns:
path

getUserAgent

java.lang.String getUserAgent()
Gets the User-Agent string, typically something like "Opera/9.80 (Windows NT 6.1; U; en) Presto/2.7.62 Version/11.01"

Returns:
user agent

getProcessID

java.lang.Integer getProcessID()
Gets the process ID of connected Opera instance. Might not be present if the build does not support retrieving process ID's.

Returns:
pid


Copyright © 2011. All Rights Reserved.