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.
19 using System.ComponentModel;
24 /// KeyboardTypeSignalType
26 /// <since_tizen> 4 </since_tizen>
27 [Obsolete("Deprecated in API6, Will be removed in API9, " +
28 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 public class KeyboardTypeSignalType : Disposable
32 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
37 /// <since_tizen> 4 </since_tizen>
38 [Obsolete("Deprecated in API6, Will be removed in API9, " +
39 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
40 [EditorBrowsable(EditorBrowsableState.Never)]
41 protected bool swigCMemOwn;
43 internal KeyboardTypeSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
45 swigCMemOwn = cMemoryOwn;
46 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
49 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(KeyboardTypeSignalType obj)
51 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
57 /// <since_tizen> 4 </since_tizen>
58 [Obsolete("Deprecated in API6, Will be removed in API9, " +
59 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
60 [EditorBrowsable(EditorBrowsableState.Never)]
61 protected override void Dispose(DisposeTypes type)
68 //Release your own unmanaged resources here.
69 //You should not access any managed member here except static instance.
70 //because the execution order of Finalizes is non-deterministic.
72 if (swigCPtr.Handle != global::System.IntPtr.Zero)
77 Interop.KeyboardTypeSignalType.delete_KeyboardTypeSignalType(swigCPtr);
79 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
86 /// Queries whether there are any connected slots.
88 /// <returns>True if there are any slots connected to the signal</returns>
89 /// <since_tizen> 4 </since_tizen>
90 [Obsolete("Deprecated in API6, Will be removed in API9, " +
91 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
92 [EditorBrowsable(EditorBrowsableState.Never)]
95 bool ret = Interop.KeyboardTypeSignalType.KeyboardTypeSignalType_Empty(swigCPtr);
96 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
101 /// Queries the number of slots.
103 /// <returns>The number of slots connected to this signal</returns>
104 /// <since_tizen> 4 </since_tizen>
105 [Obsolete("Deprecated in API6, Will be removed in API9, " +
106 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
107 [EditorBrowsable(EditorBrowsableState.Never)]
108 public uint GetConnectionCount()
110 uint ret = Interop.KeyboardTypeSignalType.KeyboardTypeSignalType_GetConnectionCount(swigCPtr);
111 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
116 /// Connects a function.
118 /// <param name="func">The function to connect</param>
119 /// <since_tizen> 4 </since_tizen>
120 [Obsolete("Deprecated in API6, Will be removed in API9, " +
121 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
122 [EditorBrowsable(EditorBrowsableState.Never)]
123 public void Connect(System.Delegate func)
125 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
127 Interop.KeyboardTypeSignalType.KeyboardTypeSignalType_Connect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
128 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
133 /// Disconnects a function.
135 /// <param name="func">The function to disconnect</param>
136 /// <since_tizen> 4 </since_tizen>
137 [Obsolete("Deprecated in API6, Will be removed in API9, " +
138 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
139 [EditorBrowsable(EditorBrowsableState.Never)]
140 public void Disconnect(System.Delegate func)
142 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
144 Interop.KeyboardTypeSignalType.KeyboardTypeSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
145 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
150 /// Connects a member function.
152 /// <param name="arg">The member function to connect</param>
153 /// <since_tizen> 5 </since_tizen>
154 [Obsolete("Deprecated in API6, Will be removed in API9, " +
155 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
156 [EditorBrowsable(EditorBrowsableState.Never)]
157 public void Emit(InputMethodContext.KeyboardType arg)
159 Interop.KeyboardTypeSignalType.KeyboardTypeSignalType_Emit(swigCPtr, (int)arg);
160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166 /// <since_tizen> 4 </since_tizen>
167 [Obsolete("Deprecated in API6, Will be removed in API9, " +
168 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
169 [EditorBrowsable(EditorBrowsableState.Never)]
170 public KeyboardTypeSignalType() : this(Interop.KeyboardTypeSignalType.new_KeyboardTypeSignalType(), true)
172 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();