Skip to content

Commit 9fa15b7

Browse files
committed
Added splash screen dismissal doc
1 parent d8e7bfa commit 9fa15b7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/source/apis.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,26 @@ code::
159159
Working with the App lifecycle
160160
------------------------------
161161

162+
Dismissing the splash screen
163+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164+
165+
With the SDL2 bootstrap, the app's splash screen may not be dismissed
166+
immediately when your app has finished loading, due to a limitation
167+
with the way we check if the app has properly started. In this case,
168+
the splash screen overlaps the app gui for a short time.
169+
170+
You can dismiss the splash screen as follows. Run this code from your
171+
app build method (or use ``kivy.clock.Clock.schedule_once`` to run it
172+
in the following frame)::
173+
174+
from jnius import autoclass
175+
activity = autoclass('org.kivy.android.PythonActivity').mActivity
176+
activity.removeLoadingScreen()
177+
178+
This problem does not affect the Pygame bootstrap, as it uses a
179+
different splash screen method.
180+
181+
162182
Handling the back button
163183
~~~~~~~~~~~~~~~~~~~~~~~~
164184

0 commit comments

Comments
 (0)