1// Signature format: 4.0 2package androidx.ink.strokes { 3 4 public final class ImmutableStrokeInputBatch extends androidx.ink.strokes.StrokeInputBatch { 5 field public static final androidx.ink.strokes.ImmutableStrokeInputBatch.Companion Companion; 6 field public static final androidx.ink.strokes.ImmutableStrokeInputBatch EMPTY; 7 } 8 9 public static final class ImmutableStrokeInputBatch.Companion { 10 property public androidx.ink.strokes.ImmutableStrokeInputBatch EMPTY; 11 } 12 13 public final class InProgressStroke { 14 ctor public InProgressStroke(); 15 method public Object enqueueInputs(androidx.ink.strokes.StrokeInputBatch realInputs, androidx.ink.strokes.StrokeInputBatch predictedInputs); 16 method public void enqueueInputsOrThrow(androidx.ink.strokes.StrokeInputBatch realInputs, androidx.ink.strokes.StrokeInputBatch predictedInputs); 17 method protected void finalize(); 18 method public void finishInput(); 19 method public androidx.ink.brush.Brush? getBrush(); 20 method @IntRange(from=0L) public int getBrushCoatCount(); 21 method @IntRange(from=0L) public int getInputCount(); 22 method public boolean getNeedsUpdate(); 23 method @IntRange(from=0L) public int getOutlineCount(@IntRange(from=0L) int coatIndex); 24 method @IntRange(from=0L) public int getOutlineVertexCount(@IntRange(from=0L) int coatIndex, @IntRange(from=0L) int outlineIndex); 25 method @IntRange(from=0L) public int getPredictedInputCount(); 26 method @IntRange(from=0L) public int getRealInputCount(); 27 method public boolean isInputFinished(); 28 method public androidx.ink.strokes.StrokeInput populateInput(androidx.ink.strokes.StrokeInput out, @IntRange(from=0L) int index); 29 method public androidx.ink.strokes.MutableStrokeInputBatch populateInputs(androidx.ink.strokes.MutableStrokeInputBatch out); 30 method public androidx.ink.strokes.MutableStrokeInputBatch populateInputs(androidx.ink.strokes.MutableStrokeInputBatch out, optional @IntRange(from=0L) int from); 31 method public androidx.ink.strokes.MutableStrokeInputBatch populateInputs(androidx.ink.strokes.MutableStrokeInputBatch out, optional @IntRange(from=0L) int from, optional @IntRange(from=0L) int to); 32 method public androidx.ink.geometry.BoxAccumulator populateMeshBounds(@IntRange(from=0L) int coatIndex, androidx.ink.geometry.BoxAccumulator outBoxAccumulator); 33 method public void populateOutlinePosition(@IntRange(from=0L) int coatIndex, @IntRange(from=0L) int outlineIndex, @IntRange(from=0L) int outlineVertexIndex, androidx.ink.geometry.MutableVec outPosition); 34 method public androidx.ink.geometry.BoxAccumulator populateUpdatedRegion(androidx.ink.geometry.BoxAccumulator outBoxAccumulator); 35 method public void resetUpdatedRegion(); 36 method public void start(androidx.ink.brush.Brush brush); 37 method public androidx.ink.strokes.Stroke toImmutable(); 38 method public Object updateShape(optional long currentElapsedTimeMillis); 39 method public void updateShapeOrThrow(optional long currentElapsedTimeMillis); 40 property public androidx.ink.brush.Brush? brush; 41 field public static final androidx.ink.strokes.InProgressStroke.Companion Companion; 42 } 43 44 public static final class InProgressStroke.Companion { 45 } 46 47 public final class MeshCreation { 48 method public static androidx.ink.geometry.PartitionedMesh createClosedShape(androidx.ink.strokes.StrokeInputBatch); 49 } 50 51 public final class MutableStrokeInputBatch extends androidx.ink.strokes.StrokeInputBatch { 52 ctor public MutableStrokeInputBatch(); 53 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis); 54 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm); 55 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm, optional float pressure); 56 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians); 57 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians, optional float orientationRadians); 58 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(androidx.ink.strokes.StrokeInput input); 59 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(androidx.ink.strokes.StrokeInputBatch inputBatch); 60 method public androidx.ink.strokes.MutableStrokeInputBatch addOrIgnore(java.util.Collection<androidx.ink.strokes.StrokeInput> inputs); 61 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis); 62 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm); 63 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm, optional float pressure); 64 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians); 65 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(androidx.ink.brush.InputToolType type, float x, float y, long elapsedTimeMillis, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians, optional float orientationRadians); 66 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(androidx.ink.strokes.StrokeInput input); 67 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(androidx.ink.strokes.StrokeInputBatch inputBatch); 68 method public androidx.ink.strokes.MutableStrokeInputBatch addOrThrow(java.util.Collection<androidx.ink.strokes.StrokeInput> inputs); 69 method public void clear(); 70 method @SuppressCompatibility @androidx.ink.brush.ExperimentalInkCustomBrushApi public void setNoiseSeed(int seed); 71 } 72 73 public final class Stroke { 74 ctor public Stroke(androidx.ink.brush.Brush brush, androidx.ink.strokes.StrokeInputBatch inputs); 75 ctor public Stroke(androidx.ink.brush.Brush brush, androidx.ink.strokes.StrokeInputBatch inputs, androidx.ink.geometry.PartitionedMesh shape); 76 method public androidx.ink.strokes.Stroke copy(androidx.ink.brush.Brush brush); 77 method protected void finalize(); 78 method public androidx.ink.brush.Brush getBrush(); 79 method public androidx.ink.strokes.ImmutableStrokeInputBatch getInputs(); 80 method public androidx.ink.geometry.PartitionedMesh getShape(); 81 property public androidx.ink.brush.Brush brush; 82 property public androidx.ink.strokes.ImmutableStrokeInputBatch inputs; 83 property public androidx.ink.geometry.PartitionedMesh shape; 84 field public static final androidx.ink.strokes.Stroke.Companion Companion; 85 } 86 87 public static final class Stroke.Companion { 88 } 89 90 public final class StrokeInput { 91 ctor public StrokeInput(); 92 method @VisibleForTesting public static androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis); 93 method @VisibleForTesting public static androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType); 94 method @VisibleForTesting public static androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm); 95 method @VisibleForTesting public static androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure); 96 method @VisibleForTesting public static androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians); 97 method @VisibleForTesting public static androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians, optional float orientationRadians); 98 method public long getElapsedTimeMillis(); 99 method public float getOrientationRadians(); 100 method public float getPressure(); 101 method public float getStrokeUnitLengthCm(); 102 method public float getTiltRadians(); 103 method public androidx.ink.brush.InputToolType getToolType(); 104 method public float getX(); 105 method public float getY(); 106 method public boolean hasOrientation(); 107 method public boolean hasPressure(); 108 method public boolean hasTilt(); 109 method public void update(float x, float y, @IntRange(from=0L) long elapsedTimeMillis); 110 method public void update(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType); 111 method public void update(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm); 112 method public void update(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure); 113 method public void update(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians); 114 method public void update(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians, optional float orientationRadians); 115 property public long elapsedTimeMillis; 116 property public boolean hasOrientation; 117 property public boolean hasPressure; 118 property public boolean hasTilt; 119 property public float orientationRadians; 120 property public float pressure; 121 property public float strokeUnitLengthCm; 122 property public float tiltRadians; 123 property public androidx.ink.brush.InputToolType toolType; 124 property public float x; 125 property public float y; 126 field public static final androidx.ink.strokes.StrokeInput.Companion Companion; 127 field public static final float NO_ORIENTATION = -1.0f; 128 field public static final float NO_PRESSURE = -1.0f; 129 field public static final float NO_STROKE_UNIT_LENGTH = 0.0f; 130 field public static final float NO_TILT = -1.0f; 131 } 132 133 public static final class StrokeInput.Companion { 134 method @VisibleForTesting public androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis); 135 method @VisibleForTesting public androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType); 136 method @VisibleForTesting public androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm); 137 method @VisibleForTesting public androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure); 138 method @VisibleForTesting public androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians); 139 method @VisibleForTesting public androidx.ink.strokes.StrokeInput create(float x, float y, @IntRange(from=0L) long elapsedTimeMillis, optional androidx.ink.brush.InputToolType toolType, optional float strokeUnitLengthCm, optional float pressure, optional float tiltRadians, optional float orientationRadians); 140 property public static float NO_ORIENTATION; 141 property public static float NO_PRESSURE; 142 property public static float NO_STROKE_UNIT_LENGTH; 143 property public static float NO_TILT; 144 } 145 146 public abstract class StrokeInputBatch { 147 method protected final void finalize(); 148 method public final operator androidx.ink.strokes.StrokeInput get(int index); 149 method public final long getDurationMillis(); 150 method public final int getSize(); 151 method public final float getStrokeUnitLengthCm(); 152 method public final androidx.ink.brush.InputToolType getToolType(); 153 method public final boolean hasOrientation(); 154 method public final boolean hasPressure(); 155 method public final boolean hasStrokeUnitLength(); 156 method public final boolean hasTilt(); 157 method public final boolean isEmpty(); 158 method public final androidx.ink.strokes.StrokeInput populate(int index, androidx.ink.strokes.StrokeInput outStrokeInput); 159 property public final int size; 160 field public static final androidx.ink.strokes.StrokeInputBatch.Companion Companion; 161 } 162 163 public static final class StrokeInputBatch.Companion { 164 } 165 166} 167 168