Android.App.Service.OnTaskRemoved Method
This is called if the service is currently running and the user has removed a task that comes from the service's application.

Syntax

[Android.Runtime.Register("onTaskRemoved", "(Landroid/content/Intent;)V", "GetOnTaskRemoved_Landroid_content_Intent_Handler")]
public virtual void OnTaskRemoved (Android.Content.Intent rootIntent)

Parameters

rootIntent
The original root Intent that was used to launch the task that is being removed.

Remarks

This is called if the service is currently running and the user has removed a task that comes from the service's application. If you have set Android.Content.PM.ServiceInfo.FlagStopWithTask then you will not receive this callback; instead, the service will simply be stopped.

[Android Documentation]

Requirements

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