Class ShadowPathIterator

java.lang.Object
org.robolectric.shadows.ShadowPathIterator

@Implements(value=android.graphics.PathIterator.class, minSdk=34, isInAndroidSdk=false) public class ShadowPathIterator extends Object
Shadow for PathIterator in LEGACY graphics.
  • Constructor Details

    • ShadowPathIterator

      public ShadowPathIterator()
  • Method Details

    • nNext

      @Implementation protected static int nNext(long nativeIterator, long pointsAddress)
      By default, Robolectric instrumentation of this native method will cause it to return zero, which conveys PathIterator.VERB_MOVE. To avoid infinite loops, update it to return PathIterator.VERB_DONE.
    • nNextHost

      @Implementation(minSdk=35) protected static int nNextHost(long nativeIterator, float[] points)
      Also shadow the upcoming indevelopment nNextHost