Language

Context.UpdateServiceBindings Method

Definition

Perform a batch update of existing bindings.

[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

Parameters

params
ICollection<Context.UpdateBindingParams>

The collection of bindings to be updated.

Attributes

Remarks

Perform a batch update of existing bindings. Existing bindings can be rebound with an updated set of flags, or unbound. Only flags returned from getUpdateableFlags() may be added or removed.

This API behaves as if the rebindService(ServiceConnection,BindServiceFlags) and unbindService(ServiceConnection) API are called in the same order as the params are iterated.

Android reference for android.content.Context.updateServiceBindings.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to