SAPcpmsLockAndWipeObserver
public class SAPcpmsLockAndWipeObserver : SAPURLSessionObserving
Use this observer to detect user Lock and Wipe events from SAPcpms.
When a Locked or Wiped response is detected, the provided handler is called with the specific Locked or Woped case - see LockWipePolicyError
for more information.
The observer is in silent mode after this detection and will remain in this mode until a non-locking or non-wiping response is detected. The observer will not call the provided handler while in silent mode.
All requests that are detected as Locked or Wiped ones will result in the appropriate LockWipePolicyError
error.
-
Initializes an instance of SAPcpmsLockAndWipeObserver
Declaration
Swift
public init()
-
This method is called when the observer detects a lock or wipe condition in the HTTP response.
Declaration
Swift
public func sapURLSession(_ session: SAPURLSession, dataTask: SAPURLSessionTask, didReceive response: URLResponse, completionHandler: @escaping (SAPURLSession.ResponseDisposition) -> Void)