@nevis-security/nevis-mobile-authentication-sdk-react
Version:
React Native plugin for Nevis Mobile Authentication SDK. Supports only mobile.
37 lines (33 loc) • 1.1 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.DeviceInformationSyncPlatformOperation = void 0;
var _PlatformOperation = require("./PlatformOperation");
/**
* Copyright © 2024 Nevis Security AG. All rights reserved.
*/
/**
* Helps in following the states of device information sync during method channel calls.
*/
class DeviceInformationSyncPlatformOperation extends _PlatformOperation.PlatformOperation {
/**
* The callback that will be invoked by the SDK with the {@link DeviceInformationSyncResult}
* when the operation completes.
*/
constructor(operationId, onResult) {
super();
this.operationId = operationId;
this.onResult = onResult;
}
/**
* Provides a way to handle the result of the device information sync method channel call.
*
* @param result the result of the method channel call.
*/
handleResult(result) {
this.onResult?.(result);
}
}
exports.DeviceInformationSyncPlatformOperation = DeviceInformationSyncPlatformOperation;
//# sourceMappingURL=DeviceInformationSyncPlatformOperation.js.map
;