Allow caller to pass callback to hide method.