Context.BindSharedIsolatedProcess Field

Definition

Caution

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

Flag for #bindIsolatedService: Bind the service into a shared isolated process.

[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

Field Value

Value = 8192
Attributes

Remarks

Flag for #bindIsolatedService: Bind the service into a shared isolated process. Specifying this flag allows multiple isolated services to be running in a single shared isolated process.

The shared isolated process instance is identified by the <var>instanceName</var> parameter in #bindIsolatedService(Intent, int, String, Executor, ServiceConnection).

Subsequent calls to #bindIsolatedService with the same <var>instanceName</var> will cause the isolated service to be co-located in the same shared isolated process.

Note that the shared isolated process is scoped to the calling app; once created, only the calling app can bind additional isolated services into the shared process. However, the services themselves can come from different APKs and therefore different vendors.

Only services that set the android.R.attr#allowSharedIsolatedProcess attribute to true are allowed to be bound into a shared isolated process.

Java documentation for android.content.Context.BIND_SHARED_ISOLATED_PROCESS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to