PICO Platform Unity SDK
ComplianceService Class Reference

Static Public Member Functions

static Task< DetectSensitiveResultDetectSensitive (DetectSensitiveScene scene, string content)
 Detects sensitive words in texts. More...
 

Detailed Description

Application or games need comply with the laws where they distributes. So developers should take compliance into consideration. This module provides some useful methods to implement compliance.

Member Function Documentation

◆ DetectSensitive()

static Task< DetectSensitiveResult > DetectSensitive ( DetectSensitiveScene  scene,
string  content 
)
inlinestatic

Detects sensitive words in texts.

Parameters
sceneIndicates where the text appears. For example, the text can appear in a username, room name, in-room chat, etc.
contentThe text to check, which can be a username, room-chat message, etc.
Returns
Whether the text contains sensitive words. If it contains, the app should not allow the user to publish the text and can take the strategy proposed by the result.