HarmBlockThreshold
public struct HarmBlockThreshold : EncodableProtoEnum, Sendableextension SafetySetting.HarmBlockThreshold: EncodableBlock at and beyond a specified HarmProbability.
-
Content with
.negligiblewill be allowed.Declaration
Swift
public static let blockLowAndAbove: SafetySetting.HarmBlockThreshold -
Content with
.negligibleand.lowwill be allowed.Declaration
Swift
public static let blockMediumAndAbove: SafetySetting.HarmBlockThreshold -
Content with
.negligible,.low, and.mediumwill be allowed.Declaration
Swift
public static let blockOnlyHigh: SafetySetting.HarmBlockThreshold -
All content will be allowed.
Declaration
Swift
public static let blockNone: SafetySetting.HarmBlockThreshold -
Turn off the safety filter.
Declaration
Swift
public static let off: SafetySetting.HarmBlockThreshold