ContentInspectConfig
Local screenshot upload configuration.
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class ContentInspectConfig {
const ContentInspectConfig(
{this.extraInfo, this.serverConfig, this.modules, this.moduleCount});
@JsonKey(name: 'extraInfo')
final String? extraInfo;
@JsonKey(name: 'serverConfig')
final String? serverConfig;
@JsonKey(name: 'modules')
final List<ContentInspectModule>? modules;
@JsonKey(name: 'moduleCount')
final int? moduleCount;
factory ContentInspectConfig.fromJson(Map<String, dynamic> json) =>
_$ContentInspectConfigFromJson(json);
Map<String, dynamic> toJson() => _$ContentInspectConfigToJson(this);
}
Properties
- extraInfo
- Additional information, with a maximum length of 1024 bytes. The SDK uploads the additional information along with the screenshot to the Agora server; after the screenshot is completed, the Agora server sends the additional information to your server along with the callback notification.
- serverConfig
- (Optional) Server configuration related to video moderation in the Cloud Marketplace. This parameter takes effect only when the
typein ContentInspectModule is set tocontentInspectImageModeration. To use this feature, please contact technical support. - modules
- Function modules. See ContentInspectModule.
Supports up to 32 ContentInspectModule instances. The value range for
MAX_CONTENT_INSPECT_MODULE_COUNTis an integer between [1, 32].Note: Only one instance can be configured for each function module. Currently, only screenshot upload is supported. - moduleCount
- The number of function modules, i.e., the number of configured ContentInspectModule instances. Must match the number of instances configured in
modules. Maximum value is 32.