語言

Context.BindAllowActivityStarts 欄位

定義

警告

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

標記 #bindService:若綁定來自可見的應用程式,綁定服務可從背景啟動活動。

[Android.Runtime.Register("BIND_ALLOW_ACTIVITY_STARTS", 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 BindAllowActivityStarts = 512;
[<Android.Runtime.Register("BIND_ALLOW_ACTIVITY_STARTS", 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 BindAllowActivityStarts : Android.Content.Bind

欄位值

Value = 512
屬性

備註

標記 #bindService:若綁定來自可見的應用程式,綁定服務可從背景啟動活動。 這是 SDK 版本 android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE之前的預設行為。 從那時起,預設行為改變為不允許綁定服務啟動背景活動,即使綁定的應用程式位於前景,除非綁定時指定此標誌。

Java 文件 android.content.Context.BIND_ALLOW_ACTIVITY_STARTS。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於