I saw a comment in a github project stating that None of this will work for iOS as I/O Kit is a private framework there. Is that also true for mac also?
When I mentioned “I/O Kit headers” earlier, I meant “I/O Kit headers in the public SDK”. In the specific case of
IOPSGetTimeRemainingEstimate
, that routine is declared in
<IOKit/IOPowerSources.h>
in the public macOS 10.11 SDK and, as such, should be fine in a Mac App Store app.
Keep in mind that there may be other Mac App Store restrictions, either technical restrictions from the sandbox or business restrictions from the App Store Review Guidelines, that might apply in this specific case. I don’t work for App Review and can’t give you a definitive answer as to what will or won’t be allowed in the store. However, the general rule is that, if the API you’re using is a public API, and you’re using it in the way that it was intended to be used, you should be OK.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"