create
method, an application specifies the interface version it uses.Code Example:
/ Check whether Gears is installed. if (window.google && google.gears) { // Instantiate Gears objects var db = google.gears.factory.create('beta.database'); db.open(); }
The supported class names are:
className | Gears class created |
---|---|
beta.database | Database |
beta.desktop | Desktop |
beta.geolocation | Geolocation |
beta.httprequest | HttpRequest |
beta.localserver | LocalServer |
beta.timer | Timer |
beta.workerpool | WorkerPool |
没有评论:
发表评论