OnErrorListener

fun interface OnErrorListener

Interface to notify when an error occurs.

Functions

Link copied to clipboard

Called when an error is detected, either at initialization because excessive changes in sensor measurements are found, or because sensor becomes unreliable. When an error occurs, generator is stopped and needs to be restarted to be used again.