# Services to show notification in the Android status bar
#
-# ~~~~
+# ~~~~nitish
# # Create and show a notification
# var notif = new Notification("My Title", "Some content")
# notif.ticker = "Ticker text"
# # Update the notification
# notif.text = "New content!"
# notif.ongoing = true # Make it un-dismissable
-# nofif.show
+# notif.show
#
# # Hide the notification
# notif.cancel
# http://developer.android.com/guide/topics/ui/notifiers/notifications.html
module notification
-import standard
+import core
private import native_notification
# An Android notification, shown at the top of the screen
if id != null then
sys.jni_env.push_local_frame(8)
- var manager = app.native_activity.notification_manager
+ var manager = app.native_context.notification_manager
manager.cancel(tag.to_java_string, id)
self.id = null