APPNotificationOptions.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * This file contains Original Code and/or Modifications of Original Code
  3. * as defined in and that are subject to the Apache License
  4. * Version 2.0 (the 'License'). You may not use this file except in
  5. * compliance with the License. Please obtain a copy of the License at
  6. * http://opensource.org/licenses/Apache-2.0/ and read it before using this
  7. * file.
  8. *
  9. * The Original Code and all software distributed under the License are
  10. * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  11. * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  12. * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  13. * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
  14. * Please see the License for the specific language governing rights and
  15. * limitations under the License.
  16. */
  17. @import UserNotifications;
  18. @interface APPNotificationOptions : NSObject
  19. @property (readonly, getter=id) NSNumber* id;
  20. @property (readonly, getter=identifier) NSString* identifier;
  21. @property (readonly, getter=categoryId) NSString* categoryId;
  22. @property (readonly, getter=title) NSString* title;
  23. @property (readonly, getter=subtitle) NSString* subtitle;
  24. @property (readonly, getter=badge) NSNumber* badge;
  25. @property (readonly, getter=text) NSString* text;
  26. @property (readonly, getter=sound) UNNotificationSound* sound;
  27. @property (readonly, getter=userInfo) NSDictionary* userInfo;
  28. @property (readonly, getter=actions) NSArray<UNNotificationAction *> * actions;
  29. @property (readonly, getter=attachments) NSArray<UNNotificationAttachment *> * attachments;
  30. - (id) initWithDict:(NSDictionary*)dict;
  31. - (UNNotificationTrigger*) trigger;
  32. @end