Bassman2 / MediaDevices

MTP Library
MIT License
99 stars 37 forks source link

MediaDeviceEventArgs how to use #131

Closed leeand27 closed 1 month ago

leeand27 commented 5 months ago

If I want to use OperationProgress Property in relation to DownloadFile Method of a MediaDevice - how would I do that? I assume this would be by handling an event - but I can not find that event in the MediaDevice Class. How do I use the MediaDeviceEventArgs Class? A simple example would be appreciated - in my case it is coded C# in Windows Forms.

NilsHoyer commented 3 months ago

Unfortunately, it looks like, Ralf does not support this project at the moment. May I ask to answer your question?

The MediaDeviceEventArgs class will be used with the MediaDevice events only. But the DownloadFile method does not trigger an event. So you can't use the OperationProgress at the moment.

leeand27 commented 1 month ago

Thank you Nils for the clarification.