# ActiveFence Video Content Moderation (/en/realtime-media/marketplace/build/add-moderation-and-intelligence/activefence/flutter)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

[ActiveFence](https://www.activefence.com/) provides trust and safety solutions to protect online platforms and their users from malicious behavior and content. By integrating ActiveFence capabilities in your app, you can design the exact content moderation solution you need. Content moderation is powered by AI-driven automated detection for text, audio, image, and video content, enabling you to moderate, enforce policies, manage user flags, and send notifications across multiple abuse areas and languages.

      
  
      
  
      
  
      
    ## Prerequisites [#prerequisites-3]

    * [Flutter](https://docs.flutter.dev/get-started/install) 2.0.0 or higher.
    * Dart 2.15.1 or higher.
    * A Flutter editor such as Android Studio, IntelliJ, or VS Code.
    * Implemented the [SDK quickstart](../../../video/quickstart.mdx).

    ## Integrate the extension [#integrate-the-extension-3]

    ### Initialize `ContentInspectConfig` [#initialize-contentinspectconfig-1]

    ```dart
    const contentInspectModule = ContentInspectModule(
      type: ContentInspectType.contentInspectModeration,
      interval: 5,
    );
    const contentInspectConfig = ContentInspectConfig(
      modules: [contentInspectModule],
      moduleCount: 1,
      extraInfo: 'YourExtraInfo',
    );
    ```

    ### Apply `ContentInspectConfig` [#apply-contentinspectconfig-1]

    ```dart
    var returnVal = await agoraEngine.enableContentInspect(
      enabled: true,
      config: contentInspectConfig,
    );
    ```

    ### Catch banning events [#catch-banning-events-2]

    ```dart
    agoraEngine.registerEventHandler(RtcEngineEventHandler(
      onConnectionStateChanged: (connection, state, reason) {
        if (
          state == ConnectionStateType.connectionStateFailed &&
          reason == ConnectionChangedReasonType.connectionChangedBannedByServer
        ) {
          debugPrint('Stream banned by the server');
        }
      },
    ));
    ```

    
  
      
  
