Pull To Refresh removing when offline

Hi Chrisbanes, Is there any way to remove Pull-To-Refresh when the app is offline? Pls let me know how to customize it.