2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 internal class WebViewPageLoadErrorSignal : global::System.IDisposable
22 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
24 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WebViewPageLoadErrorSignal obj)
26 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
29 //A Flag to check who called Dispose(). (By User or DisposeQueue)
30 private bool isDisposeQueued;
31 //A Flat to check if it is already disposed.
32 protected bool disposed;
34 ~WebViewPageLoadErrorSignal()
38 isDisposeQueued = true;
39 DisposeQueue.Instance.Add(this);
52 System.GC.SuppressFinalize(this);
56 protected virtual void Dispose(bool disposing)
66 //Release your own managed resources here.
67 //You should release all of your own disposable objects here.
71 //Release your own unmanaged resources here.
72 //You should not access any managed member here except static instance.
73 //because the execution order of Finalizes is non-deterministic.
75 if (swigCPtr.Handle != global::System.IntPtr.Zero)
77 Interop.WebView.delete_WebViewPageLoadErrorSignal(swigCPtr);
78 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
84 public void Connect(System.Delegate func)
86 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
88 Interop.WebView.WebViewPageLoadErrorSignal_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
89 if (NDalicPINVOKE.SWIGPendingException.Pending)
91 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
96 public void Disconnect(System.Delegate func)
98 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
100 Interop.WebView.WebViewPageLoadErrorSignal_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
101 if (NDalicPINVOKE.SWIGPendingException.Pending)
103 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
108 public WebViewPageLoadErrorSignal(global::System.IntPtr cPtr)
110 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);