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之前的默认行为。 此后,默认行为已更改为禁止绑定服务启动后台活动,即使绑定到它的应用位于前台,除非绑定时指定此标志。

android.content.Context.BIND_ALLOW_ACTIVITY_STARTSJava 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

适用于