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
33 internal KeyboardTypeSignalType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
38 /// This will be public opened.
39 [EditorBrowsable(EditorBrowsableState.Never)]
40 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
42 Interop.KeyboardTypeSignalType.DeleteKeyboardTypeSignalType(swigCPtr);
46 /// Queries whether there are any connected slots.
48 /// <returns>True if there are any slots connected to the signal</returns>
49 /// <since_tizen> 4 </since_tizen>
50 [Obsolete("Deprecated in API6, Will be removed in API9, " +
51 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
52 [EditorBrowsable(EditorBrowsableState.Never)]
55 bool ret = Interop.KeyboardTypeSignalType.Empty(SwigCPtr);
56 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
61 /// Queries the number of slots.
63 /// <returns>The number of slots connected to this signal</returns>
64 /// <since_tizen> 4 </since_tizen>
65 [Obsolete("Deprecated in API6, Will be removed in API9, " +
66 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
67 [EditorBrowsable(EditorBrowsableState.Never)]
68 public uint GetConnectionCount()
70 uint ret = Interop.KeyboardTypeSignalType.GetConnectionCount(SwigCPtr);
71 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
76 /// Connects a function.
78 /// <param name="func">The function to connect</param>
79 /// <since_tizen> 4 </since_tizen>
80 [Obsolete("Deprecated in API6, Will be removed in API9, " +
81 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
82 [EditorBrowsable(EditorBrowsableState.Never)]
83 public void Connect(System.Delegate func)
85 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
87 Interop.KeyboardTypeSignalType.Connect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
88 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93 /// Disconnects a function.
95 /// <param name="func">The function to disconnect</param>
96 /// <since_tizen> 4 </since_tizen>
97 [Obsolete("Deprecated in API6, Will be removed in API9, " +
98 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
99 [EditorBrowsable(EditorBrowsableState.Never)]
100 public void Disconnect(System.Delegate func)
102 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
104 Interop.KeyboardTypeSignalType.Disconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
105 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
110 /// Connects a member function.
112 /// <param name="arg">The member function to connect</param>
113 /// <since_tizen> 5 </since_tizen>
114 [Obsolete("Deprecated in API6, Will be removed in API9, " +
115 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
116 [EditorBrowsable(EditorBrowsableState.Never)]
117 public void Emit(InputMethodContext.KeyboardType arg)
119 Interop.KeyboardTypeSignalType.Emit(SwigCPtr, (int)arg);
120 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
126 /// <since_tizen> 4 </since_tizen>
127 [Obsolete("Deprecated in API6, Will be removed in API9, " +
128 "Please use InputMethodContext.KeyboardTypeChanged event instead!")]
129 [EditorBrowsable(EditorBrowsableState.Never)]
130 public KeyboardTypeSignalType() : this(Interop.KeyboardTypeSignalType.NewKeyboardTypeSignalType(), true)
132 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();