언어

IServiceConnection.OnNullBinding(ComponentName) 메서드

정의

바인딩되는 서비스가 메서드 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>참고:</b> 바인딩을 요청한 앱은 이 콜백이 다음에 Context#unbindService(ServiceConnection)호출된 경우에도 이 ServiceConnection과 연결된 추적 리소스를 해제하기 위해 계속 호출 Context#bindService Context.bindService() bindService() 해야 합니다.

에 대한 android.content.ServiceConnection.onNullBinding(android.content.ComponentName)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상