chrome 0.4.4 copy "chrome: ^0.4.4" to clipboard
chrome: ^0.4.4 copied to clipboard

outdatedDart 1 only

An library for accessing the Chrome APIs in a packaged app or extension.

chrome.dart #

An library for accessing the Chrome APIs in a packaged app or extension.

Build Status

Installing #

Add this to your package's pubspec.yaml file:

dependencies:
  chrome: any

Using the library #

import 'package:chrome/chrome_app.dart' as chrome;

void main() {
  chrome.runtime.getPlatformInfo().then((Map m) {
    print(m.toString());
  });
}

Also, see the FAQ.

Documentation #

Documentation is available at:

Re-generating the library #

From the project directory, run:

dart tool/gen_apis.dart

This will:

  • read meta/apis.json and meta/overrides.json
  • parse the cooresponding idl/*.json and idl/*.idl files
  • generate lib/chrome_app.dart, lib/chrome_ext.dart, and lib/gen/*.dart.
3
likes
0
pub points
25%
popularity

Publisher

unverified uploader

An library for accessing the Chrome APIs in a packaged app or extension.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on chrome