[#BloombergLP-ball-Category-setLevels] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/Category.adoc[Category]::setLevels :relfileprefix: ../../../ :mrdocs: Set the threshold levels of this category to the specified `recordLevel`, `passLevel`, `triggerLevel`, and `triggerAllLevel` values, respectively, if each of the specified values is in the range `[0 .. 255]`. Return 0 on success, and a non‐zero value otherwise (with no effect on the threshold levels of this category). == Synopsis Declared in `<ball_category.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int setLevels( int recordLevel, int passLevel, int triggerLevel, int triggerAllLevel); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#