LockAndWipeEventObserving
public protocol LockAndWipeEventObserving : EventObserving
Implement this protocol in a class or struct when you want to observe and react to LockAndWipe events.
Conforming type should register themselve as observer in LockAndWipeEventDispatcher. When a Lock or Wipe events occurs, the observing object will receive appropriate callbacks to handle the event.
Example Usage:
class LockAndWipeEventObserver: LockAndWipeEventObserving {
func willLock() async {
// Perform an action before the Lock occurs.
}
func willWipe() async {
// Perform an action before the Wipe occurs.
}
func didLock() async {
// Handle Lock event
}
func didWipe() async {
// Handle Wipe event
}
}
let observer = LockAndWipeEventObserver()
LockAndWipeManager.shared.register(observer)
-
willLock()Default implementationMethod is called right before a user is Locked.
Default Implementation
Declaration
Swift
func willLock() async -
willWipe()Default implementationMethod is called right before a user is Wiped.
Default Implementation
default implementation
Declaration
Swift
func willWipe() async -
didLock()Default implementationDelegate to get call back after a user is Locked
Default Implementation
default implementation
Declaration
Swift
func didLock() async -
didWipe()Default implementationDelegate to get call back after a user is Wiped
Default Implementation
default implementation
Declaration
Swift
func didWipe() async