mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-24 20:06:39 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
35 lines
1.1 KiB
Swift
35 lines
1.1 KiB
Swift
import Foundation
|
|
import UserNotifications
|
|
import WatchKit
|
|
|
|
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, withCompletion completionHandler: @escaping (WKUserNotificationInterfaceType) -> Swift.Void) {
|
|
// 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.
|
|
//
|
|
// After populating your dynamic notification interface call the completion block.
|
|
completionHandler(.custom)
|
|
}
|
|
*/
|
|
}
|