INNER CODE UNIT · Java
getOutline
florent37/ShapeOfView · shapeofview/src/main/java/io/github/florent37/shapeofview/ShapeOfView.java:211
public void getOutline(View view, Outline outline) {
if (clipManager != null && !isInEditMode()) {
final Path shadowConvexPath = clipManager.getShadowConvexPath();
if (shadowConvexPath != null) {
try {
outline.setConvexPath(shadowConvexPath);
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
};
}
public void setClipPathCreator(ClipPathManager.ClipPathCreator createClipPath) {
((ClipPathManager) clipManager).setClipPathCreator(createClipPath);