You can invoke methods both before and after the callback. In this example, the pre-callback function asks you to confirm the callback. If you cancel the callback, the CallBackCancelledFunction is called.