[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebViewScrollEdgeReachedSignal_Disconnect")]
public static extern void WebViewScrollEdgeReachedSignalDisconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
+
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebView_GetPlainTextAsynchronously")]
+ public static extern void GetPlainTextAsynchronously(global::System.Runtime.InteropServices.HandleRef webViewRef, global::System.Runtime.InteropServices.HandleRef callbackRef);
}
}
}
private readonly WebViewScrollEdgeReachedSignal scrollEdgeReachedSignal;
private EventHandler<WebViewScrollEdgeReachedEventArgs> scrollEdgeReachedEventHandler;
private WebViewScrollEdgeReachedCallbackDelegate scrollEdgeReachedCallback;
+ private PlainTextReceivedCallback plainTextReceivedCallback;
+
+ /// <summary>
+ /// The callback function that is invoked when the plain text of the current page is received.
+ /// </summary>
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public delegate void PlainTextReceivedCallback(string plainText);
internal WebView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.WebView.WebView_SWIGUpcast(cPtr), cMemoryOwn)
{
Interop.WebView.SetTtsFocus(SwigCPtr, focused);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
+
+ /// <summary>
+ /// Get a plain text of current web page asynchronously.
+ /// Please note that it gets plain text of currently loaded page so please call this method after page load finished.
+ /// <param name="callback">The callback for getting plain text</param>
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void GetPlainTextAsynchronously(PlainTextReceivedCallback callback)
+ {
+ plainTextReceivedCallback = callback;
+ System.IntPtr ip = Marshal.GetFunctionPointerForDelegate(plainTextReceivedCallback);
+ Interop.WebView.GetPlainTextAsynchronously(SwigCPtr, new HandleRef(this, ip));
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
}
}