@implementation

AppDelegate

BOOL

application

:(

UIApplication

application

didFinishLaunchingWithOptions

:(

NSDictionary

launchOptions

FlutterViewController

controller

FlutterViewController

self

window

rootViewController

FlutterMethodChannel

batteryChannel

FlutterMethodChannel

methodChannelWithName:

@"samples.flutter.dev/battery"

binaryMessenger:

controller

binaryMessenger

];

batteryChannel

setMethodCallHandler

FlutterMethodCall

call

FlutterResult

result