ProtectionSpace

public protocol ProtectionSpace: class

Protects navigation.

  • Called by module before navigation.

    Declaration

    Swift

    func protect(_ handler: ProtectionHandler)

    Parameters

    handler

    ProtectionHandler object. Call unprotect() when ready to continue navigation.

  • Called by module before protecting.

    Declaration

    Swift

    func shouldProtect() -> Bool

    Return Value

    Boolean. If true is returned, protect(_:) will be called. Returning false navigates immediately.