Package org.robolectric.shadows
Class ShadowNativeLinearGradient
java.lang.Object
org.robolectric.shadows.ShadowNativeLinearGradient
@Implements(value=android.graphics.LinearGradient.class,
            minSdk=26,
            shadowPicker=Picker.class,
            callNativeMethodsByDefault=true)
public class ShadowNativeLinearGradient
extends Object
Shadow for 
LinearGradient that is backed by native code- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected longnativeCreate(long matrix, float x0, float y0, float x1, float y1, long[] colors, float[] positions, int tileMode, long colorSpaceHandle) protected longnativeCreate1(long matrix, float x0, float y0, float x1, float y1, int[] colors, float[] positions, int tileMode) protected longnativeCreate2(long matrix, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) 
- 
Constructor Details- 
ShadowNativeLinearGradientpublic ShadowNativeLinearGradient()
 
- 
- 
Method Details- 
nativeCreate@Implementation(minSdk=29, maxSdk=34) protected long nativeCreate(long matrix, float x0, float y0, float x1, float y1, long[] colors, float[] positions, int tileMode, long colorSpaceHandle) 
- 
nativeCreate1@Implementation(minSdk=26, maxSdk=28) protected long nativeCreate1(long matrix, float x0, float y0, float x1, float y1, int[] colors, float[] positions, int tileMode) 
- 
nativeCreate2@Implementation(minSdk=26, maxSdk=28) protected long nativeCreate2(long matrix, float x0, float y0, float x1, float y1, int color0, int color1, int tileMode) 
 
-