Context.BindSharedIsolatedProcess 字段

定义

注意

This constant will be removed in the future version. Use Android.Content.Bind enum directly instead of this field.

标志: #bindIsolatedService将服务绑定到共享隔离进程。

[Android.Runtime.Register("BIND_SHARED_ISOLATED_PROCESS", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.Bind enum directly instead of this field.", true)]
public const Android.Content.Bind BindSharedIsolatedProcess = 8192;
[<Android.Runtime.Register("BIND_SHARED_ISOLATED_PROCESS", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.Bind enum directly instead of this field.", true)>]
val mutable BindSharedIsolatedProcess : Android.Content.Bind

字段值

Value = 8192
属性

注解

标志: #bindIsolatedService将服务绑定到共享隔离进程。 指定此标志允许在单个共享隔离进程中运行多个独立服务。

共享独立进程实例由 <var>instanceName</var> 参数标识 #bindIsolatedService(Intent, int, String, Executor, ServiceConnection)

对同一 var instanceName</var> 的后续调用#bindIsolatedService将导致隔离服务位于同一共享隔离>进程中。<

请注意,共享隔离进程的范围限定为调用应用;创建后,只有调用应用才能将其他独立服务绑定到共享进程。 但是,服务本身可以来自不同的 APK,因此不同的供应商。

仅允许将属性设置为android.R.attr#allowSharedIsolatedProcesstrue的服务绑定到共享隔离进程。

适用于 . 的 android.content.Context.BIND_SHARED_ISOLATED_PROCESSJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于