How to pass enum in function?

Thanks, I found that code hidden internally. It looks like what I need, but I still have no idea what “Bindings” are, how to create them, or what they should be. Any suggestions?