共用方式為


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,因此不同的廠商。

只允許將 屬性true設定android.R.attr#allowSharedIsolatedProcess為的服務系結至共用隔離進程。

android.content.Context.BIND_SHARED_ISOLATED_PROCESSJava 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於