Package 

Interface DefaultHardwareBackBtnHandler


  • 
    public interface DefaultHardwareBackBtnHandler
    
                        

    Interface used by DeviceEventManagerModule to delegate hardware back button events. It's suppose to provide a default behavior since it would be triggered in the case when JS side doesn't want to handle back press events.

    • Method Summary

      Modifier and Type Method Description
      abstract void invokeDefaultOnBackPressed() By default, all onBackPress() calls should not execute the default backpress handler and shouldinstead propagate it to the JS instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • invokeDefaultOnBackPressed

         abstract void invokeDefaultOnBackPressed()

        By default, all onBackPress() calls should not execute the default backpress handler and shouldinstead propagate it to the JS instance. If JS doesn't want to handle the back press itself, itshall call back into native to invoke this function which should execute the default handler