Splash screen event

I am new in ionic framework, i saw in android on splash screen loading we can do some operation like, if user is valid for login, getting data from server, navigation of view load. So I have question about at the time of splash screen loading can we make such above defined operation in ionic framework. Sorry for my poor English. So i want to create database as well as view loading decision like if user is already login then he will navigate to dashboard, otherwise login view.
Thank You !!