PasscodePolicyManager

public class PasscodePolicyManager : PasscodePolicyManaging

Undocumented

  • Delegate notified when the foreground inactivity timeout elapses and the app must lock.

    Declaration

    Swift

    public var delegate: PasscodePolicyManagerDelegate? { get set }
  • Undocumented

    Declaration

    Swift

    public init()
  • Undocumented

    Declaration

    Swift

    public func initialize(passcodePolicy: FUIPasscodePolicy?)
  • Undocumented

    Declaration

    Swift

    public func managePasscodeTimeout()
  • Undocumented

    Declaration

    Swift

    public func enforcePasscodeTimout(completionHandler: @escaping (Error?) -> Void)
  • Checks if the Passcode lock is disabled and returns additional info if it’s temporarily disabled.

    Declaration

    Swift

    public func isPasscodeLockDisabled() -> (disabled: Bool, till: Int?)
  • returns the configured lock time out value.

    Declaration

    Swift

    public func getPasscodeLockTimeout() -> Int
  • Checks whether passcode policy is enabled or not Returns: true if passcode policy is configured , else false.

    Declaration

    Swift

    public func isPasscodePolicyEnabled() -> Bool
  • Temporarily disables the passcode timeout for the specified number of seconds.

    Declaration

    Swift

    public func disablePasscodeLock(forSeconds seconds: Int)
  • Disables the passcode until enabled using enablePasscodeLock().

    Declaration

    Swift

    public func disablePasscodeLock()
  • enables the passcode if it is disabled.

    Declaration

    Swift

    public func enablePasscodeLock()
  • Called on every detected user touch event to update last-activity time. Only updates the monitor; does NOT recreate the timer on every event.

    Declaration

    Swift

    public func manageForegroundPasscodeTimeout()
  • Enables the foreground inactivity lock. Call after unlock to arm the timer. Resets the activity clock and restarts the timer if it was stopped.

    Declaration

    Swift

    public func enableForegroundPasscodeLock()
  • Disables the foreground inactivity lock. Call before locking so no timeout fires while the passcode screen is visible.

    Declaration

    Swift

    public func disableForegroundPasscodeLock()