Protected
_nativeStarts capturing accelerometer values.
start
0.1
Stops capturing.
stop
0.1
Protected
Abstract
createProtected
preProtected
addProtected
addIOSPropsRest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Callback to capture accelerometer events.
0.1 onAccelerate
import AcceleroMeter from '@smartface/native/device/accelerometer';
AcceleroMeter.on(AcceleroMeter.Events.Accelerate, (params) => {
console.info('onAccelerate', params);
});
Generated using TypeDoc
Since
0.1
Accelerometer is an interface for accessing accelerometer data on the device.
Example