NIMAndroidSDKOptions(- {bool improveSDKProcessPriority = true,
- bool preLoadServers = true,
- bool reducedIM = false,
- bool checkManifestConfig = false,
- bool disableAwake = false,
- bool enabledQChatMessageCache = false,
- String? databaseEncryptKey,
- int thumbnailSize = 350,
- int fetchServerTimeInterval = 2000,
- String? customPushContentType,
- NIMMixPushConfig? mixPushConfig,
- NIMStatusBarNotificationConfig? notificationConfig,
- bool enableFcs = true,
- NIMDisplayNameForMessageNotifierProvider? displayNameForMessageNotifierProvider,
- NIMAvatarForMessageNotifierProvider? avatarForMessageNotifierProvider,
- NIMDisplayTitleForMessageNotifierProvider? displayTitleForMessageNotifierProvider,
- 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}
)
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.enableFcs = true,
this.displayNameForMessageNotifierProvider,
this.avatarForMessageNotifierProvider,
this.displayTitleForMessageNotifierProvider,
/// 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,
}) : 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,
);