Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
capacitor-onyx
Advanced tools
Provides an interface to the Onyx SDK for the Boox series of tablets
npm install capacitor-onyx
npx cap sync
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
start(...)
stop()
configureStroke(...)
addListener('onDrawingStart', ...)
addListener('onDrawingEnd', ...)
addListener('onStroke', ...)
addListener('onErasingStart', ...)
addListener('onErasingEnd', ...)
addListener('onErase', ...)
removeAllListeners()
start(options: DrawAreaOptions) => Promise<void>
Param | Type |
---|---|
options | DrawAreaOptions |
stop() => Promise<void>
configureStroke(options: StrokeOptions) => Promise<void>
Param | Type |
---|---|
options | StrokeOptions |
addListener(name: 'onDrawingStart', callback: (point: Point) => void) => PluginListenerHandle
Param | Type |
---|---|
name | 'onDrawingStart' |
callback | (point: Point) => void |
Returns: PluginListenerHandle
addListener(name: 'onDrawingEnd', callback: () => void) => PluginListenerHandle
Param | Type |
---|---|
name | 'onDrawingEnd' |
callback | () => void |
Returns: PluginListenerHandle
addListener(name: 'onStroke', callback: (stroke: Stroke) => void) => PluginListenerHandle
Param | Type |
---|---|
name | 'onStroke' |
callback | (stroke: Stroke) => void |
Returns: PluginListenerHandle
addListener(name: 'onErasingStart', callback: (point: Point) => void) => PluginListenerHandle
Param | Type |
---|---|
name | 'onErasingStart' |
callback | (point: Point) => void |
Returns: PluginListenerHandle
addListener(name: 'onErasingEnd', callback: () => void) => PluginListenerHandle
Param | Type |
---|---|
name | 'onErasingEnd' |
callback | () => void |
Returns: PluginListenerHandle
addListener(name: 'onErase', callback: (stroke: Stroke) => void) => PluginListenerHandle
Param | Type |
---|---|
name | 'onErase' |
callback | (stroke: Stroke) => void |
Returns: PluginListenerHandle
removeAllListeners() => void
Prop | Type |
---|---|
x | number |
y | number |
height | number |
width | number |
Prop | Type |
---|---|
width | number |
style | 'pencil' | 'fountain' | 'marker' | 'neo-brush' | 'charcoal' | 'dash' | 'charcoal-v2' |
Prop | Type |
---|---|
remove | () => Promise<void> |
Prop | Type |
---|---|
x | number |
y | number |
size | number |
pressure | number |
timestamp | number |
Prop | Type |
---|---|
points | Point[] |
FAQs
Provides an interface to the Onyx SDK
We found that capacitor-onyx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.