/ SDKs / Unreal
SDKs
Chat SDKs Unreal v3
Chat SDKs Unreal
Chat SDKs
Unreal
Version 3

Retrieve a channel metacounter

Copy link

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;
    }
});