IServiceConnection.OnNullBinding(ComponentName) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
バインドされているサービスがそのnull メソッドからandroid.app.Service#onBind(Intent) onBind()返されたときに呼び出されます。
[Android.Runtime.Register("onNullBinding", "(Landroid/content/ComponentName;)V", "GetOnNullBinding_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)]
public virtual void OnNullBinding(Android.Content.ComponentName? name);
[<Android.Runtime.Register("onNullBinding", "(Landroid/content/ComponentName;)V", "GetOnNullBinding_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)>]
abstract member OnNullBinding : Android.Content.ComponentName -> unit
override this.OnNullBinding : Android.Content.ComponentName -> unit
パラメーター
- name
- ComponentName
サービス実装によってバインディングが拒否されたサービスの具象コンポーネント名。
- 属性
注釈
バインドされているサービスがそのnull メソッドからandroid.app.Service#onBind(Intent) onBind()返されたときに呼び出されます。 これは、この ServiceConnection によって表される試行されたサービス バインドが使用できなくなることを示します。
<b>Note:</b> バインディングを要求したアプリは、Context#unbindService(ServiceConnection)の後にこのコールバックが呼び出された場合でも、この ServiceConnection に関連付けられている追跡リソースを解放するためにContext#bindService Context.bindService() bindService()を呼び出す必要があります。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。