Class ShadowNativeSweepGradient

java.lang.Object
org.robolectric.shadows.ShadowNativeSweepGradient

@Implements(value=android.graphics.SweepGradient.class, minSdk=26, shadowPicker=Picker.class) public class ShadowNativeSweepGradient extends Object
Shadow for SweepGradient that is backed by native code
  • Constructor Details

    • ShadowNativeSweepGradient

      public ShadowNativeSweepGradient()
  • Method Details

    • nativeCreate

      @Implementation(minSdk=29) protected static long nativeCreate(long matrix, float x, float y, long[] colors, float[] positions, long colorSpaceHandle)
    • nativeCreate1

      @Implementation(minSdk=26, maxSdk=28) protected static long nativeCreate1(long matrix, float x, float y, int[] colors, float[] positions)
    • nativeCreate2

      @Implementation(minSdk=26, maxSdk=28) protected static long nativeCreate2(long matrix, float x, float y, int color0, int color1)