halildurmus / dartwinrt

Idiomatic Dart projection of the modern Windows Runtime (WinRT) APIs.
BSD 3-Clause "New" or "Revised" License
50 stars 3 forks source link

Remove `IInspectable` methods (`getIids`, `getRuntimeClassName`, and `getTrustLevel`) #21

Closed halildurmus closed 1 year ago

halildurmus commented 1 year ago

We should remove these methods as they clutter up Intellisense and autocomplete. However, we should provide a way for consumers to get access to these methods if they want to.

See the post from Raymond Chen: How do I access and customize the IInspectable methods of a Windows Runtime class written in C++/WinRT?

We should also remove the queryInterface method from the IUnknown interface as there is a much better alternative (toInterface) for this. I already deprecated the queryInterface in the dev branch.