Android.App.Service.OnDestroy Method
Called by the system to notify a Service that it is no longer used and is being removed.

Syntax

[Android.Runtime.Register("onDestroy", "()V", "GetOnDestroyHandler")]
public virtual void OnDestroy ()

Remarks

Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead. Do not call this method directly.

[Android Documentation]

Requirements

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