violatesOneOf

fun violatesOneOf(vararg checkedCategories: ModerationCategory): Boolean(source)

Evaluates whether the content violates any of the specified moderation categories.

Return

true if any of the specified categories are flagged as detected, false otherwise.

Parameters

checkedCategories

A variable number of ModerationCategory objects to check if the content is flagged in any of these categories.