语言

ContentCaptureManager.ContentCaptureEnabled 属性

定义

检查是否为此活动启用了内容捕获。 - 或 - 由应用调用以显式启用或禁用内容捕获。

public bool ContentCaptureEnabled { [Android.Runtime.Register("isContentCaptureEnabled", "()Z", "", ApiSince=29)] get; [Android.Runtime.Register("setContentCaptureEnabled", "(Z)V", "", ApiSince=29)] set; }
[<get: Android.Runtime.Register("isContentCaptureEnabled", "()Z", "", ApiSince=29)>]
[<set: Android.Runtime.Register("setContentCaptureEnabled", "(Z)V", "", ApiSince=29)>]
member this.ContentCaptureEnabled : bool with get, set

属性值

true 为活动启用内容捕获时;否则,为 false.

特性

注解

属性 getter 文档:

检查是否为此活动启用了内容捕获。

有许多原因可能会禁用它,例如: <ul><li>App 本身通过 #setContentCaptureEnabled(boolean)禁用内容捕获。 <li>Intelligence 服务不允许列出此活动的包的内容捕获。 <li>Intelligence 服务不允许为此特定活动列出内容捕获。 <li>Intelligence 服务已全局禁用内容捕获。 <li>用户通过 Android 设置应用全局禁用内容捕获。 <li>设备制造商 (OEM) 已全局禁用内容捕获。 <li>暂时性错误,例如正在更新的智能服务包。 </ul>

Java文档android.view.contentcapture.ContentCaptureManager.isContentCaptureEnabled()。

属性 setter 文档:

由应用调用以显式启用或禁用内容捕获。

注意: 此调用不会在重新启动时保留,因此应用通常应调用它 android.app.Activity#onCreate(android.os.Bundle, android.os.PersistableBundle)。

Java文档android.view.contentcapture.ContentCaptureManager.setContentCaptureEnabled(boolean)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于