Android.Net.VpnService.OnRevoke Method
Invoked when the application is revoked.

Syntax

[Android.Runtime.Register("onRevoke", "()V", "GetOnRevokeHandler")]
public virtual void OnRevoke ()

See Also

VpnService.Prepare(Android.Content.Context)

Remarks

Invoked when the application is revoked. At this moment, the VPN interface is already deactivated by the system. The application should close the file descriptor and shut down gracefully. The default implementation of this method is calling Android.App.Service.StopSelf.

Calls to this method may not happen on the main thread of the process.

[Android Documentation]

Requirements

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