Skip to content

Commit

Permalink
Update sites/cheerpj/src/content/docs/11-guides/implementing-native-m…
Browse files Browse the repository at this point in the history
…ethods.md

Co-authored-by: Ana Gabriela Reyna <gabrielareynaflores@gmail.com>
  • Loading branch information
theodoravraimakis and GabrielaReyna authored Nov 21, 2024
1 parent af0a4bb commit a81646e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function Java_Example_alert(lib, str) {

Here, we provide an implementation for the `alert` method in the `Example` class, by creating a function named `Java_Example_alert`. The function displays an alert dialog with the message using `window.alert`.

3. Initialize CheerpJ with the `natives` option and pass the native method implementation to `cheerpjInit`:
3. Initialize CheerpJ with the `natives` option and pass the native method implementation to [`cheerpjInit`]:

```html title="index.html" {13}
<!doctype html>
Expand Down

0 comments on commit a81646e

Please sign in to comment.