Android.App.ContentSafety 命名空間

提供 API 以請求內容分類並接收結果。

類別

名稱 Description
ClassifiableContent

一個代表待分類內容的類別。

ClassifiableContent.Builder

建構者 ClassifiableContent。

ClassifiableContent.InterfaceConsts

包含由 ClassifiableContent 綁定所暴露的 parcel 常數。

ContentClassificationResult

內容安全應用程式回應內容分類請求時回報的結果。

ContentClassificationResult.InterfaceConsts

包含由 ContentClassificationResult 綁定所暴露的 parcel 常數。

ContentSafetyManager

ContentSafetyManager 提供內容安全功能的存取權限。

介面

名稱 Description
IContentClassificationCallback

回撥以接收內容分類結果。

列舉

名稱 Description
ContentClassificationType

指定儲存在 ContentClassificationResult的分類。

備註

用來 ClassifiableContent.Builder 描述內容並 RequestContentClassification(ClassifiableContent, IExecutor, IContentClassificationCallback) 提交。 實作 IContentClassificationCallback 以接收 ContentClassificationResult。