consent.onUpdatemethod allow to subscribe a callback function for consent updates. The callback function will be called with the updated Consent Object. It is called whenever the consent is changed via a TrustCommander banner interaction or the
consent.updatemethod of the OnSite API.
consentObjectargument will also be enriched with an additional property
updateEventto signal how the update happened. It can have following values: