The package is not very well documented unfortunately. You can find a lot of answers in the examples though. This shows how to set up an early stopping function:
https://github.com/robertfeldt/BlackBoxOptim.jl/blob/master/examples/early_stopping_in_callback.jl