Move doc to Kdoc and fix formatting issue.
This commit is contained in:
committed by
Benoit Marty
parent
e57da37657
commit
005db3dc88
@@ -25,41 +25,21 @@ import kotlin.time.Duration.Companion.seconds
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration for the lock screen feature.
|
* Configuration for the lock screen feature.
|
||||||
|
* @property isPinMandatory Whether the PIN is mandatory or not.
|
||||||
|
* @property pinBlacklist Some PINs are forbidden.
|
||||||
|
* @property pinSize The size of the PIN.
|
||||||
|
* @property maxPinCodeAttemptsBeforeLogout Number of attempts before the user is logged out.
|
||||||
|
* @property gracePeriod Time period before locking the app once backgrounded.
|
||||||
|
* @property isStrongBiometricsEnabled Authentication with strong methods (fingerprint, some face/iris unlock implementations) is supported.
|
||||||
|
* @property isWeakBiometricsEnabled Authentication with weak methods (most face/iris unlock implementations) is supported.
|
||||||
*/
|
*/
|
||||||
data class LockScreenConfig(
|
data class LockScreenConfig(
|
||||||
/**
|
|
||||||
* Whether the PIN is mandatory or not.
|
|
||||||
*/
|
|
||||||
val isPinMandatory: Boolean,
|
val isPinMandatory: Boolean,
|
||||||
|
|
||||||
/**
|
|
||||||
* Some PINs are forbidden.
|
|
||||||
*/
|
|
||||||
val pinBlacklist: Set<String>,
|
val pinBlacklist: Set<String>,
|
||||||
|
|
||||||
/**
|
|
||||||
* The size of the PIN.
|
|
||||||
*/
|
|
||||||
val pinSize: Int,
|
val pinSize: Int,
|
||||||
|
|
||||||
/**
|
|
||||||
* Number of attempts before the user is logged out.
|
|
||||||
*/
|
|
||||||
val maxPinCodeAttemptsBeforeLogout: Int,
|
val maxPinCodeAttemptsBeforeLogout: Int,
|
||||||
|
|
||||||
/**
|
|
||||||
* Time period before locking the app once backgrounded.
|
|
||||||
*/
|
|
||||||
val gracePeriod: Duration,
|
val gracePeriod: Duration,
|
||||||
|
|
||||||
/**
|
|
||||||
* Authentication with strong methods (fingerprint, some face/iris unlock implementations) is supported.
|
|
||||||
*/
|
|
||||||
val isStrongBiometricsEnabled: Boolean,
|
val isStrongBiometricsEnabled: Boolean,
|
||||||
|
|
||||||
/**
|
|
||||||
* Authentication with weak methods (most face/iris unlock implementations) is supported.
|
|
||||||
*/
|
|
||||||
val isWeakBiometricsEnabled: Boolean,
|
val isWeakBiometricsEnabled: Boolean,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user