Chat / Unreal
Current version: v3
Chat Unreal v3
Chat Unreal
Chat
Unreal
Home
/
Chat
/
Unreal
/
Channels

Retrieve a channel metacounter

You can retrieve channel metacounter by creating a List of keys to retrieve and passing it as an argument to a parameter in the GetMetaCounters() method. A std::map<std::wstring, int64_t> will return through the Handler function with corresponding key-value items.

std::vector<std::wstring> keys;
keys.push_back(L"key1");
keys.push_back(L"key2");

channel->GetMetaCounters(keys, [](const std::map<std::wstring, int64_t& meta_counters, SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});