UNPKG

@nevis-security/nevis-mobile-authentication-sdk-react

Version:

React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.

32 lines (28 loc) 928 B
"use strict"; /** * Copyright © 2024 Nevis Security AG. All rights reserved. */ import { PlatformOperation } from './PlatformOperation'; /** * Helps in following the states of device information check during method channel calls. */ export class DeviceInformationCheckPlatformOperation extends PlatformOperation { /** * The callback that will be invoked by the SDK with the {@link DeviceInformationCheckResult} * containing the configuration mismatches an errors (if any) that occurred. */ constructor(operationId, onResult) { super(); this.operationId = operationId; this.onResult = onResult; } /** * Provides a way to handle the result of the device information check method channel call. * * @param result the result of the method channel call. */ handleResult(result) { this.onResult?.(result); } } //# sourceMappingURL=DeviceInformationCheckPlatformOperation.js.map