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() {
         // Perform an action before the Lock occurs.
     }

     func willWipe() {
         // Perform an action before the Wipe occurs.
     }

     func didLock() {
         // Handle Lock event
     }

     func didWipe() {
         // Handle Wipe event
     }
 }

 let observer = LockAndWipeEventObserver()
 LockAndWipeManager.shared.register(observer)
  • Method is called right before a user is Locked.

    Declaration

    Swift

    func willLock()
  • Method is called right before a user is Wiped.

    Declaration

    Swift

    func willWipe()
  • Delegate to get call back after a user is Locked

    Declaration

    Swift

    func didLock()
  • Delegate to get call back after a user is Wiped

    Declaration

    Swift

    func didWipe()