-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b1e5b4
commit ef62048
Showing
6 changed files
with
91 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// AptoPlatformUIProtocol.swift | ||
// AptoSDK | ||
// | ||
// Created by Ivan Oliver Martínez on 04/09/2019. | ||
// | ||
|
||
import Foundation | ||
|
||
@objc public protocol AptoPlatformUIDelegate { | ||
/** | ||
* Called when a no network situation is detected, to ask the delegate if the UI SDK should show specific UI | ||
* to explain the user that the network is not available. Used too when the network is restored to know if the | ||
* UI SDK should dismiss the No network UI. | ||
*/ | ||
@objc optional func shouldShowNoNetworkUI() -> Bool | ||
|
||
/** | ||
* Called when a network request fails because our server is not available, to ask the delegate if the UI SDK should | ||
* show specific UI to explain the user that the server is in maintenance mode. | ||
*/ | ||
@objc optional func shouldShowServerMaintenanceUI() -> Bool | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters