What interface should I use in replacement?
I see that using onSuccess (two 'c') gives error because it is not an
Override.
Regards
Il giorno venerdì 16 aprile 2021 alle 05:53:05 UTC+2 Shai Almog ha scritto:
> The interface was deprecated because of the typo but some APIs still use
> the old deprecated version.
>
> On Thursday, April 15, 2021 at 5:19:28 PM UTC+3 P5music wrote:
>
>> I do not know if it is useful but
>> I noticed that in code like
>>
>> webView.addJSCallback("javascript code here;callback.onSuccess();",
>> new SuccessCallback<BrowserComponent.JSRef>() {
>> @Override
>> public void onSucess(BrowserComponent.JSRef value) {
>> System.out.println("success");
>> }
>> });
>>
>> the method name onSuccess of
>> SuccessCallback<BrowserComponent.JSRef>
>> is written as onSucess (just one 'c')
>> while the callback method is called successfully from javascript using
>> callback.onSuccess().
>> It is harmless for my project, in fact.
>>
>> Did you know it?
>> Regards
>>
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/5347a962-0887-4088-bc9c-90433b8fa864n%40googlegroups.com.