@idpass/hotspot-file-transfer-capacitor
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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',
});

Readme

Keywords

Package Sidebar

Install

npm i @idpass/hotspot-file-transfer-capacitor

Weekly Downloads

1

Version

1.0.2

License

Apache-2.0

Unpacked Size

656 kB

Total Files

65

Last publish

Collaborators

  • lemuelduragos
  • uocnb
  • nicholenl
  • haklyray
  • pmigueld
  • typelogic
  • arnellebalane
  • jeremi.joslin
  • reubenm