Unrecognized Type 'FSampleDelegate'


I’m currently trying to create a delegate in one of my classes. I’ve followed the examples found online but for some reason it gives me this error

My code is as follows


What exactly am I doing wrong?

To make event dispacher you need to use BlueprintAssignable not BlueprintCallable which can be only used in UFUNCTIONs