call

FlutterResult

result

// This method is invoked on the UI thread.

// TODO

}];

GeneratedPluginRegistrant

registerWithRegistry

self

];

return

super

application

application

didFinishLaunchingWithOptions

launchOptions

];

Next, add the iOS ObjectiveC code that uses the iOS battery APIs to
retrieve the battery level. This code is exactly the same as you
would write in a native iOS app.

Add the following method in the AppDelegate class, just before @end: