Socket
Book a DemoInstallSign in
Socket

mutants-jsbridge

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mutants-jsbridge

## 模块说明 Plugin是跨容器桥接库的核心基类,它统一了插件与容器通讯的方法,依赖env,创建不同的插件实例。 整个检测的过程是在适配层库中完成的,业务插件无需关心容器环境,调用统一的方法可以实现跨容器桥接的调用

latest
npmnpm
Version
2.0.58
Version published
Maintainers
1
Created
Source

mutants-jsbridge

模块说明

Plugin是跨容器桥接库的核心基类,它统一了插件与容器通讯的方法,依赖env,创建不同的插件实例。 整个检测的过程是在适配层库中完成的,业务插件无需关心容器环境,调用统一的方法可以实现跨容器桥接的调用

能力说明

应用管理

  • appInit 获取应用初始化信息接口
  • destroyApp 关闭应用接口

认证

  • getAuthCode 获取一次性随机code 用于获取用户信息

定位

  • getLocationInfo 获取位置信息
  • displayNearby 获取附近的地址列表

蓝牙

  • getBlueToothState 获取蓝牙状态
  • blueToothScan 扫描蓝牙列表
  • blueToothConnect 蓝牙连接
  • blueToothDisConnect 蓝牙断开链接
  • getBlueToothConnectState 获取设备连接状态
  • blueToothStopScan 停止扫描
  • blueToothPrint 蓝牙打印

系统能力

  • phoneCall 打电话
  • getSystemInfo 获取系统信息
  • getNetType 获取网络信息
  • jumpSystemSettings 跳转到设置界面
  • getStorage 获取缓存信息
  • setStorage 设置缓存信息
  • removeStorage 清除缓存信息
  • registerBackEvent 注册android back事件

图片能力

  • previewPhoto 预览图片
  • takePhoto 拍照
  • selectImgs 选择本地相册

路由能力

  • openLightApp 打开应用
  • getSourceAppParam 获取来源参数

文档能力

  • docPreview 文档预览

分享能力

  • share 调用分享组件

扫描能力

  • qrCodeScan 二维码扫描

UI控件

  • dateTimePicker 日期选择器

统计相关

  • collectionData 埋点采集

使用说明

import {qrCodeScan} from 'mutants-jsbridge';
qrCodeScan.then(qrCode=>{
    console.log('扫描到的二维码==========',qrCode);
});

FAQs

Package last updated on 14 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts