语言

ContentClassificationType 枚举

定义

指定存储在 a ContentClassificationResult. 中的分类。

public enum ContentClassificationType
type ContentClassificationType = 
继承
ContentClassificationType

字段

名称 值 说明
Unclassified 0

指示无法对内容进行分类。

Android 参考。android.app.contentsafety.ContentClassificationResult.TYPE_UNCLASSIFIED

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

Allowed 1

指示允许内容。

Android 参考。android.app.contentsafety.ContentClassificationResult.TYPE_ALLOWED

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

Warning 2

指示应为内容发出警告。

Android 参考。android.app.contentsafety.ContentClassificationResult.TYPE_WARNING

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

Blocked 3

指示应阻止内容。

Android 参考。android.app.contentsafety.ContentClassificationResult.TYPE_BLOCKED

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

注解

构造 ContentClassificationResult 函数接受其中一个值,其 Type 属性返回存储的值。

适用于