Context.RebindService(IServiceConnection, Context+BindServiceFlags) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
重新綁定一個應用程式服務,並更新了 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。