Use ToastView for notification setup

This commit is contained in:
Leon Böttger authored and Leon Böttger committed 2026-03-14 21:20:45 +01:00
1 parent 74226d2fc3
commit 130935c01d
11 files changed
+1674 -46

No files matched your search

+7
View File
@@ -19,6 +19,7 @@ protocol InboundNearbyConnectionDelegate {
func updatedTransferProgress(connection: InboundNearbyConnection, progress: Double)
func connectionWasTerminated(connection: InboundNearbyConnection, savedFiles: [URL], error: Error?)
func showPlusScreen()
func notificationSyncSetupConfirmed(connection: InboundNearbyConnection)
}
@@ -37,6 +38,11 @@ public protocol InboundAppDelegate: AnyObject {
func connectionWasTerminated(connectionID: String, from device: RemoteDeviceInfo?, savedFiles: [URL], wasPlainTextTransfer: Bool, error: Error?)
func transferProgress(connectionID: String, progress: Double)
func showPlusScreen()
func notificationSyncSetupConfirmed()
}
extension InboundAppDelegate {
func notificationSyncSetupConfirmed() {}
}
@@ -330,6 +336,7 @@ public enum NearbyError: Error {
case packetFilterError
case firewallError
case inputOutput
case notificationSyncNotTrusted
case canceled(reason: CancellationReason)
public enum CancellationReason {