violatesAll

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

Checks if all the provided moderation categories are violated in this moderation result.

This method evaluates whether all specified categories have been flagged as "detected" within the current moderation result's category map.

Return

true if all provided categories are flagged as detected; false otherwise.

Parameters

checkedCategories

A variable number of ModerationCategory objects representing the categories to check for violations.