v0.7.0
What's Changed
- Controlled Loading: This allows you to control when the Ketch SDK will begin loading.
- Adds a
autoLoadparameter which controls whether the SDK will load automatically when theKetchServiceProvideris rendered. The default value isfalse. - Adds a
load()method to theuseKetchService()hook. This method can be called to trigger loading ifautoLoadwas set tofalse - Upon loading, the Ketch SDK will do the following:
- Determines if the auto initiated experience should be shown initially, based on several factors.
- Sets privacy string keys in Shared Preferences and NSUserDefaults.
- Emits various events based on the initial state (e.g.
onConsentUpdated,onRegionUpdated, etc.). Callback functions are available for these events in the Event Handlers section below.
- Adds a
getConsent()fixes: Fixes an issue causing theConsentobject returned by thegetConsent()method to sometimes not have the correct protocol string values
Full Changelog: v0.6.13...v0.7.0