// }
@Override
public void attach(final View view, final CanvasReadyCallback canvasReadyCallback) {
log("attach readyFn:"+readyFn);
exportReadyFn(readyFn, view, new CanvasReadyCallback() {
boolean initialized = false;
public void onCanvasReady(Canvas canvas) {
if (!initialized) {
initialized = true;
canvasReadyCallback.onCanvasReady(canvas);