Language

Context.RebindService(IServiceConnection, Context+BindServiceFlags) Method

Definition

Rebind an application service with updated bind service flags

[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

Parameters

conn
IServiceConnection

The connection interface previously supplied to bindService(). This parameter must not be null.

flags
Context.BindServiceFlags

Updated flags for the binding as per bindService(Intent, BindServiceFlags, Executor, ServiceConnection). Only flags returned from getUpdateableFlags() may be added or removed. This value cannot be null.

Attributes

Remarks

Rebind an application service with updated bind service flags

Android reference for android.content.Context.rebindService.

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