NotificationController.m 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import "NotificationController.h"
  9. @interface NotificationController()
  10. @end
  11. @implementation NotificationController
  12. - (instancetype)init {
  13. self = [super init];
  14. if (self){
  15. // Initialize variables here.
  16. // Configure interface objects here.
  17. }
  18. return self;
  19. }
  20. - (void)willActivate {
  21. // This method is called when watch view controller is about to be visible to user
  22. [super willActivate];
  23. }
  24. - (void)didDeactivate {
  25. // This method is called when watch view controller is no longer visible
  26. [super didDeactivate];
  27. }
  28. /*
  29. - (void)didReceiveLocalNotification:(UILocalNotification *)localNotification withCompletion:(void (^)(WKUserNotificationInterfaceType))completionHandler {
  30. // This method is called when a local notification needs to be presented.
  31. // Implement it if you use a dynamic notification interface.
  32. // Populate your dynamic notification interface as quickly as possible.
  33. //
  34. // After populating your dynamic notification interface call the completion block.
  35. completionHandler(WKUserNotificationInterfaceTypeCustom);
  36. }
  37. */
  38. /*
  39. - (void)didReceiveRemoteNotification:(NSDictionary *)remoteNotification withCompletion:(void (^)(WKUserNotificationInterfaceType))completionHandler {
  40. // This method is called when a remote notification needs to be presented.
  41. // Implement it if you use a dynamic notification interface.
  42. // Populate your dynamic notification interface as quickly as possible.
  43. //
  44. // After populating your dynamic notification interface call the completion block.
  45. completionHandler(WKUserNotificationInterfaceTypeCustom);
  46. }
  47. */
  48. @end