QPNotifiedVSignEvent
public struct QPNotifiedVSignEvent : QPEvent
Event triggered when a VSign has been notified to the user. Handle this event to show a system notification to the user.
Example:
“`let content = UNMutableNotificationContent() guard let message = event.signal.getMessage(…..) else { return }
content.title = "Your notification’s title” content.body = message.text content.sound = UNNotificationSound.default
let request = UNNotificationRequest(identifier: event.signal.id, content: content, trigger: nil) let notificationCenter = UNUserNotificationCenter.current() notificationCenter.add(request)“`
-
Undocumented
Declaration
Swift
public let signal: QPSignal -
Undocumented
Declaration
Swift
public let datetime: Date -
Undocumented
Declaration
Swift
public let currentLocation: CLLocation -
Undocumented
Declaration
Swift
public var description: String { get } -
Undocumented
Declaration
Swift
public var secondaryDescription: String? { get }
QPNotifiedVSignEvent Structure Reference