You can pass the webView through the void pointer of scheduledDisplay callback instead of turn it into a global