API

Getting LibDataBroker into your addon

In your RiftAddon.toc

Embed = {
    LibDataBroker-1.0 = true
}
Dependencies = {
    LibDataBroker-1.0 = {"required", "before"}
}

In your main code

local DataBroker = LibDataBroker -- LibDataBroker is global, and you want a local reference

The rest is identical to here, except the ldb/DataBroker name (which you can call whatever) and the callbacks, which have been replaced by the Rift Events on the front page.