For AI agents: visit https://mobile.developer.smartlook.com/llms.txt for an index of all pages formatted in Markdown and endpoints in OpenAPI. Append .md to any documentation page URL to get its markdown version.
// A callback function that gets called when the user URL changes.
function urlChangedCallback(url: string) {
console.log('Emitted url', url);
}
Smartlook.registerUserUrlChangedListener({
userUrlChangedCallback: urlChangedCallback
});
Smartlook.registerSessionUrlChangedListener({
sessionUrlChangedCallback: urlChangedCallback
});