Package org.robolectric.shadows
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-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativeSweepGradient.Picker
Shadow picker forSweepGradient
. -
Constructor Summary
Constructors Constructor Description ShadowNativeSweepGradient()
-
Method Summary
Modifier and Type Method Description protected static long
nativeCreate(long matrix, float x, float y, long[] colors, float[] positions, long colorSpaceHandle)
protected static long
nativeCreate1(long matrix, float x, float y, int[] colors, float[] positions)
protected static long
nativeCreate2(long matrix, float x, float y, int color0, int color1)
-
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)
-