mgcrea / angular-cordova

Cordova/PhoneGap services for AngularJS
40 stars 9 forks source link

docs not found #1

Open danielzzz opened 11 years ago

danielzzz commented 11 years ago

hi, it seems that the documentation link is not working: http://mgcrea.github.io/angular-cordova

best, dan

mgcrea commented 11 years ago

For now, that's still work in progress ;-), I'll add the docs in the coming weeks. Thanks!

danielzzz commented 11 years ago

thanks!

nprbst commented 10 years ago

How's it coming?

agboom commented 10 years ago

I like where you're going with this library. Is there any documentation available yet?

davidrabinowitz commented 10 years ago

+1

soslan2002 commented 10 years ago

When it is coming?

soslan2002 commented 10 years ago

When it is coming?

soslan2002 commented 10 years ago

When it is coming?

jrschumacher commented 10 years ago

NOTE: This is a wrapper of the Cordova API. Read documentation for more information.

Angular Cordova

Source

Module: mgcrea.ngCordova.exec

Service: $cordova

Excample:

angular
  .module('myApp', ['mgcrea.ngCordova'])
  .controller('myCtrl', ['$cordova', function($contacts) {}]);

Methods:

Exec

$cordova.exec(plugin, action, args)

Handle Open Url

$cordova.handleOpenURL(scheme, callback)

$ Open Url

$cordova.$open(url)

Is Ready

$cordova.isReady()

Destroy

$cordova.destroy()

On Device Ready

$cordova.onDeviceReady()

Cordova Analytics

Source

Module: cordova.analytics

Service: $analytics

Excample:

angular
  .module('myApp', ['cordova.analytics'])
  .controller('myCtrl', ['$analytics', function($analytics) {}]);

Methods:

Init

$analytics.init(id, period)

Track Event

$analytics.trackEvent(category, eventAction, eventLabel,eventValue)

Track Page

$analytics.trackPage(url)

Set Variable

$analytics.setVariable(index, value)

Destroy (? Variable ?)

$analytics.destroy(index, value)

Cordova Contacts

Module: cordova.contacts

Service: $contacts

File: cordova-contacts.js

Excample:

angular
  .module('myApp', ['cordova.contacts'])
  .controller('myCtrl', ['$contacts', function($contacts) {}]);

Methods:

Save

$contacts.save(contact)

Find

$contacts.find(contact)

Cordova Notification

File: cordova-notification.js

Module: mgcrea.ngCordova.notification

Service: $notfication

Excample:

angular
  .module('myApp', ['mgcrea.ngCordova.notification'])
  .controller('myCtrl', ['$notification', function($notification) {}]);

Methods:

Alert

Open a native alert dialog, with a customizable title and button text.

$notification.alert(title, message, buttonLabel)

Confirm

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)

Prompt

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)

Vibrate

Causes the device to vibrate.

$notification.vibrate(time)

Beep

Causes the device to beep. On Android, the default notification ringtone is played "count" times.

$notification.vibrate(count)

Cordova Push Notification

File: cordova-push-notification.js

Module: cordova.pushNotification

Service: $pushNotfication

Excample:

angular
  .module('myApp', ['cordova.pushNotification'])
  .controller('myCtrl', ['$pushNotfication', function($pushNotfication) {}]);

Methods:

Register Device

Register for push notifications and retreive a deviceToken

$pushNotfication.registerDevice(options)

Get Pending Notifications

Retreive pending notification received while the application is in background or at launch

$pushNotfication.getPendingNotifications()

Get Remote Notification Status

Get a detailed status of remoteNotifications

$pushNotfication.getRemoteNotificationStatus()

Get Application Icon Badge Number

Get the current value of the application badge number

$pushNotfication.getApplicationIconBadgeNumber()

Set Application Icon Badge Number

Set the application icon badge

$pushNotfication.setApplicationIconBadgeNumber(value)

Cancel All Local Notifications

Clear all notifications from the notification center

$pushNotfication.cancelAllLocalNotifications()

Cancel All Local Notifications

Call this to retreive the iOS6 device unique id

$pushNotfication.getDeviceUniqueIdentifier()

Cancel All Local Notifications

$pushNotfication.notificationCallback(notification)

Cordova Splash Screen

File: cordova-push-splashscreen.js

Module: mcgrea.ngCordova.splashscreen

Service: $splashscreen

Excample:

angular
  .module('myApp', ['mcgrea.ngCordova.splashscreen'])
  .controller('myCtrl', ['$splashscreen', function($splashscreen) {}]);

Methods:

Show

Show the native splashscreen

$splashscreen.show()

Hide

Hide the native splashscreen

$splashscreen.hide()

jrschumacher commented 10 years ago

@soslan2002 give him a break and read the source code.