override

func

application

application

UIApplication

didFinishLaunchingWithOptions

launchOptions

UIApplication

LaunchOptionsKey

Any

]?)

>

Bool

let

controller

FlutterViewController

window

rootViewController

as!

FlutterViewController

let

batteryChannel

FlutterMethodChannel

name

"samples.flutter.dev/battery"

binaryMessenger

controller

binaryMessenger

batteryChannel

setMethodCallHandler

({

call

FlutterMethodCall

result