語言

Context.UpdateServiceBindings 方法

定義

對現有綁定進行批次更新。

[Android.Runtime.Register("updateServiceBindings", "(Ljava/util/Collection;)V", "GetUpdateServiceBindings_Ljava_util_Collection_Handler", ApiSince=37)]
public virtual void UpdateServiceBindings(System.Collections.Generic.ICollection<Android.Content.Context.UpdateBindingParams> params);
[<Android.Runtime.Register("updateServiceBindings", "(Ljava/util/Collection;)V", "GetUpdateServiceBindings_Ljava_util_Collection_Handler", ApiSince=37)>]
abstract member UpdateServiceBindings : System.Collections.Generic.ICollection<Android.Content.Context.UpdateBindingParams> -> unit
override this.UpdateServiceBindings : System.Collections.Generic.ICollection<Android.Content.Context.UpdateBindingParams> -> unit

參數

params
ICollection<Context.UpdateBindingParams>

裝訂收藏將持續更新。

屬性

備註

對現有綁定進行批次更新。 現有綁定可以用更新的旗標重新綁定,或解除綁定。 只有從 getUpdateableFlags() 回傳的旗標才會被新增或移除。

此 API 的行為就像是 rebindService(ServiceConnection,BindServiceFlags) 與 unbindService(ServiceConnection) API 的順序與參數的迭代順序相同。

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

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

適用於