From d5289479980b771800ca765aed2f89338778d8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Wed, 20 Jun 2018 13:49:02 +0200 Subject: [PATCH] Updated docs with new notification messages --- README.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f6daaa1..094c7da 100644 --- a/README.md +++ b/README.md @@ -352,16 +352,32 @@ Remove a previously added listener. Enable verbose logging of the internals of Monarch. -### monarch.SCREEN_VISIBLE -Message sent to listeners when a screen becomes visible. +### monarch.SCREEN_TRANSITION_IN_STARTED +Message sent to listeners when a screen has started to transition in. **PARAMETERS** * ```screen``` (hash) - Id of the screen -* ```previous_screen``` (hash) - Id of theprevious screen (if any) +* ```previous_screen``` (hash) - Id of the previous screen (if any) -### monarch.SCREEN_HIDDEN -Message sent to listeners when a screen is hidden. +### monarch.SCREEN_TRANSITION_IN_FINISHED +Message sent to listeners when a screen has finished to transition in. + +**PARAMETERS** +* ```screen``` (hash) - Id of the screen +* ```previous_screen``` (hash) - Id of the previous screen (if any) + + +### monarch.SCREEN_TRANSITION_OUT_STARTED +Message sent to listeners when a screen has started to transition out. + +**PARAMETERS** +* ```screen``` (hash) - Id of the screen +* ```next_screen``` (hash) - Id of the next screen (if any) + + +### monarch.SCREEN_TRANSITION_OUT_FINISHED +Message sent to listeners when a screen has finished to transition out. **PARAMETERS** * ```screen``` (hash) - Id of the screen