How can show toast when splash screen is shown

i want to check user have a connection to the internet or not when splash screen is active or shown and want to notify user with some toast on this splash screen with this message " you are offline please try again " and some button with this toast for retry.
how can do this.please help me thank you so much.

The general solution would be have the first screen of your app mirror your splash screen, then you are free to show what you need. See Josh’s post as a starting point for this.

thank you so much i will test it.