public void StartUri(string appUri)
 {
     if (HoloJsScriptHostInterop.holoJsScriptHost_startUri(NativeHoloJsScriptHost, appUri) < 0)
     {
         throw new Exception("failed to start");
     }
 }
 public void Start(string script)
 {
     if (HoloJsScriptHostInterop.holoJsScriptHost_start(NativeHoloJsScriptHost, script) < 0)
     {
         throw new Exception("failed to start");
     }
 }
 public void Initialize(ViewConfiguration viewConfig)
 {
     if (HoloJsScriptHostInterop.holoJsScriptHost_initialize(NativeHoloJsScriptHost, ref viewConfig) < 0)
     {
         throw new Exception("failed to initialize");
     }
 }
 public void StopExecution()
 {
     if (HoloJsScriptHostInterop.holoJsScriptHost_stopExecution(NativeHoloJsScriptHost) < 0)
     {
         throw new Exception("failed to start");
     }
 }
 public void ExecuteImmediate(string script)
 {
     if (HoloJsScriptHostInterop.holoJsScriptHost_executeImmediate(NativeHoloJsScriptHost, script) < 0)
     {
         throw new Exception("failed to start");
     }
 }
 public void SetViewWindow(IntPtr windowHandle)
 {
     HoloJsScriptHostInterop.holoJsScriptHost_setViewWindow(NativeHoloJsScriptHost, windowHandle);
 }
 public void Dispose()
 {
     HoloJsScriptHostInterop.holoJsScriptHost_delete(NativeHoloJsScriptHost);
 }
 public HoloJsScriptHost()
 {
     NativeHoloJsScriptHost = HoloJsScriptHostInterop.holoJsScriptHost_create();
 }
 public void EnableDebugger()
 {
     HoloJsScriptHostInterop.holoJsScriptHost_enableDebugger(NativeHoloJsScriptHost);
 }