Whoever develops this class does not want you to instantiate directly, you cannot do what you want. Most likely, the original author had a good reason for this, maybe it was memory management, or he wanted to control the life cycle or stop problems with threads, there could be many reasons.
The only obvious answer is to rewrite the sources so that they work the way you want, instead of trying to get into someone else's design. Or you can create a wrapper around this class that hides the part you don't like, so you donβt need to know the rest of the code.
source share