setPlatformParams static method
Set platform parameters (platform name and SDK version).
Migration Note: Migrated from platform channels to native Dart implementation. Stores platform information for analytics and debugging purposes. Behavior and signature remain identical for backward compatibility.
Android Reference: CometChat.setPlatformParams(String platform, String sdkVersion)
Implementation
static Future<void> setPlatformParams(
{required String platform, required String sdkVersion}) async {
try {
// Store platform parameters (for analytics/debugging)
Logger.info('CometChat',
'Set platform params: platform=$platform, sdkVersion=$sdkVersion');
// In native Dart, we just log this for now
// Future enhancement: Store in preferences or send to analytics
} catch (e) {
Logger.error('CometChat', 'Set platform params failed', e);
_errorCallbackHandler(null, null, e, null);
}
}