New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

capacitor-onyx

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-onyx

Provides an interface to the Onyx SDK

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

capacitor-onyx

Provides an interface to the Onyx SDK for the Boox series of tablets

Install

npm install capacitor-onyx
npx cap sync

Configure Gradle

Add the following to your app's build.gradle repositories block (it will also have the flatDirs config from default capacitor).

repositories {
    maven {
        url "http://repo.boox.com/repository/maven-public"
        allowInsecureProtocol = true
    }
}

And in the android block in your build.gradle:

android {
    //..namespace, defaultConfig, buildTypes, etc
    packagingOptions {
        jniLibs {
            pickFirsts += [
                    'lib/arm64-v8a/libc++_shared.so',
                    'lib/armeabi-v7a/libc++_shared.so',
                    'lib/x86/libc++_shared.so',
                    'lib/x86_64/libc++_shared.so'
            ]
        }
    }
}

Last, add the following line to your gradle.properties file

android.enableJetifier=true

API

start(...)

start(options: DrawAreaOptions) => Promise<void>
ParamType
optionsDrawAreaOptions

stop()

stop() => Promise<void>

configureStroke(...)

configureStroke(options: StrokeOptions) => Promise<void>
ParamType
optionsStrokeOptions

addListener('onDrawingStart', ...)

addListener(name: 'onDrawingStart', callback: (point: Point) => void) => PluginListenerHandle
ParamType
name'onDrawingStart'
callback(point: Point) => void

Returns: PluginListenerHandle


addListener('onDrawingEnd', ...)

addListener(name: 'onDrawingEnd', callback: () => void) => PluginListenerHandle
ParamType
name'onDrawingEnd'
callback() => void

Returns: PluginListenerHandle


addListener('onStroke', ...)

addListener(name: 'onStroke', callback: (stroke: Stroke) => void) => PluginListenerHandle
ParamType
name'onStroke'
callback(stroke: Stroke) => void

Returns: PluginListenerHandle


addListener('onErasingStart', ...)

addListener(name: 'onErasingStart', callback: (point: Point) => void) => PluginListenerHandle
ParamType
name'onErasingStart'
callback(point: Point) => void

Returns: PluginListenerHandle


addListener('onErasingEnd', ...)

addListener(name: 'onErasingEnd', callback: () => void) => PluginListenerHandle
ParamType
name'onErasingEnd'
callback() => void

Returns: PluginListenerHandle


addListener('onErase', ...)

addListener(name: 'onErase', callback: (stroke: Stroke) => void) => PluginListenerHandle
ParamType
name'onErase'
callback(stroke: Stroke) => void

Returns: PluginListenerHandle


removeAllListeners()

removeAllListeners() => void

Interfaces

DrawAreaOptions
PropType
xnumber
ynumber
heightnumber
widthnumber
StrokeOptions
PropType
widthnumber
style'pencil' | 'fountain' | 'marker' | 'neo-brush' | 'charcoal' | 'dash' | 'charcoal-v2'
PluginListenerHandle
PropType
remove() => Promise<void>
Point
PropType
xnumber
ynumber
sizenumber
pressurenumber
timestampnumber
Stroke
PropType
pointsPoint[]

Keywords

FAQs

Package last updated on 06 Jul 2023

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