mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-22 22:36:01 +00:00
Use ToastView for notification setup
This commit is contained in:
1 parent
74226d2fc3
commit
130935c01d
11 files changed
+1674
-46
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user