How to check whether phone is connected to internet or not

But Im using blueprint so how can I implement this in my blueprint project