Package 

Object BySelectorHack


  • 
    public class BySelectorHack
    
                        

    Workaround for creating BySelector instances with package-private constructor. Replaces default By factory and completely safe to use due to member function invocation after instance creation.

    • Method Summary

      Modifier and Type Method Description
      final BySelector newInstance(Function1<BySelector, BySelector> function)
      • Methods inherited from class androidx.test.uiautomator.BySelectorHack

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • newInstance

         final BySelector newInstance(Function1<BySelector, BySelector> function)