You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move HybridWebView platform code to handlers (attempt 2) (#24952)
* Move HybridWebView platform code to handlers
And run everything through the mappers.
Fixes#24269
* Run Android tests
* `@android.webkit.JavascriptInterface` is missing!
By changing `HybridJavaScriptInterface` to a class, the JCW now says:
@android.webkit.JavascriptInterface
public void sendMessage (java.lang.String p0)
---------
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
/// Invokes a JavaScript method named <paramref name="methodName"/> and optionally passes in the parameter values
116
-
/// specified by <paramref name="paramValues"/>.
117
-
/// </summary>
118
-
/// <param name="methodName">The name of the JavaScript method to invoke.</param>
119
-
/// <param name="paramValues">Optional array of objects to be passed to the JavaScript method.</param>
120
-
/// <param name="paramJsonTypeInfos">Optional array of metadata about serializing the types of the parameters specified by <paramref name="paramValues"/>.</param>
121
-
/// <returns>A string containing the return value of the called method.</returns>
_invokeTaskId++;// This is to avoid the compiler warning about the field not being used
162
-
thrownewNotImplementedException();
163
-
}
164
-
#endif
165
-
166
-
/// <summary>
167
-
/// Invokes a JavaScript method named <paramref name="methodName"/> and optionally passes in the parameter values specified
168
-
/// by <paramref name="paramValues"/> by JSON-encoding each one.
169
-
/// </summary>
170
-
/// <typeparam name="TReturnType">The type of the return value to deserialize from JSON.</typeparam>
171
-
/// <param name="methodName">The name of the JavaScript method to invoke.</param>
172
-
/// <param name="returnTypeJsonTypeInfo">Metadata about deserializing the type of the return value specified by <typeparamref name="TReturnType"/>.</param>
173
-
/// <param name="paramValues">Optional array of objects to be passed to the JavaScript method by JSON-encoding each one.</param>
174
-
/// <param name="paramJsonTypeInfos">Optional array of metadata about serializing the types of the parameters specified by <paramref name="paramValues"/>.</param>
175
-
/// <returns>An object of type <typeparamref name="TReturnType"/> containing the return value of the called method.</returns>
0 commit comments