Total Pageviews

Saturday, April 5, 2014

ចង់ Cancell system notification

System.cancelNotification()
បើយើងពិនិត្យមើលអំពីពាក្យរបស់វាយើងនឹងងាយយល់អត្ថន័យ។ គេប្រើសំរាប៉removes notification​ ណាមួយចេញពី Scheduler, status bar or notification center

Syntax: ---- cancel all notifications
system.cancelNotification()

-- cancel notification corresponding to 'notificationId'
system.cancelNotification( notificationId )

notificationId(ជំរើស) វាជា notification reference ID ដែលបានមកពី system.scheduleNotification() បើសិនជា ID មិនត្រូវបានបញ្ចូលទេ ពេលនោះ គ្រប់ទាំង notifications ត្រូវបាន cancelled

No comments:

Post a Comment