IServiceConnection.OnNullBinding(ComponentName) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
바인딩되는 서비스가 메서드 android.app.Service#onBind(Intent) onBind()
에서 반환 null
될 때 호출됩니다.
[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
서비스 구현에서 바인딩이 거부된 서비스의 구체적인 구성 요소 이름입니다.
- 특성
설명
바인딩되는 서비스가 메서드 android.app.Service#onBind(Intent) onBind()
에서 반환 null
될 때 호출됩니다. 이는 이 ServiceConnection이 나타내는 시도된 서비스 바인딩을 사용할 수 없음을 나타냅니다.
<p class="note"><b>Note:</b> 바인딩을 요청한 앱은 이 콜백이 다음에 Context#bindService Context.bindService() bindService()
호출된 경우에도 이 ServiceConnection과 연결된 추적 리소스를 해제하기 위해 를 호출 Context#unbindService(ServiceConnection)
해야 합니다.
에 대한 Java 설명서입니다 android.content.ServiceConnection.onNullBinding(android.content.ComponentName)
.
이 페이지의 일부는 만들고 공유하며 에 설명된 용어에 따라 사용되는 작업을 기반으로 수정됩니다.