How to detect slow network connection in ROKU programmatically

Hi I am trying to detect the slow network in roku. But I didn’t get any useful documentation for the same. Is there a way to identify the slow network?