APPLocalNotification.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * Apache 2.0 License
  3. *
  4. * Copyright (c) Sebastian Katzer 2017
  5. *
  6. * This file contains Original Code and/or Modifications of Original Code
  7. * as defined in and that are subject to the Apache License
  8. * Version 2.0 (the 'License'). You may not use this file except in
  9. * compliance with the License. Please obtain a copy of the License at
  10. * http://opensource.org/licenses/Apache-2.0/ and read it before using this
  11. * file.
  12. *
  13. * The Original Code and all software distributed under the License are
  14. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  15. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  16. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  17. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  18. * Please see the License for the specific language governing rights and
  19. * limitations under the License.
  20. */
  21. #import <Cordova/CDVPlugin.h>
  22. @import UserNotifications;
  23. @interface APPLocalNotification : CDVPlugin <UNUserNotificationCenterDelegate>
  24. // Set launchDetails object
  25. - (void) launchDetails:(CDVInvokedUrlCommand*)command;
  26. // Execute all queued events
  27. - (void) deviceready:(CDVInvokedUrlCommand*)command;
  28. // Check permission to show notifications
  29. - (void) check:(CDVInvokedUrlCommand*)command;
  30. // Request permission to show notifications
  31. - (void) request:(CDVInvokedUrlCommand*)command;
  32. // Register/update an action group
  33. - (void) registerCategory:(CDVInvokedUrlCommand*)command;
  34. // Schedule notifications
  35. - (void) schedule:(CDVInvokedUrlCommand*)command;
  36. //// Update set of notifications
  37. //- (void) update:(CDVInvokedUrlCommand*)command;
  38. // Clear notifications by id
  39. - (void) clear:(CDVInvokedUrlCommand*)command;
  40. // Clear all notifications
  41. - (void) clearAll:(CDVInvokedUrlCommand*)command;
  42. // Cancel notifications by id
  43. - (void) cancel:(CDVInvokedUrlCommand*)command;
  44. // Cancel all notifications
  45. - (void) cancelAll:(CDVInvokedUrlCommand*)command;
  46. // If a notification with an ID is present
  47. - (void) isPresent:(CDVInvokedUrlCommand*)command;
  48. // If a notification with an ID is scheduled
  49. - (void) isScheduled:(CDVInvokedUrlCommand*)command;
  50. // If a notification with an ID is triggered
  51. - (void) isTriggered:(CDVInvokedUrlCommand*)command;
  52. // List of all notification IDs
  53. - (void) ids:(CDVInvokedUrlCommand*)command;
  54. // List of all scheduled notification IDs
  55. - (void) scheduledIds:(CDVInvokedUrlCommand*)command;
  56. // List of all triggered notification IDs
  57. - (void) triggeredIds:(CDVInvokedUrlCommand*)command;
  58. // Notification by id
  59. - (void) notification:(CDVInvokedUrlCommand*)command;
  60. // Scheduled notification by id
  61. - (void) scheduledNotification:(CDVInvokedUrlCommand*)command;
  62. // Triggered notification by id
  63. - (void) triggeredNotification:(CDVInvokedUrlCommand*)command;
  64. // List of notifications by id
  65. - (void) notifications:(CDVInvokedUrlCommand*)command;
  66. // List of scheduled notifications by id
  67. - (void) scheduledNotifications:(CDVInvokedUrlCommand*)command;
  68. // List of triggered notifications by id
  69. - (void) triggeredNotifications:(CDVInvokedUrlCommand*)command;
  70. @end