語言

Context.RebindService(IServiceConnection, Context+BindServiceFlags) 方法

定義

重新綁定一個應用程式服務,並更新了 bind 服務旗標

[Android.Runtime.Register("rebindService", "(Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;)V", "GetRebindService_Landroid_content_ServiceConnection_Landroid_content_Context_BindServiceFlags_Handler", ApiSince=37)]
public virtual void RebindService(Android.Content.IServiceConnection conn, Android.Content.Context.BindServiceFlags flags);
[<Android.Runtime.Register("rebindService", "(Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;)V", "GetRebindService_Landroid_content_ServiceConnection_Landroid_content_Context_BindServiceFlags_Handler", ApiSince=37)>]
abstract member RebindService : Android.Content.IServiceConnection * Android.Content.Context.BindServiceFlags -> unit
override this.RebindService : Android.Content.IServiceConnection * Android.Content.Context.BindServiceFlags -> unit

參數

conn
IServiceConnection

先前提供給 bindService() 的連接介面。 此參數不得為空值。

flags
Context.BindServiceFlags

依照 bindService(Intent、BindServiceFlags、Executor、ServiceConnection)更新綁定的旗標。 只有從 getUpdateableFlags() 回傳的旗標才會被新增或移除。 這個值不可能為零值。

屬性

備註

重新綁定一個應用程式服務,並更新了 bind 服務旗標

Android 參考資料。android.content.Context.rebindService

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於