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,
- 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}
)
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,
/// 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,
}) : super(
appKey: appKey,
autoLoginInfo: autoLoginInfo,
nosSceneConfig: nosSceneConfig,
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,
/// iOS => Specify whether to automatically download attachments after receiving a message (group and P2P messages)
/// The default value is YES. The SDK will directly download the message attachment when it receives a message for the first time, and the upper layer can set the value based on your business requirements
);