Open danielzzz opened 11 years ago
For now, that's still work in progress ;-), I'll add the docs in the coming weeks. Thanks!
thanks!
How's it coming?
I like where you're going with this library. Is there any documentation available yet?
+1
When it is coming?
When it is coming?
When it is coming?
NOTE: This is a wrapper of the Cordova API. Read documentation for more information.
Module: mgcrea.ngCordova.exec
Service: $cordova
Excample:
angular
.module('myApp', ['mgcrea.ngCordova'])
.controller('myCtrl', ['$cordova', function($contacts) {}]);
$cordova.exec(plugin, action, args)
$cordova.handleOpenURL(scheme, callback)
$cordova.$open(url)
$cordova.isReady()
$cordova.destroy()
$cordova.onDeviceReady()
Module: cordova.analytics
Service: $analytics
Excample:
angular
.module('myApp', ['cordova.analytics'])
.controller('myCtrl', ['$analytics', function($analytics) {}]);
$analytics.init(id, period)
$analytics.trackEvent(category, eventAction, eventLabel,eventValue)
$analytics.trackPage(url)
$analytics.setVariable(index, value)
$analytics.destroy(index, value)
Module: cordova.contacts
Service: $contacts
File: cordova-contacts.js
Excample:
angular
.module('myApp', ['cordova.contacts'])
.controller('myCtrl', ['$contacts', function($contacts) {}]);
$contacts.save(contact)
$contacts.find(contact)
File: cordova-notification.js
Module: mgcrea.ngCordova.notification
Service: $notfication
Excample:
angular
.module('myApp', ['mgcrea.ngCordova.notification'])
.controller('myCtrl', ['$notification', function($notification) {}]);
Open a native alert dialog, with a customizable title and button text.
$notification.alert(title, message, buttonLabel)
Open a native confirm dialog, with a customizable title and button text. The result that the user selects is returned to the result callback.
$notification.confirm(title, message, buttonLabels, submitButton)
Open a native prompt dialog, with a customizable title and button text. The following results are returned to the result callback:
$notification.prompt(title, message, buttonLabels, submitButton)
Causes the device to vibrate.
$notification.vibrate(time)
Causes the device to beep. On Android, the default notification ringtone is played "count" times.
$notification.vibrate(count)
File: cordova-push-notification.js
Module: cordova.pushNotification
Service: $pushNotfication
Excample:
angular
.module('myApp', ['cordova.pushNotification'])
.controller('myCtrl', ['$pushNotfication', function($pushNotfication) {}]);
Register for push notifications and retreive a deviceToken
$pushNotfication.registerDevice(options)
Retreive pending notification received while the application is in background or at launch
$pushNotfication.getPendingNotifications()
Get a detailed status of remoteNotifications
$pushNotfication.getRemoteNotificationStatus()
Get the current value of the application badge number
$pushNotfication.getApplicationIconBadgeNumber()
Set the application icon badge
$pushNotfication.setApplicationIconBadgeNumber(value)
Clear all notifications from the notification center
$pushNotfication.cancelAllLocalNotifications()
Call this to retreive the iOS6 device unique id
$pushNotfication.getDeviceUniqueIdentifier()
$pushNotfication.notificationCallback(notification)
File: cordova-push-splashscreen.js
Module: mcgrea.ngCordova.splashscreen
Service: $splashscreen
Excample:
angular
.module('myApp', ['mcgrea.ngCordova.splashscreen'])
.controller('myCtrl', ['$splashscreen', function($splashscreen) {}]);
Show the native splashscreen
$splashscreen.show()
Hide the native splashscreen
$splashscreen.hide()
@soslan2002 give him a break and read the source code.
hi, it seems that the documentation link is not working: http://mgcrea.github.io/angular-cordova
best, dan