Help me with the extension code

What is the alternative to findViewById ()?
estout trying to create an extension, and I don't know how to proceed when trying to return the component id of the inventor app,
Ex:

public void Fucction (AndroidViewComponent component) {
//component.getView ();
  findViewById (component) ???? does not work!!!
}

How to return the id of a component of the niventor App or an alternative to findViewById ():

1 Like
@SimpleFunction(description="DoSomething")
    public void DoSomething(AndroidViewComponent component){
      View myComponent = (View)component.getView();
      myComponent.something();
}

There’s no need to find by ID because “myComponent” is the View.

5 Likes