To be notified at the end of transition you could do:
def get_transition_scene(fn_callback):
def helper(self):
super(TransitionSceneWhatever, self).on_exit()
fn_callback()
trans = TransitionSceneWhatever()
trans.on_exit = helper
return trans
This can be a bit before you really want to receive the call, so maybe this can work better
layer_to_notify = MyLayer()
layer_to_notify.after_transition = False
def get_transition_scene(layer_to_notify):
def helper(self):
super(TransitionSceneWhatever, self).on_exit()
layer_to_notify.after_transition = True
trans = TransitionSceneWhatever()
trans.on_exit = helper
return trans
Now in layer.on_enter you can check the flag to know if the transition ended.
claudio