mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-09 22:35:56 +05:45
* renamed SwiftExample -> LegacySwiftExample target and project files * renamed xcode schemes
39 lines
1.0 KiB
Swift
39 lines
1.0 KiB
Swift
//
|
|
// NotificationController.swift
|
|
// WatchExample Extension
|
|
//
|
|
// Created by Andrés Boedo on 4/3/20.
|
|
// Copyright © 2020 RevenueCat. All rights reserved.
|
|
//
|
|
|
|
import WatchKit
|
|
import Foundation
|
|
import UserNotifications
|
|
|
|
|
|
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.
|
|
}
|
|
}
|