setIncrementKeyUsageCount

open fun setIncrementKeyUsageCount(incrementKeyUsageCount: Boolean)

Deprecated

Use PresentationSession instead.

Sets whether the usage count of an authentication key should be increased. This must be called prior to calling getEntries or using a BiometricPrompt.CryptoObject which references this object.

By default this is set to true.

This is only implemented on FEATURE_VERSION_202201, fails with UnsupportedOperationException if using a store with a lesser version.

Parameters

incrementKeyUsageCount

whether the usage count of the key should be increased.