BiometricsService Constants

BiometricsService defines and uses several constants. Each of the following constants enumerate the accepted string values for the associated properties.

Constant Values 

All of the following constants are available as properties on an instance of BiometricsService.

Constant NameAccepted ValueDescription
BiometricsServicePolicy”PIN_CODE”PIN_CODE instructs BiometricsService to fallback using pin code if biometrics is not available or not configured.

BiometricsServiceFailureCode 

Correlates with the code property on the BiometricsServiceFailure object.

Accepted ValueDescription
”HARDWARE_NOT_AVAILABLE”There is no fingerprint scanner or face recognition hardware found.
”NOT_CONFIGURED”Biometrics hardware was found but has not been set up yet.
”SERVICE_NOT_ENABLED”BiometricsService is not enabled and cannot be used.
”UNKNOWN_REASON”An error occurred in the native code that isn’t related to permissions or hardware issues. More information is provided in the BiometricsServiceFailure message.

Release Preview

This release is in preview. Features described here don't become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can't guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.