Gears Future APIs: Blob API Gears Future APIs: Developer Tools
Jan 01

Gears Future APIs: Factory API Updates

Gears, Google, Tech with tags: Add 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!.

2 Responses to “Gears Future APIs: Factory API Updates”

  1. Prakash Says:

    Its Blob API not Blog API. For a moment, I was surprised to see that Gears by default supports offline blogging :-)

  2. replicahandbags Says:

    thanks for your share.

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'ajax'