Android.Test.Mock.MockContext.UnbindService Method
Disconnect from an application service.

Syntax

[Android.Runtime.Register("unbindService", "(Landroid/content/ServiceConnection;)V", "GetUnbindService_Landroid_content_ServiceConnection_Handler")]
public override void UnbindService (Android.Content.IServiceConnection conn)

Parameters

conn
The connection interface previously supplied to bindService(). This parameter must not be null.

Remarks

Disconnect from an application service. You will no longer receive calls as the service is restarted, and the service is now allowed to stop at any time.

[Android Documentation]

Requirements

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