Language

Service.OnRebind(Intent) Method

Definition

Called when new clients have connected to the service, after it had previously been notified that all had disconnected in its onUnbind(Intent).

[Android.Runtime.Register("onRebind", "(Landroid/content/Intent;)V", "GetOnRebind_Landroid_content_Intent_Handler")]
public virtual void OnRebind(Android.Content.Intent? intent);
[<Android.Runtime.Register("onRebind", "(Landroid/content/Intent;)V", "GetOnRebind_Landroid_content_Intent_Handler")>]
abstract member OnRebind : Android.Content.Intent -> unit
override this.OnRebind : Android.Content.Intent -> unit

Parameters

intent
Intent

Intent: The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.

Attributes

Remarks

Called when new clients have connected to the service, after it had previously been notified that all had disconnected in its onUnbind(Intent). This will only be called if the implementation of onUnbind(Intent) was overridden to return true.

Android reference for android.app.Service.onRebind.

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