Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bluetooth-simple-android-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluetooth-simple-android-plugin

Capacitorjs plugin to use the bluetooth adapter of an android device. simply and direct / Complemento Capacitorjs para usar el adaptador bluetooth de un dispositivo Android. simple y directo

  • 0.0.19
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

bluetooth-simple-android-plugin

Capacitorjs plugin to use the bluetooth adapter of an android device. simply and direct / Plugin de Capacitorjs para usar el adaptador bluetooth de un dispositivo Android. simple y directo

Install

npm install bluetooth-simple-android-plugin
npx cap sync

Para utilizar este plugin se necesita activar los siguientes permisos en el archivo manifest / To use this plugin you need to activate the following permissions in the manifest

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

API

Simplemente importe la clase. Luego puede utilizar sus metodos estáricos directamente. Simply import the class. Afther, you can use its static methods directly.

    import { BluetoothSimple } from 'bluetooth-simple-android-plugin';
  • setName(...)
  • startDiscovery(...)
  • setDiscoverable()

setName(...)

setName(options: { name: string; }) => any

Cambia el nombre del dispositivo. Change the name of device.

ParamTypeDescription
options{ name: string; }Nombre que queires cambiar. Name that you want to change.

Returns: any


startDiscovery(...)

startDiscovery(callback: MyPluginCallback) => void

Activa la detección de los dispositivos visibles. Cada vez que se detecta un nuevo dispositivo se lanza la funcion callback pasada por parámetros. Activate the detection of visible devices. For each new device is detected, is throw the callback function passed by params.

ParamTypeDescription
callback(message: MyData | null, err?: any) => voidFunción que se ejecutará segun se vayan descubriendo los dispositivos.

setDiscoverable()

setDiscoverable() => any

Activa el estado de ser detectado del dispositivo. Activate the state of to be detected of device.

Returns: any


Keywords

FAQs

Package last updated on 15 Aug 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc