How to Notify user its internet speed is slow, by custom notification or message

I want to show custom message or notification, to user if its bandwidth is going low.
is there any way i can do that.