Skip to content

Instantly share code, notes, and snippets.

@rxlabz
Last active June 16, 2017 17:03
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 rxlabz/113c7a0ce6cabf1d50dbe870ec01fd8e to your computer and use it in GitHub Desktop.
Save rxlabz/113c7a0ce6cabf1d50dbe870ec01fd8e to your computer and use it in GitHub Desktop.
new MethodChannel(getFlutterView(), "plugin_demo").setMethodCallHandler(
new MethodCallHandler() {
@Override
public void onMethodCall(MethodCall call, Result result) {
if (call.method.equals("getPlatformVersion")) {
result.success("Android " + android.os.Build.VERSION.RELEASE);
} else {
result.notImplemented();
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment