Android.App.ContentSafety Namespace

Provides APIs to request content classification and receive its result.

Classes

Name Description
ClassifiableContent

A class representing content to be classified.

ClassifiableContent.Builder

Builder for ClassifiableContent.

ClassifiableContent.InterfaceConsts

Contains the parcel constants exposed by the ClassifiableContent binding.

ContentClassificationResult

A result reported by a Content Safety app in response to a content classification request.

ContentClassificationResult.InterfaceConsts

Contains the parcel constants exposed by the ContentClassificationResult binding.

ContentSafetyManager

The ContentSafetyManager provides access to content safety features.

Interfaces

Name Description
IContentClassificationCallback

Callback for receiving content classification results.

Enums

Name Description
ContentClassificationType

Specifies the classification stored in a ContentClassificationResult.

Remarks

Use ClassifiableContent.Builder to describe the content and RequestContentClassification(ClassifiableContent, IExecutor, IContentClassificationCallback) to submit it. Implement IContentClassificationCallback to receive a ContentClassificationResult.