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