언어

Context.BindServiceAsUser 메서드

정의

오버로드

속성 Description
BindServiceAsUser(Intent, IServiceConnection, Context+BindServiceFlags, UserHandle)

BindServiceFlags 개체를 가져오려면 bindServiceAsUser(Intent,ServiceConnection,int,UserHandle) Call BindServiceFlags.of(long)를 참조하세요.

BindServiceAsUser(Intent, IServiceConnection, Int32, UserHandle)

와 같은 방식으로 user지정된 #bindService 서비스에 바인딩합니다.

BindServiceAsUser(Intent, IServiceConnection, Context+BindServiceFlags, UserHandle)

BindServiceFlags 개체를 가져오려면 bindServiceAsUser(Intent,ServiceConnection,int,UserHandle) Call BindServiceFlags.of(long)를 참조하세요.

[Android.Runtime.Register("bindServiceAsUser", "(Landroid/content/Intent;Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;Landroid/os/UserHandle;)Z", "GetBindServiceAsUser_Landroid_content_Intent_Landroid_content_ServiceConnection_Landroid_content_Context_BindServiceFlags_Landroid_os_UserHandle_Handler", ApiSince=34)]
public virtual bool BindServiceAsUser(Android.Content.Intent service, Android.Content.IServiceConnection conn, Android.Content.Context.BindServiceFlags flags, Android.OS.UserHandle user);
[<Android.Runtime.Register("bindServiceAsUser", "(Landroid/content/Intent;Landroid/content/ServiceConnection;Landroid/content/Context$BindServiceFlags;Landroid/os/UserHandle;)Z", "GetBindServiceAsUser_Landroid_content_Intent_Landroid_content_ServiceConnection_Landroid_content_Context_BindServiceFlags_Landroid_os_UserHandle_Handler", ApiSince=34)>]
abstract member BindServiceAsUser : Android.Content.Intent * Android.Content.IServiceConnection * Android.Content.Context.BindServiceFlags * Android.OS.UserHandle -> bool
override this.BindServiceAsUser : Android.Content.Intent * Android.Content.IServiceConnection * Android.Content.Context.BindServiceFlags * Android.OS.UserHandle -> bool

매개 변수

service
Intent

이 값은 null일 수 없습니다.

conn
IServiceConnection

이 값은 null일 수 없습니다.

flags
Context.BindServiceFlags

이 값은 null일 수 없습니다.

user
UserHandle

이 값은 null일 수 없습니다.

반품

BindServiceFlags 개체를 가져오려면 bindServiceAsUser(Intent,ServiceConnection,int,UserHandle) Call BindServiceFlags.of(long)를 참조하세요.

특성

설명

BindServiceFlags 개체를 가져오려면 bindServiceAsUser(Intent,ServiceConnection,int,UserHandle) Call BindServiceFlags.of(long)를 참조하세요.

에 대한 android.content.Context.bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, android.content.Context.BindServiceFlags, android.os.UserHandle)Java 설명서

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

적용 대상

BindServiceAsUser(Intent, IServiceConnection, Int32, UserHandle)

와 같은 방식으로 user지정된 #bindService 서비스에 바인딩합니다.

[Android.Runtime.Register("bindServiceAsUser", "(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/UserHandle;)Z", "GetBindServiceAsUser_Landroid_content_Intent_Landroid_content_ServiceConnection_ILandroid_os_UserHandle_Handler", ApiSince=30)]
public virtual bool BindServiceAsUser(Android.Content.Intent service, Android.Content.IServiceConnection conn, int flags, Android.OS.UserHandle user);
[<Android.Runtime.Register("bindServiceAsUser", "(Landroid/content/Intent;Landroid/content/ServiceConnection;ILandroid/os/UserHandle;)Z", "GetBindServiceAsUser_Landroid_content_Intent_Landroid_content_ServiceConnection_ILandroid_os_UserHandle_Handler", ApiSince=30)>]
abstract member BindServiceAsUser : Android.Content.Intent * Android.Content.IServiceConnection * int * Android.OS.UserHandle -> bool
override this.BindServiceAsUser : Android.Content.Intent * Android.Content.IServiceConnection * int * Android.OS.UserHandle -> bool

매개 변수

service
Intent

연결할 서비스를 식별합니다. 의도는 명시적 구성 요소 이름을 지정해야 합니다.

conn
IServiceConnection

서비스가 시작되고 중지될 때 정보를 받습니다. 유효한 ServiceConnection 개체여야 합니다. null이 아니어야 합니다.

flags
Int32

바인딩에 대한 작업 옵션입니다. 0, ,, #BIND_AUTO_CREATE#BIND_DEBUG_UNBIND, #BIND_NOT_FOREGROUND#BIND_ABOVE_CLIENT, #BIND_ALLOW_OOM_MANAGEMENT#BIND_WAIVE_PRIORITY. #BIND_IMPORTANT 또는 #BIND_ADJUST_WITH_ACTIVITY입니다.

user
UserHandle

이 값은 null일 수 없습니다.

반품

true 시스템이 클라이언트에 바인딩할 수 있는 권한이 있는 서비스를 가져오는 중이면 입니다. false 시스템에서 서비스를 찾을 수 없는 경우 이 메서드가 반환#unbindService된 경우에도 연결을 해제하도록 호출 false 해야 합니다.

특성

설명

와 같은 방식으로 user지정된 #bindService 서비스에 바인딩합니다.

다음 조건 중 하나가 충족<되어야 합니다. ul><li>호출자는 /li liandroid.Manifest.permission.INTERACT_ACROSS_USERS_FULL<>호출자가 <>있고 (해당 구성 요소의 패키지에 의해 결정됨)와 동일한 패키지를 android.Manifest.permission.INTERACT_ACROSS_USERS 가지 service 며, Android 버전은 최소한android.os.Build.VERSION_CODES#TIRAMISU< /li li><>호출자가 가지고 android.Manifest.permission.INTERACT_ACROSS_USERS 있으며 지정된 user</li><li>호출자와 android.Manifest.permission.INTERACT_ACROSS_PROFILES 동일한 프로필 그룹에 있으며 지정된 user 것과 동일한 프로필 그룹에 있으며 /liservice와 동일한 패키지<>입니다.</ul>

에 대한 android.content.Context.bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle)Java 설명서

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

적용 대상