I am making a library now.
in java code function need "context context".
how to pass from b4a ?
in java code function need "context context".
how to pass from b4a ?
B4X:
public void setCameraSurfaceHolder(Context context, SurfaceView surfaceView) {
this.context = context;
this.surfaceView = surfaceView;
surfaceHolder = surfaceView.getHolder();
surfaceHolder.addCallback(callback);
surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
callback.setContext(context);
}