NIMAndroidSDKOptions constructor

NIMAndroidSDKOptions({
  1. bool improveSDKProcessPriority = true,
  2. bool preLoadServers = true,
  3. bool reducedIM = false,
  4. bool checkManifestConfig = false,
  5. bool disableAwake = false,
  6. bool enabledQChatMessageCache = false,
  7. String? databaseEncryptKey,
  8. int thumbnailSize = 350,
  9. int fetchServerTimeInterval = 2000,
  10. String? customPushContentType,
  11. NIMMixPushConfig? mixPushConfig,
  12. NIMStatusBarNotificationConfig? notificationConfig,
  13. NIMDisplayNameForMessageNotifierProvider? displayNameForMessageNotifierProvider,
  14. NIMAvatarForMessageNotifierProvider? avatarForMessageNotifierProvider,
  15. NIMDisplayTitleForMessageNotifierProvider? displayTitleForMessageNotifierProvider,
  16. NIMMakeNotifyContentProvider? makeNotifyContentProvider,
  17. NIMMakeTickerProvider? makeTickerProvider,
  18. NIMMakeRevokeMsgTipProvider? makeRevokeMsgTipProvider,
  19. required String appKey,
  20. String? sdkRootDir,
  21. int? cdnTrackInterval,
  22. int? customClientType,
  23. bool? shouldSyncStickTopSessionInfos,
  24. bool? enableReportLogAutomatically,
  25. String? loginCustomTag,
  26. bool? enableDatabaseBackup,
  27. bool? shouldSyncUnreadCount,
  28. bool? shouldConsiderRevokedMessageUnreadCount,
  29. bool? enableTeamMessageReadReceipt,
  30. bool? shouldTeamNotificationMessageMarkUnread,
  31. bool? enableAnimatedImageThumbnail,
  32. bool? enablePreloadMessageAttachment,
  33. bool? useAssetServerAddressConfig,
  34. NIMLoginInfo? autoLoginInfo,
  35. Map<NIMNosScene, int>? nosSceneConfig,
  36. NIMServerConfig? serverConfig,
  37. bool enableFcs = true,
})

Implementation

NIMAndroidSDKOptions({
  /// android configurations
  this.improveSDKProcessPriority = true,
  this.preLoadServers = true,
  this.reducedIM = false,
  this.checkManifestConfig = false,
  this.disableAwake = false,
  this.enabledQChatMessageCache = false,
  this.databaseEncryptKey,
  this.thumbnailSize = 350,
  this.fetchServerTimeInterval = 2000,
  this.customPushContentType,
  this.mixPushConfig,
  this.notificationConfig,
  this.displayNameForMessageNotifierProvider,
  this.avatarForMessageNotifierProvider,
  this.displayTitleForMessageNotifierProvider,
  this.makeNotifyContentProvider,
  this.makeTickerProvider,
  this.makeRevokeMsgTipProvider,

  /// common configurations
  required String appKey,
  String? sdkRootDir,
  int? cdnTrackInterval,
  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,
  bool enableFcs = true,
}) : super(
        appKey: appKey,
        sdkRootDir: sdkRootDir,
        cdnTrackInterval: cdnTrackInterval,
        customClientType: customClientType,
        shouldSyncStickTopSessionInfos: shouldSyncStickTopSessionInfos,
        enableReportLogAutomatically: enableReportLogAutomatically,
        loginCustomTag: loginCustomTag,
        enableDatabaseBackup: enableDatabaseBackup,
        shouldSyncUnreadCount: shouldSyncUnreadCount,
        shouldConsiderRevokedMessageUnreadCount:
            shouldConsiderRevokedMessageUnreadCount,
        enableTeamMessageReadReceipt: enableTeamMessageReadReceipt,
        shouldTeamNotificationMessageMarkUnread:
            shouldTeamNotificationMessageMarkUnread,
        enableAnimatedImageThumbnail: enableAnimatedImageThumbnail,
        enablePreloadMessageAttachment: enablePreloadMessageAttachment,
        useAssetServerAddressConfig: useAssetServerAddressConfig,
        autoLoginInfo: autoLoginInfo,
        nosSceneConfig: nosSceneConfig,
        serverConfig: serverConfig,
        enableFcs: enableFcs,
      );