MCPcopy Create free account
hub / github.com/christophhart/HISE / setUpdateCallback

Method setUpdateCallback

hi_scripting/scripting/api/ScriptingApiObjects.cpp:8626–8637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8624}
8625
8626void ScriptingObjects::ScriptedMacroHandler::setUpdateCallback(var callback)
8627{
8628 if (HiseJavascriptEngine::isJavascriptFunction(callback))
8629 {
8630 updateCallback = WeakCallbackHolder(getScriptProcessor(), this, callback, 1);
8631 updateCallback.incRefCount();
8632 updateCallback.addAsSource(this, "onMacroConnectionUpdate");
8633 updateCallback.setThisObject(this);
8634
8635 sendUpdateMessage(sendNotificationSync);
8636 }
8637}
8638
8639void ScriptingObjects::ScriptedMacroHandler::setExclusiveMode(bool shouldBeExclusive)
8640{

Callers

nothing calls this directly

Calls 7

WeakCallbackHolderClass · 0.85
incRefCountMethod · 0.80
setThisObjectMethod · 0.80
addAsSourceMethod · 0.45
callSyncMethod · 0.45
wasOkMethod · 0.45
getErrorMessageMethod · 0.45

Tested by

no test coverage detected