Jan 01

Gears Future APIs: Factory API Updates

Gears, Google, Tech with tags: 2 Comments »

The simple Gears Factory is the front door to all Gears modules. It is about to get a small update that gives you a touch more configurability.

If you have wanted to customize the popup that your users get when first giving permissions to use the application, you can use the new APIs:

  • boolean getPermission(siteName, imageUrl, extraMessage): Lets a site manually trigger the Gears security dialog, optionally with UI customizations.
    • siteName: Friendly name of the site requesting permission.
    • imageUrl: URL of a .png file to display in the dialog.
    • extraMessage: Site-specific text to display to users in the security dialog.
  • hasPermission: Returns true if the site already has permission to use Gears.

So, nothing fancy here, but if you want to customize your Gears messages, you will be given control to do so.

Other Future APIs

Disclaimer: This is early days, and who knows what the final API will look like, or if it will even make it. Do you have ideas for cool Gears that make the Web better? Let us know!.