次の方法で共有


ConditionProviderService.RequestUnbind Method

Definition

Request that the provider service be unbound.

[Android.Runtime.Register("requestUnbind", "()V", "", ApiSince=26)]
public void RequestUnbind ();
[<Android.Runtime.Register("requestUnbind", "()V", "", ApiSince=26)>]
member this.RequestUnbind : unit -> unit
Attributes

Remarks

Request that the provider service be unbound.

This will no longer receive subscription updates and will not be able to update the state of conditions until #requestRebind(ComponentName) is called. The service will likely be killed by the system after this call.

The service should wait for the #onConnected() event before performing this operation.

Java documentation for android.service.notification.ConditionProviderService.requestUnbind().

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