Sample project of SDKs from Onyx-Intl, including onyxsdk-base, onyxsdk-scribble, onyxsdk-pen
To use the SDK, please add the following statement to your build.gradle:
compile ('com.onyx.android.sdk:onyxsdk-base:1.4.3')
// a tiny scribble sdk, Recommend you to use
compile('com.onyx.android.sdk:onyxsdk-pen:1.0.2')
// compile ('com.onyx.android.sdk:onyxsdk-scribble:1.0.8')
For onyxsdk-scribble SDK, dbflow library is inside the jitpack, so you have to add the following statement to your project build.gradle:
maven { url "https://jitpack.io" }
The project contains following examples that you should take care of:
- EpdDemoActivity: basic demo of EPD Screen Update with EpdController
- FrontLightDemoActivity: demo of FrontLightController. If device support frontLight, you can switch the screen brightness.
- FullScreenDemoActivity: example of full screen switch. If you want to switch full screen , please call the api
DeviceUtils.setFullScreenOnResume(this, fullscreen);
.That supports all devices.
- EnvironmentDemoActivity: shows how to use DeviceEnvironment to access removeable sdcard. You can call
DeviceEnvironment.getRemovableSDCardDirectory().getAbsolutePath();
TouchHelper
is the latest api that you can scribble with stylus. You should call it.For more detailed usage, check out it out onyxsdk-pen
- PenStylusTouchHelperDemoActivity is an example of onyxsdk-pen.
Following demos are example of onyxsdk-scribble.
There is TouchHelper
in the onyxsdk-scribble.
For more detailed usage, check out it out Scribble-TouchHelper
We have no restrictions on the view, you can set anything view.For example, SurfaceView , webview. We will return relative coordinates, According to the view you set.
- ScribbleStylusSurfaceViewDemoActivity : example of Onyx Scribble SDK for IMX6 devices with stylus
- ScribbleStylusWebViewDemoActivity : example of Onyx Scribble SDK for IMX6 devices with stylus
If the device supports touch, you scribble with your fingers.
- ScribbleTouchScreenDemoActivity: example of Scribble API from EpdController for IMX6 devices