diff --git a/Libraries/Utilities/BackHandler.android.js b/Libraries/Utilities/BackHandler.android.js index 21e320c5e457a1..d37fc6d4efa69e 100644 --- a/Libraries/Utilities/BackHandler.android.js +++ b/Libraries/Utilities/BackHandler.android.js @@ -74,6 +74,11 @@ var BackHandler = { DeviceEventManager.invokeDefaultBackPressHandler(); }, + /** + * Adds an event handler. Supported events: + * - `hardwareBackPress`: Fires when the Android hardware back button is pressed or when the + * tvOS menu button is pressed. + */ addEventListener: function ( eventName: BackPressEventName, handler: Function @@ -84,6 +89,9 @@ var BackHandler = { }; }, + /** + * Removes the event handler. + */ removeEventListener: function( eventName: BackPressEventName, handler: Function