react-native-app-data-sharing
Version:
This React Native package facilitates seamless and secure data sharing between applications on the same device.
50 lines (49 loc) • 2.28 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.BIOMETRY_TYPE = exports.AUTHENTICATION_TYPE = exports.ACCESS_CONTROL = exports.ACCESSIBLE = void 0;
// Modified from react-native-keychain (https://github.com/oblador/react-native-keychain)
/**
* Enum representing when a keychain item is accessible.
*/
let ACCESSIBLE = exports.ACCESSIBLE = /*#__PURE__*/function (ACCESSIBLE) {
ACCESSIBLE["WHEN_UNLOCKED"] = "AccessibleWhenUnlocked";
ACCESSIBLE["AFTER_FIRST_UNLOCK"] = "AccessibleAfterFirstUnlock";
ACCESSIBLE["ALWAYS"] = "AccessibleAlways";
ACCESSIBLE["WHEN_PASSCODE_SET_THIS_DEVICE_ONLY"] = "AccessibleWhenPasscodeSetThisDeviceOnly";
ACCESSIBLE["WHEN_UNLOCKED_THIS_DEVICE_ONLY"] = "AccessibleWhenUnlockedThisDeviceOnly";
ACCESSIBLE["AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY"] = "AccessibleAfterFirstUnlockThisDeviceOnly";
return ACCESSIBLE;
}({});
/**
* Enum representing access control options.
*/
let ACCESS_CONTROL = exports.ACCESS_CONTROL = /*#__PURE__*/function (ACCESS_CONTROL) {
ACCESS_CONTROL["USER_PRESENCE"] = "UserPresence";
ACCESS_CONTROL["BIOMETRY_ANY"] = "BiometryAny";
ACCESS_CONTROL["BIOMETRY_CURRENT_SET"] = "BiometryCurrentSet";
ACCESS_CONTROL["DEVICE_PASSCODE"] = "DevicePasscode";
ACCESS_CONTROL["APPLICATION_PASSWORD"] = "ApplicationPassword";
ACCESS_CONTROL["BIOMETRY_ANY_OR_DEVICE_PASSCODE"] = "BiometryAnyOrDevicePasscode";
ACCESS_CONTROL["BIOMETRY_CURRENT_SET_OR_DEVICE_PASSCODE"] = "BiometryCurrentSetOrDevicePasscode";
return ACCESS_CONTROL;
}({});
/**
* Enum representing authentication types.
*/
let AUTHENTICATION_TYPE = exports.AUTHENTICATION_TYPE = /*#__PURE__*/function (AUTHENTICATION_TYPE) {
AUTHENTICATION_TYPE["DEVICE_PASSCODE_OR_BIOMETRICS"] = "AuthenticationWithBiometricsDevicePasscode";
AUTHENTICATION_TYPE["BIOMETRICS"] = "AuthenticationWithBiometrics";
return AUTHENTICATION_TYPE;
}({});
/**
* Enum representing types of biometric authentication supported by the device.
*/
let BIOMETRY_TYPE = exports.BIOMETRY_TYPE = /*#__PURE__*/function (BIOMETRY_TYPE) {
BIOMETRY_TYPE["TOUCH_ID"] = "TouchID";
BIOMETRY_TYPE["FACE_ID"] = "FaceID";
BIOMETRY_TYPE["OPTIC_ID"] = "OpticID";
return BIOMETRY_TYPE;
}({});
//# sourceMappingURL=DataSharingEnums.ios.js.map