Last active
March 5, 2021 14:43
-
-
Save Veenap/f69fd8bddd46d9130c648cdf61865107 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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