moderation library
Classes
- InterpretedLabelValueDefinition
- ModerationCause
- ModerationCauseBlockedBy
- ModerationCauseBlocking
- ModerationCauseBlockOther
- ModerationCauseHidden
- ModerationCauseLabel
- ModerationCauseMuted
- ModerationCauseMuteWord
- ModerationCauseSource
- ModerationCauseSourceLabeler
- ModerationCauseSourceList
- ModerationCauseSourceUser
- ModerationDecision
- ModerationOpts
- ModerationPrefs
- ModerationPrefsLabeler
- ModerationSubjectFeedGenerator
- ModerationSubjectNotification
- ModerationSubjectPost
- ModerationSubjectProfile
- ModerationSubjectUserList
- ModerationUI
Enums
Extensions
- InterpretedLabelValueDefinitionPatterns on InterpretedLabelValueDefinition
- Adds pattern-matching-related methods to InterpretedLabelValueDefinition.
- LabelerServiceExtension on LabelerService
- ModerationCauseBlockedByPatterns on ModerationCauseBlockedBy
- Adds pattern-matching-related methods to ModerationCauseBlockedBy.
- ModerationCauseBlockingPatterns on ModerationCauseBlocking
- Adds pattern-matching-related methods to ModerationCauseBlocking.
- ModerationCauseBlockOtherPatterns on ModerationCauseBlockOther
- Adds pattern-matching-related methods to ModerationCauseBlockOther.
- ModerationCauseHiddenPatterns on ModerationCauseHidden
- Adds pattern-matching-related methods to ModerationCauseHidden.
- ModerationCauseLabelPatterns on ModerationCauseLabel
- Adds pattern-matching-related methods to ModerationCauseLabel.
- ModerationCauseMutedPatterns on ModerationCauseMuted
- Adds pattern-matching-related methods to ModerationCauseMuted.
- ModerationCauseMuteWordPatterns on ModerationCauseMuteWord
- Adds pattern-matching-related methods to ModerationCauseMuteWord.
- ModerationCausePatterns on ModerationCause
- Adds pattern-matching-related methods to ModerationCause.
- ModerationCauseSourceLabelerPatterns on ModerationCauseSourceLabeler
- Adds pattern-matching-related methods to ModerationCauseSourceLabeler.
- ModerationCauseSourceListPatterns on ModerationCauseSourceList
- Adds pattern-matching-related methods to ModerationCauseSourceList.
- ModerationCauseSourcePatterns on ModerationCauseSource
- Adds pattern-matching-related methods to ModerationCauseSource.
- ModerationCauseSourceUserPatterns on ModerationCauseSourceUser
- Adds pattern-matching-related methods to ModerationCauseSourceUser.
- ModerationOptsPatterns on ModerationOpts
- Adds pattern-matching-related methods to ModerationOpts.
- ModerationPrefsLabelerPatterns on ModerationPrefsLabeler
- Adds pattern-matching-related methods to ModerationPrefsLabeler.
- ModerationPrefsPatterns on ModerationPrefs
- Adds pattern-matching-related methods to ModerationPrefs.
- ModerationSubjectFeedGeneratorPatterns on ModerationSubjectFeedGenerator
- Adds pattern-matching-related methods to ModerationSubjectFeedGenerator.
- ModerationSubjectNotificationPatterns on ModerationSubjectNotification
- Adds pattern-matching-related methods to ModerationSubjectNotification.
- ModerationSubjectPostPatterns on ModerationSubjectPost
- Adds pattern-matching-related methods to ModerationSubjectPost.
- ModerationSubjectProfilePatterns on ModerationSubjectProfile
- Adds pattern-matching-related methods to ModerationSubjectProfile.
- ModerationSubjectUserListPatterns on ModerationSubjectUserList
- Adds pattern-matching-related methods to ModerationSubjectUserList.
- ModerationUIExtension on ModerationUI
- ModerationUIPatterns on ModerationUI
- Adds pattern-matching-related methods to ModerationUI.
- PreferencesExtension on ActorGetPreferencesOutput
Constants
-
kBlockBehavior
→ const Map<
String, ModerationBehavior> -
kDefaultLabelSettings
→ const Map<
KnownLabelValue, LabelPreference> - kGraphicMediaInterpretedLabelValueDefinition → const InterpretedLabelValueDefinition
-
kHideBehavior
→ const Map<
String, ModerationBehavior> - kHideInterpretedLabelValueDefinition → const InterpretedLabelValueDefinition
-
kLabels
→ const Map<
KnownLabelValue, InterpretedLabelValueDefinition> -
kMuteBehavior
→ const Map<
String, ModerationBehavior> -
kMuteWordBehavior
→ const Map<
String, ModerationBehavior> - kNoopBehavior → const Map
- kNoUnauthenticatedInterpretedLabelValueDefinition → const InterpretedLabelValueDefinition
- kNudityInterpretedLabelValueDefinition → const InterpretedLabelValueDefinition
- kPornInterpretedLabelValueDefinition → const InterpretedLabelValueDefinition
- kSexualInterpretedLabelValueDefinition → const InterpretedLabelValueDefinition
- kWarnInterpretedLabelValueDefinition → const InterpretedLabelValueDefinition
Functions
-
getInterpretedLabelValueDefinition(
{required String identifier, LabelPreference defaultSetting = LabelPreference.warn, required String severity, required String blurs, String? definedBy, bool adultOnly = false}) → InterpretedLabelValueDefinition -
getInterpretedLabelValueDefinitions(
LabelerViewDetailed labelerView) → List< InterpretedLabelValueDefinition> -
getLabelerHeaders(
ModerationPrefs? prefs) → Map< String, String> -
hasMutedWord(
{required List< MutedWord> mutedWords, required String text, List<RichtextFacet> ? facets, List<String> ? outlineTags, List<String> ? languages}) → bool -
moderateFeedGenerator(
ModerationSubjectFeedGenerator subject, ModerationOpts opts) → ModerationDecision -
moderateNotification(
ModerationSubjectNotification subject, ModerationOpts opts) → ModerationDecision -
moderatePost(
ModerationSubjectPost subject, ModerationOpts opts) → ModerationDecision -
moderateProfile(
ModerationSubjectProfile subject, ModerationOpts opts) → ModerationDecision -
moderateUserList(
ModerationSubjectUserList subject, ModerationOpts opts) → ModerationDecision