Context.BindSharedIsolatedProcess 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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)>
後續呼叫 #bindIsolatedService 相同的 <var>instanceName</var> 會使孤立服務共置於同一共享的隔離程序中。
請注意,共享的隔離程序是針對呼叫應用程式的範圍;一旦建立,只有呼叫應用程式能將其他獨立服務綁定到共享程序中。 然而,這些服務本身可能來自不同的 APK,因此也可能是不同的供應商。
只有將屬性設定 android.R.attr#allowSharedIsolatedProcess 為 的 true 服務才被允許綁定到共享的隔離程序中。
Java 文件 android.content.Context.BIND_SHARED_ISOLATED_PROCESS。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。