Closed Farbklex closed 4 years ago
In the readme you write under the section Custom UX with RecognizerRunnerView that we should overwrite our lifecycle methods.
Override your activity's onStart, onResume, onPause, onStop and onDestroy methods and call RecognizerRunnerView's lifecycle methods start, resume, pause, stop and destroy
Is this still true or can we instead use the setLifecycle method? It looks like it already takes care of calling the right lifecycle methods for us.
setLifecycle
Using a lifecyle owner would prevent some lines of boilerplate code and should be included in the readme.
Hi,
you are right, you can just use setLifecycle. Thanks for reporting it, we forgot to update readme after adding the new method.
In the readme you write under the section Custom UX with RecognizerRunnerView that we should overwrite our lifecycle methods.
Is this still true or can we instead use the
setLifecycle
method? It looks like it already takes care of calling the right lifecycle methods for us.Using a lifecyle owner would prevent some lines of boilerplate code and should be included in the readme.