According to the documentation here
the isDynamicMediaEnabled method is now deprecated and I wanted to use the ImageDelivery.isEnabled() to get the same experience and from the depfinder I see I can use the following POM dependency to get hold of the ImageDelivery class.
but the dependency is probably not publicly available and and am unable to use it in my code, is there a workaround in place?
Did you check in uber jar?
Try adding proper uber jar as per aem version
The Uber jar doesn't have that package i.e com.adobe.cq.dam.dm.delivery.api.ImageDelivery
Then I would suggest we shouldn't be using this feature as this is deprecated and in future versions might be removed, better to look for some other solutions.
You can make this scenario work but I would suggest that's not the correct way.
This build of the Uber Jar does though :
There are quite a few deprecations in the 6.5 UberJar. You can use this build as a stop-gap until you can refactor out the deprecated dependencies.
I tried this but it did not work.