From 680f739df49605219be73e2f00463daa66422874 Mon Sep 17 00:00:00 2001 From: Website Deployment Script Date: Fri, 11 Nov 2016 10:11:15 +0000 Subject: [PATCH] Updated docs for next --- releases/next/docs/backandroid.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.