Add AllowTextPrediction/IsTextPredictionAllowed api 05/182505/3
authorxb.teng <xb.teng@samsung.com>
Mon, 25 Jun 2018 13:07:33 +0000 (21:07 +0800)
committerXianbing Teng <xb.teng@samsung.com>
Tue, 26 Jun 2018 09:16:03 +0000 (09:16 +0000)
Change-Id: If67baf6319e18873accca592a2911446b7a9db9a

dali-csharp-binder/src/input-method-context.cpp

index 8c25221..43e798b 100755 (executable)
@@ -1168,6 +1168,47 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_InputMethodContext_GetInputPanelLocale
   return jresult;
 }
 
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodContext_AllowTextPrediction(void * jarg1, unsigned int jarg2) {
+  Dali::InputMethodContext *arg1 = (Dali::InputMethodContext *) 0 ;
+  bool arg2 ;
+
+  arg1 = (Dali::InputMethodContext *)jarg1;
+  arg2 = jarg2 ? true : false;
+  {
+    try {
+      (arg1)->AllowTextPrediction(arg2);
+    } catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
+      };
+    } catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
+      };
+    } catch (Dali::DaliException e) { SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; } catch (...) { SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }  }
+}
+
+SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_InputMethodContext_IsTextPredictionAllowed(void * jarg1) {
+  unsigned int jresult ;
+  Dali::InputMethodContext *arg1 = (Dali::InputMethodContext *) 0 ;
+  bool result;
+
+  arg1 = (Dali::InputMethodContext *)jarg1;
+  {
+    try {
+      result = (bool)((Dali::InputMethodContext const *)arg1)->IsTextPredictionAllowed();
+    } catch (std::out_of_range& e) {
+      {
+        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
+      };
+    } catch (std::exception& e) {
+      {
+        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
+      };
+    } catch (Dali::DaliException e) { SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0; } catch (...) { SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0; }  }
+  jresult = result;
+  return jresult;
+}
 
 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_InputMethodContext_ActivatedSignal(void * jarg1) {
   void * jresult ;