(Consumer<Boolean> canSwitchCallback)
| 67 | } |
| 68 | |
| 69 | public void onSwitchAway(Consumer<Boolean> canSwitchCallback) { |
| 70 | canSwitchCallback.accept(true); |
| 71 | } |
| 72 | |
| 73 | public void onClose(Consumer<Boolean> canCloseCallback) { |
| 74 | if (canCloseCallback != null) { //will be null if app exited |