| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // Software License Agreement (BSD License)
- //
- // Copyright (c) 2010-2021, Deusty, LLC
- // All rights reserved.
- //
- // Redistribution and use of this software in source and binary forms,
- // with or without modification, are permitted provided that the following conditions are met:
- //
- // * Redistributions of source code must retain the above copyright notice,
- // this list of conditions and the following disclaimer.
- //
- // * Neither the name of Deusty nor the names of its contributors may be used
- // to endorse or promote products derived from this software without specific
- // prior written permission of Deusty, LLC.
- import WatchKit
- import Foundation
- import UserNotifications
- final class NotificationController: WKUserNotificationInterfaceController {
- override init() {
- // Initialize variables here.
- super.init()
-
- // Configure interface objects here.
- }
- override func willActivate() {
- // This method is called when watch view controller is about to be visible to user
- super.willActivate()
- }
- override func didDeactivate() {
- // This method is called when watch view controller is no longer visible
- super.didDeactivate()
- }
- override func didReceive(_ notification: UNNotification) {
- // This method is called when a notification needs to be presented.
- // Implement it if you use a dynamic notification interface.
- // Populate your dynamic notification interface as quickly as possible.
- }
- }
|