HarmBlockThreshold

class HarmBlockThreshold


Represents the threshold for a HarmCategory to be allowed by SafetySetting.

Summary

Public companion properties

HarmBlockThreshold

Content with negligible harm is allowed.

HarmBlockThreshold

Content with negligible to low harm is allowed.

HarmBlockThreshold

All content is allowed regardless of harm.

HarmBlockThreshold

Content with negligible to medium harm is allowed.

Public properties

Int

Public companion properties

LOW_AND_ABOVE

val LOW_AND_ABOVEHarmBlockThreshold

Content with negligible harm is allowed.

MEDIUM_AND_ABOVE

val MEDIUM_AND_ABOVEHarmBlockThreshold

Content with negligible to low harm is allowed.

NONE

val NONEHarmBlockThreshold

All content is allowed regardless of harm.

ONLY_HIGH

val ONLY_HIGHHarmBlockThreshold

Content with negligible to medium harm is allowed.

Public properties

ordinal

val ordinalInt