Skip to content

Network Activity Indicators

On devices without edge-to-edge displays, a network activity indicator spins in the status bar at the top of the screen as networking occurs. It disappears when networking is complete. This indicator looks just like an activity indicator and is noninteractive.

Showing the indicator

The network activity indicator is not available in the Toolbox. To show it, use the UIApplication.SharedApplication.NetworkActivityIndicatorVisible and toggle it between true and false as follows:

1
2
3
4
5
// Display the activity indicator
UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;

// Hide the activity indicator
UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;