HarmBlockThreshold

public final class HarmBlockThreshold


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

Summary

Nested types

public static class HarmBlockThreshold.Companion

Public fields

static final @NonNull HarmBlockThreshold

Content with negligible harm is allowed.

static final @NonNull HarmBlockThreshold

Content with negligible to low harm is allowed.

static final @NonNull HarmBlockThreshold

All content is allowed regardless of harm.

static final @NonNull HarmBlockThreshold

Content with negligible to medium harm is allowed.

final int

Public fields

LOW_AND_ABOVE

public static final @NonNull HarmBlockThreshold LOW_AND_ABOVE

Content with negligible harm is allowed.

MEDIUM_AND_ABOVE

public static final @NonNull HarmBlockThreshold MEDIUM_AND_ABOVE

Content with negligible to low harm is allowed.

NONE

public static final @NonNull HarmBlockThreshold NONE

All content is allowed regardless of harm.

ONLY_HIGH

public static final @NonNull HarmBlockThreshold ONLY_HIGH

Content with negligible to medium harm is allowed.

ordinal

public final int ordinal