NIMIOSSDKOptions constructor Null safety

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. required String appKey,
  16. String? sdkRootDir,
  17. int? cndTrackInterval,
  18. int? customClientType,
  19. bool? shouldSyncStickTopSessionInfos,
  20. bool? enableReportLogAutomatically,
  21. String? loginCustomTag,
  22. bool? enableDatabaseBackup,
  23. bool? shouldSyncUnreadCount,
  24. bool? shouldConsiderRevokedMessageUnreadCount,
  25. bool? enableTeamMessageReadReceipt,
  26. bool? shouldTeamNotificationMessageMarkUnread,
  27. bool? enableAnimatedImageThumbnail,
  28. bool? enablePreloadMessageAttachment,
  29. bool? useAssetServerAddressConfig,
  30. NIMLoginInfo? autoLoginInfo,
  31. Map<NIMNosScene, int>? nosSceneConfig}
)

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,

  /// 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,
}) : super(
        appKey: appKey,
        autoLoginInfo: autoLoginInfo,
        nosSceneConfig: nosSceneConfig,
        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 => Specify whether to automatically download attachments after receiving a message (group and P2P messages)
        /// The default value is YES. The SDK will directly download the message attachment when it receives a message for the first time, and the upper layer can set the value based on your business requirements
      );