@simplysm/capacitor-plugin-broadcast 13.0.0-beta.22 → 13.0.0-beta.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -50,6 +50,23 @@ An interface representing Broadcast reception results or Intent information.
50
50
  | `action` | `string \| undefined` | Broadcast action string |
51
51
  | `extras` | `Record<string, unknown> \| undefined` | Additional data included in the Intent |
52
52
 
53
+ ### `IBroadcastPlugin` Interface
54
+
55
+ The low-level Capacitor plugin interface. In most cases, use the `Broadcast` wrapper class instead of this interface directly. It is exported for advanced use cases such as custom plugin registration.
56
+
57
+ | Method | Return Type | Description |
58
+ |--------|----------|------|
59
+ | `subscribe(options, callback)` | `Promise<{ id: string }>` | Register a BroadcastReceiver with intent filters |
60
+ | `unsubscribe(options)` | `Promise<void>` | Unregister a specific BroadcastReceiver by ID |
61
+ | `unsubscribeAll()` | `Promise<void>` | Unregister all BroadcastReceivers |
62
+ | `send(options)` | `Promise<void>` | Send a Broadcast Intent |
63
+ | `getLaunchIntent()` | `Promise<IBroadcastResult>` | Retrieve the launch Intent |
64
+ | `addListener("onNewIntent", callback)` | `Promise<PluginListenerHandle>` | Listen for new Intents while the app is running |
65
+
66
+ ```typescript
67
+ import type { IBroadcastPlugin, IBroadcastResult } from "@simplysm/capacitor-plugin-broadcast";
68
+ ```
69
+
53
70
  ## Usage Examples
54
71
 
55
72
  ### Receiving Broadcasts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/capacitor-plugin-broadcast",
3
- "version": "13.0.0-beta.22",
3
+ "version": "13.0.0-beta.23",
4
4
  "description": "심플리즘 패키지 - Capacitor Broadcast Plugin",
5
5
  "author": "김석래",
6
6
  "repository": {