.onEnter(new Function1<ProximityZoneContext, Unit>() {
@Override
public Unit invoke(ProximityZoneContext proximityZoneContext) {
beaconValue = proximityZoneContext.getAttachments().get("desk-owner");
return null;;
}
})
.build();
proximityObserver.startObserving(zone);
so for this code, I actually want to return something in the invoke function but Unit is implicit meaning it does not actually return anything, is there anyway to change this part of code from Unit to String correctly.
Thank you