Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Setting object properties in C# from Javascript code

(async function foo () {
  const api = chrome.webview.hostObjects.api
  await api.setHostProperty('Username', 'whoever');
  const user = await api.Username
  alert (user)
})();
 
PREVIOUS NEXT
Tagged: #Setting #object #properties #Javascript #code
ADD COMMENT
Topic
Name
7+3 =