Calling the API is possible with JavaObject or a bit of inline Java: https://developers.google.com/android/exposure-notifications/exposure-notifications-api
However, to actually build somthing with it, you need to build a full and quite complex solution with a server side and many other features.
I don't plan for now to create such example. Remember that this feature is limited to a single app per country.