NIMAndroidSDKOptions constructor
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,
- NIMDisplayNameForMessageNotifierProvider? displayNameForMessageNotifierProvider,
- NIMAvatarForMessageNotifierProvider? avatarForMessageNotifierProvider,
- NIMDisplayTitleForMessageNotifierProvider? displayTitleForMessageNotifierProvider,
- NIMMakeNotifyContentProvider? makeNotifyContentProvider,
- NIMMakeTickerProvider? makeTickerProvider,
- NIMMakeRevokeMsgTipProvider? makeRevokeMsgTipProvider,
- 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,
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,
);