Context.UnbindService(IServiceConnection) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
斷開應用程式服務。
[Android.Runtime.Register("unbindService", "(Landroid/content/ServiceConnection;)V", "GetUnbindService_Landroid_content_ServiceConnection_Handler")]
public abstract void UnbindService(Android.Content.IServiceConnection conn);
[<Android.Runtime.Register("unbindService", "(Landroid/content/ServiceConnection;)V", "GetUnbindService_Landroid_content_ServiceConnection_Handler")>]
abstract member UnbindService : Android.Content.IServiceConnection -> unit
參數
- conn
- IServiceConnection
先前提供給 bindService() 的連接介面。 此參數不得為空值。
- 屬性
備註
斷開應用程式服務。 服務重新啟動後,您將不再接聽來電,且服務現在可以隨時停止。
Java 文件 android.content.Context.unbindService(android.content.ServiceConnection)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
另請參閱
- <xref:Android.Content.Context.BindService(Android.Content.Intent%2c+Android.Content.IServiceConnection%2c+Android.Content.IServiceConnection)>