Skip to content

Instantly share code, notes, and snippets.

@Veenap
Last active March 5, 2021 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Veenap/f69fd8bddd46d9130c648cdf61865107 to your computer and use it in GitHub Desktop.
Save Veenap/f69fd8bddd46d9130c648cdf61865107 to your computer and use it in GitHub Desktop.
@Override
public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
if (call.method.equals("getBatteryLevel")) {
result.success(99);
} else {
result.notImplemented();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment