NIMAndroidSDKOptions(- {bool improveSDKProcessPriority = true,
- bool preLoadServers = true,
- bool reducedIM = false,
- bool checkManifestConfig = false,
- bool disableAwake = false,
- String? databaseEncryptKey,
- int thumbnailSize = 350,
- int fetchServerTimeInterval = 2000,
- String? customPushContentType,
- NIMMixPushConfig? mixPushConfig,
- NIMStatusBarNotificationConfig? notificationConfig,
- 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}
)
Implementation
NIMAndroidSDKOptions({
/// Android configuration
this.improveSDKProcessPriority = true,
this.preLoadServers = true,
this.reducedIM = false,
this.checkManifestConfig = false,
this.disableAwake = false,
this.databaseEncryptKey,
this.thumbnailSize = 350,
this.fetchServerTimeInterval = 2000,
this.customPushContentType,
this.mixPushConfig,
this.notificationConfig,
/// 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,
}) : 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,
);