handheld 1.2.0
handheld: ^1.2.0 copied to clipboard
Dart wrapper for PhoneGap
Handheld #
Handheld is a wrapper for PhoneGap allowing you to write native mobile applications in Dart.
Quick Guide #
-
Go through the PhoneGap setup guide and make sure that PhoneGap is working before you proceed.
-
Add the folowing to your pubspec.yaml and run pub install
dependencies:
handheld: any
- Run it
import "package:handheld/handheld.dart";
main() {
handheld.onDeviceReady((Device device) {
device.notification.alert("hello from Dart");
});
}
PhoneGap API status #
| Function | Supported | API Version |
|---|---|---|
| Accelerometer | yes | 2.5 |
| Camera | no | 2.5 |
| Capture | no | 2.5 |
| Compass | no | 2.5 |
| Connection | no | 2.5 |
| Contacts | no | 2.5 |
| Device | yes | 2.5 |
| Events | no | 2.5 |
| File | no | 2.5 |
| Geolocation | no | 2.5 |
| Globalization | no | 2.5 |
| InAppBrowser | no | 2.5 |
| Media | no | 2.5 |
| Notification | yes | 2.5 |
| Splashscreen | no | 2.5 |
| Storage | no | 2.5 |
