Skip to content

Instantly share code, notes, and snippets.

@Veenap
Created March 5, 2021 14:38
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/bde5e8cb3930343bb8fa6a1db3700ec9 to your computer and use it in GitHub Desktop.
Save Veenap/bde5e8cb3930343bb8fa6a1db3700ec9 to your computer and use it in GitHub Desktop.
@Override
public void onAttachedToEngine(
@NonNull FlutterPluginBinding flutterPluginBinding
) {
channel =
new MethodChannel(
flutterPluginBinding.getBinaryMessenger(),
"org.rudderstack.dev/battery"
);
channel.setMethodCallHandler(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment