NIMIOSSDKOptions constructor
NIMIOSSDKOptions({
- String? apnsCername,
- String? pkCername,
- int? maxUploadLogSize,
- bool? enableFetchAttachmentAutomaticallyAfterReceivingInChatroom,
- bool? enableFileProtectionNone,
- bool? enabledHttpsForInfo,
- bool? enabledHttpsForMessage,
- int? maxAutoLoginRetryTimes,
- int? maximumLogDays,
- bool? disableReconnectInBackgroundState,
- bool? enableTeamReceipt,
- bool? enableFileQuickTransfer,
- bool? enableAsyncLoadRecentSession,
- bool? linkQuickSwitch,
- bool? enabledQChatMessageCache,
- 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, - NIMServerConfig? serverConfig,
- bool enableFcs = true,
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,
this.enabledQChatMessageCache,
/// 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,
NIMServerConfig? serverConfig,
bool enableFcs = true,
}) : super(
appKey: appKey,
autoLoginInfo: autoLoginInfo,
nosSceneConfig: nosSceneConfig,
serverConfig: serverConfig,
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,
enableFcs: enableFcs,
/// iOS => 是否在收到消息后自动下载附件 (群和个人)
/// 默认为YES,SDK会在第一次收到消息是直接下载消息附件,上层开发可以根据自己的需要进行设置
);