Service.OnUnbind(Intent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when all clients have disconnected from a particular interface published by the service.
[Android.Runtime.Register("onUnbind", "(Landroid/content/Intent;)Z", "GetOnUnbind_Landroid_content_Intent_Handler")]
public virtual bool OnUnbind (Android.Content.Intent? intent);
[<Android.Runtime.Register("onUnbind", "(Landroid/content/Intent;)Z", "GetOnUnbind_Landroid_content_Intent_Handler")>]
abstract member OnUnbind : Android.Content.Intent -> bool
override this.OnUnbind : Android.Content.Intent -> bool
Parameters
- intent
- Intent
The Intent that was used to bind to this service,
as given to android.content.Context#bindService
Context.bindService
. Note that any extras that were included with
the Intent at that point will <em>not</em> be seen here.
Returns
Return true if you would like to have the service's
#onRebind
method later called when new clients bind to it.
- Attributes
Remarks
Called when all clients have disconnected from a particular interface published by the service. The default implementation does nothing and returns false.
Java documentation for android.app.Service.onUnbind(android.content.Intent)
.
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.