enableContentInspect abstract method
Enables/disables local snapshot upload.
After enabling local snapshot upload, the SDK takes and uploads snapshots of the video sent by the local user based on the module type and frequency set in ContentInspectConfig. After the snapshot is completed, the Agora server sends a callback notification to your server via HTTPS request and uploads all snapshots to your specified third-party cloud storage. Before calling this method, ensure that the local snapshot upload service has been enabled in the Agora Console. When using the Agora-developed plugin for snapshot upload (contentInspectSupervision) in the video moderation module, you must integrate the local snapshot upload dynamic library libagora_content_inspect_extension.dll. Deleting this library will prevent the local snapshot upload feature from working properly.
enabledSets whether to enable local snapshot upload: true : Enable local snapshot upload. false : Disable local snapshot upload.configLocal snapshot upload configuration. See ContentInspectConfig.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> enableContentInspect(
{required bool enabled, required ContentInspectConfig config});