1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
14 internal class ApplicationExtensions : global::System.IDisposable
16 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
17 protected bool swigCMemOwn;
19 internal ApplicationExtensions(global::System.IntPtr cPtr, bool cMemoryOwn)
21 swigCMemOwn = cMemoryOwn;
22 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
25 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ApplicationExtensions obj)
27 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
30 //A Flag to check who called Dispose(). (By User or DisposeQueue)
31 private bool isDisposeQueued = false;
32 //A Flat to check if it is already disposed.
33 protected bool disposed = false;
35 ~ApplicationExtensions()
39 isDisposeQueued = true;
40 DisposeQueue.Instance.Add(this);
46 //Throw excpetion if Dispose() is called in separate thread.
47 if (!Window.IsInstalled())
49 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
54 Dispose(DisposeTypes.Implicit);
58 Dispose(DisposeTypes.Explicit);
59 System.GC.SuppressFinalize(this);
63 protected virtual void Dispose(DisposeTypes type)
70 if (type == DisposeTypes.Explicit)
73 //Release your own managed resources here.
74 //You should release all of your own disposable objects here.
78 //Release your own unmanaged resources here.
79 //You should not access any managed member here except static instance.
80 //because the execution order of Finalizes is non-deterministic.
82 if (swigCPtr.Handle != global::System.IntPtr.Zero)
87 NDalicPINVOKE.delete_ApplicationExtensions(swigCPtr);
89 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
96 public ApplicationExtensions() : this(NDalicPINVOKE.new_ApplicationExtensions__SWIG_0(), true)
98 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101 public ApplicationExtensions(Application application) : this(NDalicPINVOKE.new_ApplicationExtensions__SWIG_1(Application.getCPtr(application)), true)
103 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
108 NDalicPINVOKE.ApplicationExtensions_Init(swigCPtr);
109 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
112 public void Terminate()
114 NDalicPINVOKE.ApplicationExtensions_Terminate(swigCPtr);
115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120 NDalicPINVOKE.ApplicationExtensions_Pause(swigCPtr);
121 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126 NDalicPINVOKE.ApplicationExtensions_Resume(swigCPtr);
127 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
130 public void LanguageChange()
132 NDalicPINVOKE.ApplicationExtensions_LanguageChange(swigCPtr);
133 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();