Skip to content

ws1-client-sdk/com.airwatch.sdk.profile/PasscodePolicy/getPasscodeHistory

getPasscodeHistory

open fun getPasscodeHistory(): Int

Provides the passcode history depth configured in the WS1 UEM Console. The device will prevent the user from reusing the most recent N passcodes, where N is this value.

This value is only meaningful when isPasscodeRequired returns true. When passcode is not required or the value has not been set, -1 is returned.

Return

Number of previous passcodes that cannot be reused, or -1 if not set.