I want to get battery usages of an application programmatically. iOS 8 provide battery usages monitor utility and I want to know how did Apple implemented this feature. Is there any public API for this ?
I want battery consumption value for my iOS app in x mAh/min or x% of current battery status or any similar format.
Kindly help.