Skip to content

Scan draughts engine plugin for Ionic Capacitor.

License

Notifications You must be signed in to change notification settings

RoepStoep/capacitor-scan

 
 

Repository files navigation

Capacitor Scan plugin

Scan 3.1 draughts engine by Fabien Letouzey, interface for Ionic Capacitor.

Example usage

API

getMaxMemory()

getMaxMemory() => Promise<{ value: number; }>

Returns the maximum number of MB that can be used by the engine.

Returns: Promise<{ value: number; }>


getCPUArch()

getCPUArch() => Promise<{ value: string; }>

Returns CPU architecture. Possible values are: armeabi, armeabi-v7a, arm64-v8a, x86, x86_64, mips, mips64.

Returns: Promise<{ value: string; }>


start(...)

start(options: { variant: string; }) => Promise<void>

Initialize the engine. You must call this method before sending commands.

Param Type
options { variant: string; }

cmd(...)

cmd(options: { cmd: string; }) => Promise<void>

Sends a command to the engine. You can listen to the output using the "scan" window event.

Param Type
options { cmd: string; }

exit()

exit() => Promise<void>

Stops the engine.


About

Scan draughts engine plugin for Ionic Capacitor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C++ 91.7%
  • Java 2.4%
  • Swift 2.0%
  • Objective-C++ 1.0%
  • Makefile 0.9%
  • Ruby 0.7%
  • Other 1.3%