Skip to content

Commit

Permalink
Get registered plugins from capacitor
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDHW committed Jun 5, 2021
1 parent 7098d9e commit 63510c8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/plugins/IonicNativePluginExample.ts
@@ -0,0 +1,10 @@
import { registerPlugin, Plugin } from "@capacitor/core";

interface NativePluginInterface extends Plugin {
NativeMethod: () => Promise<Record<"message", string>>;
NotifyListeners: () => Promise<void>;
}

export const IonicNativePluginExample = registerPlugin<NativePluginInterface>(
"IonicNativePluginExample"
);

0 comments on commit 63510c8

Please sign in to comment.