Android.App.Service.StopForeground Method
Remove this service from foreground state, allowing it to be killed if more memory is needed.

Syntax

[Android.Runtime.Register("stopForeground", "(Z)V", "")]
public void StopForeground (bool removeNotification)

See Also

Service.StartForeground(int, Android.App.Notification)

Parameters

removeNotification
If true, the notification previously provided to Service.StartForeground(int, Android.App.Notification) will be removed. Otherwise it will remain until a later call removes it (or the service is destroyed).

Remarks

Remove this service from foreground state, allowing it to be killed if more memory is needed.

[Android Documentation]

Requirements

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