For an app that i'm developing i need to detect when the screen is flipped. I thought of something like on_pause()
or on_start()
that resides in the main application class, but I found nothing about it.
Any suggestions?
thanks
updates:
As suggets @jligeza i tried to add on_rotate
as follow:
from kivy.core.window import Window
class guiApp(App):
def on_start(self):
## Bind android flip-screen
def _on_flip_screen(ee):
print "flipping"
Window.bind(on_rotate=_on_flip_screen)
but this do nothing (no print showed when screen rotate).
I also tried it with on_flip
but with this event the app crash at start.
No good solution for this kind of problem?