[FREE] Search Engine Extension - Test extension

I looked at your source code...

@SimpleEvent(description = "When the URL is recived.")
public void GotSearch(String url, String searchWord) {
  EventDispatcher.dispatchEvent(this, "GotSearch", url, searchWord);
}
  
@SimpleFunction(description = "")
public void SearchGoogle(String search) {
  String URL = "";
  URL = "https://google.com/search?q=" + search;
  GotSearch(URL, search);
}

and here is my feedback:
good that you mentioned, that it is only a Test extension... because there is not really much inside...
and you even could have simplified it and return your url directly like this

public String SearchGoogle(String search) {
  return "https://google.com/search?q=" + search;
}

it is the same like this procedure

the name of the extension is misleading because it does not really return a Google search result, it only returns an URL and then you have to use the web component to do the actual search...

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

6 Likes