I need to know how we can close the application on swipe left in Android Wear 2.0. It's a standalone application.
- On swipe left which method we can override(If I want to do any other process)
- what is the method for close the application - which we have like on mobile android
this.finishAffinity();
Thanks in advance
For and
Activity
you don't have to do anything, as stated in the documentationIf you use a
Fragment
you need to wrap it in a SwipeDismissFrameLayout. For more details about how to do that, or how to handle other edge cases, have a look at the documentation referenced above.