@idpass/hotspot-file-transfer-capacitor
v1.0.2
Published
Capacitor plugin for the SmartScanner Core library to scan MRZ, NFC and barcodes
Downloads
1
Readme
SmartScanner Capacitor
Capacitor plugin for Hotspot File Transfer.
Installation
This plugin can be installed from NPM:
# Using npm
npm install @idpass/hotspot-file-transfer-capacitor
# Using yarn
yarn add @idpass/hotspot-file-transfer-capacitor
Usage
The plugin can be used by accessing LocalHotspotFileTransferPlugin from @idpass/hotspot-file-transfer-capacitor directly.
import { FileTransfer } from '@idpass/hotspot-file-transfer-capacitor';
Sender example:
const result = await LocalHotspotFileTransferPlugin.executeFileTransfer({
role: 'SENDER',
theme_color: '#2196F3',
directory_path: '{path of the directory you want to transfer}'
});
Receiver example:
const result = await LocalHotspotFileTransferPlugin.executeFileTransfer({
role: 'RECEIVER',
theme_color: '#2196F3',
});