Android.Webkit.WebView.SetNetworkAvailable Method
Informs WebView of the network state.

Syntax

[Android.Runtime.Register("setNetworkAvailable", "(Z)V", "GetSetNetworkAvailable_ZHandler")]
public virtual void SetNetworkAvailable (bool networkUp)

Parameters

networkUp
a boolean indicating if network is available

Remarks

Informs WebView of the network state. This is used to set the JavaScript property window.navigator.isOnline and generates the online/offline event as specified in HTML5, sec. 5.7.7

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3