Package org.robolectric.shadows
Class ShadowNativeSweepGradient
java.lang.Object
org.robolectric.shadows.ShadowNativeSweepGradient
@Implements(value=android.graphics.SweepGradient.class,
minSdk=26,
shadowPicker=Picker.class,
callNativeMethodsByDefault=true)
public class ShadowNativeSweepGradient
extends Object
Shadow for
SweepGradient
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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, maxSdk=34) 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)
-