NIMIOSSDKOptions constructor

NIMIOSSDKOptions({
  1. String? apnsCername,
  2. String? pkCername,
  3. int? maxUploadLogSize,
  4. bool? enableFetchAttachmentAutomaticallyAfterReceivingInChatroom,
  5. bool? enableFileProtectionNone,
  6. bool? enabledHttpsForInfo,
  7. bool? enabledHttpsForMessage,
  8. int? maxAutoLoginRetryTimes,
  9. int? maximumLogDays,
  10. bool? disableReconnectInBackgroundState,
  11. bool? enableTeamReceipt,
  12. bool? enableFileQuickTransfer,
  13. bool? enableAsyncLoadRecentSession,
  14. bool? linkQuickSwitch,
  15. bool? enabledQChatMessageCache,
  16. required String appKey,
  17. String? sdkRootDir,
  18. int? cndTrackInterval,
  19. int? customClientType,
  20. bool? shouldSyncStickTopSessionInfos,
  21. bool? enableReportLogAutomatically,
  22. String? loginCustomTag,
  23. bool? enableDatabaseBackup,
  24. bool? shouldSyncUnreadCount,
  25. bool? shouldConsiderRevokedMessageUnreadCount,
  26. bool? enableTeamMessageReadReceipt,
  27. bool? shouldTeamNotificationMessageMarkUnread,
  28. bool? enableAnimatedImageThumbnail,
  29. bool? enablePreloadMessageAttachment,
  30. bool? useAssetServerAddressConfig,
  31. NIMLoginInfo? autoLoginInfo,
  32. Map<NIMNosScene, int>? nosSceneConfig,
  33. NIMServerConfig? serverConfig,
})

Implementation

NIMIOSSDKOptions({
  /// android configurations
  this.apnsCername,
  this.pkCername,
  this.maxUploadLogSize,
  this.enableFetchAttachmentAutomaticallyAfterReceivingInChatroom,
  this.enableFileProtectionNone,
  this.enabledHttpsForInfo,
  this.enabledHttpsForMessage,
  this.maxAutoLoginRetryTimes,
  this.maximumLogDays,
  this.disableReconnectInBackgroundState,
  this.enableTeamReceipt,
  this.enableFileQuickTransfer,
  this.enableAsyncLoadRecentSession,
  this.linkQuickSwitch,
  this.enabledQChatMessageCache,

  /// common configurations
  required String appKey,
  String? sdkRootDir,
  int? cndTrackInterval,
  int? customClientType,
  bool? shouldSyncStickTopSessionInfos,
  bool? enableReportLogAutomatically,
  String? loginCustomTag,
  bool? enableDatabaseBackup,
  bool? shouldSyncUnreadCount,
  bool? shouldConsiderRevokedMessageUnreadCount,
  bool? enableTeamMessageReadReceipt,
  bool? shouldTeamNotificationMessageMarkUnread,
  bool? enableAnimatedImageThumbnail,
  bool? enablePreloadMessageAttachment,
  bool? useAssetServerAddressConfig,
  NIMLoginInfo? autoLoginInfo,
  Map<NIMNosScene, int>? nosSceneConfig,
  NIMServerConfig? serverConfig,
}) : super(
        appKey: appKey,
        autoLoginInfo: autoLoginInfo,
        nosSceneConfig: nosSceneConfig,
        serverConfig: serverConfig,
        sdkRootDir: sdkRootDir,
        cdnTrackInterval: cndTrackInterval,
        customClientType: customClientType,
        shouldSyncStickTopSessionInfos: shouldSyncStickTopSessionInfos,
        enableReportLogAutomatically: enableReportLogAutomatically,
        loginCustomTag: loginCustomTag,
        enableDatabaseBackup: enableDatabaseBackup,
        shouldSyncUnreadCount: shouldSyncUnreadCount,
        shouldConsiderRevokedMessageUnreadCount:
            shouldConsiderRevokedMessageUnreadCount,
        enableTeamMessageReadReceipt: enableTeamMessageReadReceipt,
        shouldTeamNotificationMessageMarkUnread:
            shouldTeamNotificationMessageMarkUnread,
        enableAnimatedImageThumbnail: enableAnimatedImageThumbnail,
        enablePreloadMessageAttachment: enablePreloadMessageAttachment,
        useAssetServerAddressConfig: useAssetServerAddressConfig,

        /// iOS => 是否在收到消息后自动下载附件 (群和个人)
        /// 默认为YES,SDK会在第一次收到消息是直接下载消息附件,上层开发可以根据自己的需要进行设置
      );