Register Type from imported package
as001622 opened this issue · 2 comments
as001622 commented
Hello!
How to register some Type from imported package, which doesn't have a constructor, but instead has a getInstance() method, witch return Future. As example SharedPreferences.
letsar commented
Hello,
Sorry I completed missed this.
If the instance is returned within a Future the first thing to do is to await it in order to get the instance. Then you can call container.registerInstance(myInstance);
vanlooverenkoen commented