flutter

::

MethodCall

<>&

call

std

::

unique_ptr

flutter

::

MethodResult

<>>

result

// TODO

});

SetChildContent

flutter_controller_

>

view

()

>

GetNativeWindow

());

return

true

Next, add the C++ code that uses the Windows battery APIs to
retrieve the battery level. This code is exactly the same as
you would write in a native Windows application.

Add the following as a new function at the top of
flutter_window.cpp just after the #include section:

static

int