ContextWrapper.BindService(Intent, IServiceConnection, Bind) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
애플리케이션 서비스에 연결하여 필요한 경우 만듭니다.
[Android.Runtime.Register("bindService", "(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z", "GetBindService_Landroid_content_Intent_Landroid_content_ServiceConnection_IHandler")]
public override bool BindService(Android.Content.Intent? service, Android.Content.IServiceConnection? conn, Android.Content.Bind flags);
[<Android.Runtime.Register("bindService", "(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z", "GetBindService_Landroid_content_Intent_Landroid_content_ServiceConnection_IHandler")>]
override this.BindService : Android.Content.Intent * Android.Content.IServiceConnection * Android.Content.Bind -> bool
매개 변수
- service
- Intent
연결할 서비스를 식별합니다. 의도는 명시적 구성 요소 이름 또는 서비스에서 게시한 이름과 일치 IntentFilter 하도록 논리적 설명(작업, 범주 등)을 지정할 수 있습니다.
- conn
- IServiceConnection
서비스가 시작되고 중지될 때 정보를 받습니다. 유효한 ServiceConnection 개체여야 합니다. null이 아니어야 합니다.
- flags
- Bind
바인딩에 대한 작업 옵션입니다. 0, , , , , ALLOW_OOM_MANAGEMENT Android.Content.Context.BIND_WAIVE_PRIORITY .
반품
시스템이 클라이언트에 바인딩할 수 있는 권한이 있는 서비스를 가져오는 중이면 true입니다. 시스템에서 서비스를 찾을 수 없거나 클라이언트에 바인딩할 권한이 없는 경우 false입니다. 반환 값에 관계없이 나중에 unbindService(ServiceConnection)를 호출하여 연결을 해제해야 합니다.
- 특성
설명
이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.