Skip to content

Commit d8da519

Browse files
committedSep 6, 2022
feat: Update FlagshipMetadata interface
In order to give the webview information about biometry capabilites, it is necessary that we update the interface so the consuming apps are aware of the new option and what values it can hold. The actual injection still has to be done in the native application.

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎packages/cozy-device-helper/src/flagship.ts

+12
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ export enum FlagshipRoutes {
88
Stack = 'stack'
99
}
1010

11+
export enum BiometryType {
12+
Face = 'Face',
13+
FaceID = 'FaceID',
14+
Fingerprint = 'Fingerprint',
15+
Iris = 'Iris',
16+
TouchID = 'TouchID'
17+
}
18+
1119
export interface FlagshipMetadata {
20+
capabilities?: {
21+
biometryType?: BiometryType
22+
}
23+
hasBiometry?: boolean
1224
immersive?: boolean
1325
navbarHeight?: number
1426
platform?: Record<string, unknown>

0 commit comments

Comments
 (0)
Please sign in to comment.