diff --git a/releases/next/docs/backandroid.html b/releases/next/docs/backandroid.html index f3f0d6b8fe3..e747631ddf3 100644 --- a/releases/next/docs/backandroid.html +++ b/releases/next/docs/backandroid.html @@ -1,5 +1,7 @@ BackAndroid

BackAndroid #

Detect hardware back button presses, and programmatically invoke the default back button -functionality to exit the app if there are no listeners or if none of the listeners return true.

Example:

BackAndroid.addEventListener('hardwareBackPress', function() { +functionality to exit the app if there are no listeners or if none of the listeners return true. +The event subscriptions are called in reverse order (i.e. last registered subscription first), +and if one subscription returns true then subscriptions registered earlier will not be called.

Example:

BackAndroid.addEventListener('hardwareBackPress', function() { // this.onMainScreen and this.goBack are just examples, you need to use your own implementation here // Typically you would use the navigator here to go to the last state.