The following buttons interact with the chrome.webview.hostObjects.sample object. Open DevTools console to try running whatever code you like on this object.
chrome.webview.hostObjects.sample
await chrome.webview.hostObjects.sample.property
chrome.webview.hostObjects.sync.sample.property
chrome.webview.hostObjects.sample.property = value
await chrome.webview.hostObjects.sample.setHostProperty("property", value)
chrome.webview.hostObjects.sync.sample.property = value
await chrome.webview.hostObjects.sample.indexedProperty[paramValue]
chrome.webview.hostObjects.sync.sample.indexedProperty[paramValue1] = paramValue2
await chrome.webview.hostObjects.sample.MethodWithParametersAndReturnValue(paramValue1, paramValue2)
chrome.webview.hostObjects.sync.sample.MethodWithParametersAndReturnValue(paramValue1, paramValue2)
chrome.webview.hostObjects.sample.CallCallbackAsynchronously(() => { /* ... */ })
chrome.webview.hostObjects.options.shouldSerializeDates = true
chrome.webview.hostObjects.sample.dateProperty = new Date()
chrome.webview.hostObjects.sample.createNativeDate()