@simplysm/capacitor-plugin-broadcast 12.16.27 → 13.0.0-beta.2

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.
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.webworker.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/csstype@3.2.3/node_modules/csstype/index.d.ts","../../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/types/jsx.d.ts","../../../node_modules/.pnpm/@capacitor+core@7.4.5/node_modules/@capacitor/core/types/definitions-internal.d.ts","../../../node_modules/.pnpm/@capacitor+core@7.4.5/node_modules/@capacitor/core/types/util.d.ts","../../../node_modules/.pnpm/@capacitor+core@7.4.5/node_modules/@capacitor/core/types/definitions.d.ts","../../../node_modules/.pnpm/@capacitor+core@7.4.5/node_modules/@capacitor/core/types/global.d.ts","../../../node_modules/.pnpm/@capacitor+core@7.4.5/node_modules/@capacitor/core/types/web-plugin.d.ts","../../../node_modules/.pnpm/@capacitor+core@7.4.5/node_modules/@capacitor/core/types/core-plugins.d.ts","../../../node_modules/.pnpm/@capacitor+core@7.4.5/node_modules/@capacitor/core/types/index.d.ts","../src/IBroadcastPlugin.ts","../src/web/BroadcastWeb.ts","../src/Broadcast.ts","../src/index.ts"],"fileIdsList":[[86,88],[86],[85],[85,86,87,88,89],[84],[85,86],[82],[83,90,91,92],[83,90],[83,91,93],[83,90,91]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","signature":false,"impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","signature":false,"impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","signature":false,"impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","signature":false,"impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","signature":false,"impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","signature":false,"impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","signature":false,"impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","signature":false,"impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","signature":false,"impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","signature":false,"impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","signature":false,"impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"8ea22b76493fc658fe9b76a84e64c9618823608076ecee5ed3f93f7f0dde904e","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","signature":false,"affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","signature":false,"impliedFormat":1},{"version":"5ad3e58181b335ff8794bcc3161a1506dbe8cebbce71a15b3dc7bfe56f076679","signature":false,"impliedFormat":99},{"version":"676166750527a2d0f685cd72a325f57cee8324e3a87c2466492d057332be2609","signature":false,"impliedFormat":1},{"version":"faf9680c348be133d1deebf9b65f0d527013f12bd52cfc1dfa91cf140a105c79","signature":false,"impliedFormat":1},{"version":"c1bf515bb8571ae22aed9f95484eda20dafe3e976a18e75fc202e109ddb90c79","signature":false,"impliedFormat":1},{"version":"0504724a0b391f837adbd89cbf451647b9c317c9f4eb1dff6144356b2e2580fb","signature":false,"impliedFormat":1},{"version":"9a08820b03bed0396aca9c00023ccfb5bd58493ba790a21419ce5ca47ed75d70","signature":false,"impliedFormat":1},{"version":"b19cc33ba9acf99826ae93551507755b4348ea59041a0b7a7c034f78624fad39","signature":false,"impliedFormat":1},{"version":"2092e5163496bee3920cf37f898ae05e2a70ec66c269662079ca733dc6711555","signature":false,"impliedFormat":1},{"version":"90e146aba5e8f2c9b23fede334fa88ce682e05d76f167cae87e652bdb491805e","signature":false},{"version":"bd1e186274b5a91af740cfeef587818d6f3aff711c7b47e6cec54ca839a64385","signature":false},{"version":"ca9242f576f773f8978936abc838289ed75399460eb053d740cf885297c27565","signature":false},{"version":"e437afe4c5f32c92019cff0ff516d972fa0a0a2f46939d718b01cc2a282900a7","signature":false}],"root":[[91,94]],"options":{"declaration":false,"declarationMap":false,"emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"jsx":1,"jsxImportSource":"solid-js","module":99,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitOverride":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":true,"skipLibCheck":true,"sourceMap":false,"strict":true,"target":99,"tsBuildInfoFile":"./typecheck-browser.tsbuildinfo","useDefineForClassFields":true,"useUnknownInCatchVariables":true,"verbatimModuleSyntax":true},"referencedMap":[[89,1],[84,2],[86,3],[87,2],[90,4],[85,5],[88,6],[83,7],[93,8],[91,9],[94,10],[92,11]],"changeFileSet":[89,84,86,87,90,85,88,82,83,80,81,13,14,17,16,2,18,19,20,21,22,23,24,25,3,26,27,4,28,32,29,30,31,33,34,35,5,36,37,38,39,6,43,40,41,42,44,7,45,50,51,46,47,48,49,8,55,52,53,54,56,9,57,58,59,61,60,62,63,10,64,65,66,11,67,68,69,70,71,1,72,73,12,77,75,79,74,78,76,15,93,91,94,92],"version":"5.8.3"}
package/README.md CHANGED
@@ -1,39 +1,111 @@
1
1
  # @simplysm/capacitor-plugin-broadcast
2
2
 
3
- Android Broadcast 송수신을 위한 Capacitor 플러그인입니다.
3
+ A Capacitor plugin for sending and receiving Android Broadcast Intents. It is primarily designed for integration with industrial Android devices such as barcode scanners and PDAs.
4
4
 
5
- 산업용 장치(바코드 스캐너, PDA 등)와의 연동을 위해 설계되었습니다.
5
+ It provides features including BroadcastReceiver registration/unregistration, Intent sending, app launch Intent retrieval, and new Intent reception listeners.
6
6
 
7
- > ⚠️ **Android 전용** - iOS는 Broadcast 개념이 없어 지원하지 않습니다.
8
-
9
- ## 설치
7
+ ## Installation
10
8
 
11
9
  ```bash
12
- yarn add @simplysm/capacitor-plugin-broadcast
10
+ npm install @simplysm/capacitor-plugin-broadcast
13
11
  npx cap sync
14
12
  ```
15
13
 
16
- ## 사용법
14
+ ### Requirements
15
+
16
+ | Item | Version |
17
+ |------|------|
18
+ | `@capacitor/core` | `^7.4.4` |
19
+ | Android `minSdk` | 23 |
20
+ | Android `compileSdk` | 35 |
21
+
22
+ ## Supported Platforms
23
+
24
+ | Platform | Supported | Notes |
25
+ |--------|----------|------|
26
+ | Android | Yes | Native BroadcastReceiver implementation |
27
+ | iOS | No | Not supported |
28
+ | Web | Partial | Stub implementation (outputs warning messages, no actual functionality) |
29
+
30
+ ## Main API
31
+
32
+ ### `Broadcast` Class
33
+
34
+ A wrapper class consisting only of static methods. Access the native plugin through this class instead of using it directly.
17
35
 
18
- ### Broadcast 수신
36
+ | Method | Return Type | Description |
37
+ |--------|----------|------|
38
+ | `subscribe(filters, callback)` | `Promise<() => Promise<void>>` | Registers a Broadcast receiver and returns an unsubscribe function |
39
+ | `unsubscribeAll()` | `Promise<void>` | Unregisters all registered Broadcast receivers |
40
+ | `send(options)` | `Promise<void>` | Sends a Broadcast Intent |
41
+ | `getLaunchIntent()` | `Promise<IBroadcastResult>` | Retrieves the Intent information that launched the app |
42
+ | `addNewIntentListener(callback)` | `Promise<PluginListenerHandle>` | Registers a listener for new Intents received while the app is running |
43
+
44
+ ### `IBroadcastResult` Interface
45
+
46
+ An interface representing Broadcast reception results or Intent information.
47
+
48
+ | Property | Type | Description |
49
+ |------|------|------|
50
+ | `action` | `string \| undefined` | Broadcast action string |
51
+ | `extras` | `Record<string, unknown> \| undefined` | Additional data included in the Intent |
52
+
53
+ ## Usage Examples
54
+
55
+ ### Receiving Broadcasts
56
+
57
+ Registers a Broadcast receiver for specific actions. `subscribe` returns an unsubscribe function that can be called to remove the receiver.
19
58
 
20
59
  ```typescript
21
60
  import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
22
61
 
23
- // 수신 등록 - 해제 함수 반환
62
+ // Register Broadcast receiver
24
63
  const unsubscribe = await Broadcast.subscribe(
25
64
  ["com.symbol.datawedge.api.RESULT_ACTION"],
26
65
  (result) => {
27
66
  console.log("Action:", result.action);
28
67
  console.log("Extras:", result.extras);
29
- }
68
+ },
30
69
  );
31
70
 
32
- // 수신 해제
71
+ // Unsubscribe receiver
33
72
  await unsubscribe();
34
73
  ```
35
74
 
36
- ### Broadcast 송신
75
+ You can also filter multiple actions simultaneously.
76
+
77
+ ```typescript
78
+ const unsubscribe = await Broadcast.subscribe(
79
+ [
80
+ "com.symbol.datawedge.api.RESULT_ACTION",
81
+ "com.symbol.datawedge.api.NOTIFICATION_ACTION",
82
+ ],
83
+ (result) => {
84
+ switch (result.action) {
85
+ case "com.symbol.datawedge.api.RESULT_ACTION":
86
+ // Handle result
87
+ break;
88
+ case "com.symbol.datawedge.api.NOTIFICATION_ACTION":
89
+ // Handle notification
90
+ break;
91
+ }
92
+ },
93
+ );
94
+ ```
95
+
96
+ ### Unsubscribe All Receivers
97
+
98
+ Unregisters all registered Broadcast receivers at once. Use this for cleanup when the app exits or during screen transitions.
99
+
100
+ ```typescript
101
+ import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
102
+
103
+ await Broadcast.unsubscribeAll();
104
+ ```
105
+
106
+ ### Sending Broadcasts
107
+
108
+ Sends a Broadcast Intent to other apps or the system. You can include additional data as key-value pairs in `extras`.
37
109
 
38
110
  ```typescript
39
111
  import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
@@ -41,72 +113,121 @@ import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
41
113
  await Broadcast.send({
42
114
  action: "com.symbol.datawedge.api.ACTION",
43
115
  extras: {
44
- "com.symbol.datawedge.api.SOFT_SCAN_TRIGGER": "TOGGLE_SCANNING"
45
- }
116
+ "com.symbol.datawedge.api.SOFT_SCAN_TRIGGER": "TOGGLE_SCANNING",
117
+ },
46
118
  });
47
119
  ```
48
120
 
49
- ### 전체 수신기 해제
121
+ `extras` can contain various types of values.
50
122
 
51
123
  ```typescript
52
- import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
53
-
54
- await Broadcast.unsubscribeAll();
124
+ await Broadcast.send({
125
+ action: "com.example.MY_ACTION",
126
+ extras: {
127
+ stringValue: "hello",
128
+ numberValue: 42,
129
+ booleanValue: true,
130
+ arrayValue: ["item1", "item2"],
131
+ nestedValue: {
132
+ key: "value",
133
+ },
134
+ },
135
+ });
55
136
  ```
56
137
 
57
- ### 시작 Intent 가져오기
138
+ ### Retrieving Launch Intent
139
+
140
+ If the app was started through an Intent from another app, you can retrieve that Intent information.
58
141
 
59
142
  ```typescript
60
143
  import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
61
144
 
62
145
  const launchIntent = await Broadcast.getLaunchIntent();
63
- console.log(launchIntent.action);
64
- console.log(launchIntent.extras);
146
+ if (launchIntent.action != null) {
147
+ console.log("Launch Action:", launchIntent.action);
148
+ console.log("Launch Extras:", launchIntent.extras);
149
+ }
65
150
  ```
66
151
 
67
- ## API
152
+ ### New Intent Listener
68
153
 
69
- | 메서드 | 설명 |
70
- |--------|------|
71
- | `subscribe(filters, callback)` | Broadcast 수신 등록, 해제 함수 반환 |
72
- | `unsubscribeAll()` | 모든 수신기 해제 |
73
- | `send({ action, extras })` | Broadcast 송신 |
74
- | `getLaunchIntent()` | 앱 시작 Intent 가져오기 |
154
+ Detects when a new Intent is received while the app is already running. Remove the listener using the `remove()` method of the returned `PluginListenerHandle`.
75
155
 
76
- ## 예제: Zebra DataWedge 연동
156
+ ```typescript
157
+ import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
158
+
159
+ const handle = await Broadcast.addNewIntentListener((result) => {
160
+ console.log("New Intent received:", result.action);
161
+ console.log("Extras:", result.extras);
162
+ });
163
+
164
+ // Remove listener
165
+ await handle.remove();
166
+ ```
167
+
168
+ ### DataWedge Integration Example (Zebra Devices)
169
+
170
+ A real-world usage pattern for integrating with industrial barcode scanners (Zebra DataWedge).
77
171
 
78
172
  ```typescript
79
173
  import { Broadcast } from "@simplysm/capacitor-plugin-broadcast";
80
174
 
81
- // 바코드 스캔 결과 수신
175
+ // Register barcode scan result receiver
82
176
  const unsubscribe = await Broadcast.subscribe(
83
177
  ["com.symbol.datawedge.api.RESULT_ACTION"],
84
178
  (result) => {
85
179
  const barcode = result.extras?.["com.symbol.datawedge.data_string"];
86
- if (barcode) {
87
- console.log("스캔된 바코드:", barcode);
180
+ if (barcode != null) {
181
+ console.log("Scanned barcode:", barcode);
88
182
  }
89
- }
183
+ },
90
184
  );
91
185
 
92
- // 소프트 스캔 트리거
186
+ // Trigger soft scan
93
187
  await Broadcast.send({
94
188
  action: "com.symbol.datawedge.api.ACTION",
95
189
  extras: {
96
- "com.symbol.datawedge.api.SOFT_SCAN_TRIGGER": "TOGGLE_SCANNING"
97
- }
190
+ "com.symbol.datawedge.api.SOFT_SCAN_TRIGGER": "TOGGLE_SCANNING",
191
+ },
98
192
  });
99
193
  ```
100
194
 
101
- ## 타입 정의
195
+ ## Supported Extras Types
102
196
 
103
- ```typescript
104
- interface IBroadcastResult {
105
- action?: string;
106
- extras?: Record<string, unknown>;
107
- }
108
- ```
197
+ The types of values that can be included in `extras` when calling `send()`, and the types they are converted to when received, are as follows.
198
+
199
+ ### When Sending (TypeScript -> Android Intent)
200
+
201
+ | TypeScript Type | Android Intent Type |
202
+ |----------------|-------------------|
203
+ | `string` | `String` |
204
+ | `number` (integer) | `Integer` |
205
+ | `number` (decimal) | `Double` |
206
+ | `boolean` | `Boolean` |
207
+ | `string[]` | `String[]` |
208
+ | Nested object | `Bundle` |
209
+
210
+ ### When Receiving (Android Intent -> TypeScript)
211
+
212
+ | Android Type | TypeScript Type |
213
+ |-------------|----------------|
214
+ | `String` | `string` |
215
+ | `Integer` | `number` |
216
+ | `Long` | `number` |
217
+ | `Double` | `number` |
218
+ | `Float` | `number` |
219
+ | `Boolean` | `boolean` |
220
+ | `Bundle` | Nested object |
221
+ | `String[]` | `string[]` |
222
+ | `int[]` | `number[]` |
223
+ | `Parcelable` | `string` (toString) |
224
+
225
+ ## Lifecycle Management
226
+
227
+ - The plugin automatically unregisters all BroadcastReceivers when the Activity is destroyed (`handleOnDestroy`).
228
+ - On Android 13 (API 33, Tiramisu) and above, receivers are registered using the `RECEIVER_EXPORTED` flag.
229
+ - To prevent memory leaks, it is recommended to unregister receivers that are no longer needed using the returned unsubscribe function or `unsubscribeAll()`.
109
230
 
110
- ## 라이선스
231
+ ## License
111
232
 
112
233
  MIT
@@ -23,7 +23,6 @@ import org.json.JSONObject;
23
23
  import java.util.HashMap;
24
24
  import java.util.Iterator;
25
25
  import java.util.Map;
26
- import java.util.Set;
27
26
  import java.util.UUID;
28
27
 
29
28
  @CapacitorPlugin(name = "Broadcast")
@@ -1,4 +1,5 @@
1
- import { IBroadcastResult } from "./IBroadcastPlugin";
1
+ import type { PluginListenerHandle } from "@capacitor/core";
2
+ import type { IBroadcastResult } from "./IBroadcastPlugin";
2
3
  /**
3
4
  * Android Broadcast 송수신 플러그인
4
5
  * - 산업용 장치(바코드 스캐너, PDA 등) 연동용
@@ -45,4 +46,10 @@ export declare abstract class Broadcast {
45
46
  * 앱 시작 Intent 가져오기
46
47
  */
47
48
  static getLaunchIntent(): Promise<IBroadcastResult>;
49
+ /**
50
+ * 앱 실행 중 새 Intent 수신 리스너 등록
51
+ * @returns 리스너 핸들 (remove()로 해제)
52
+ */
53
+ static addNewIntentListener(callback: (result: IBroadcastResult) => void): Promise<PluginListenerHandle>;
48
54
  }
55
+ //# sourceMappingURL=Broadcast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Broadcast.d.ts","sourceRoot":"","sources":["../src/Broadcast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAoB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAS7E;;;GAGG;AACH,8BAAsB,SAAS;IAC7B;;;;;;;;;;;;;;OAcG;WACU,SAAS,CACpB,OAAO,EAAE,MAAM,EAAE,EACjB,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,GAC3C,OAAO,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAY/B;;OAEG;WACU,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5C;;;;;;;;;;;;OAYG;WACU,IAAI,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/F;;OAEG;WACU,eAAe,IAAI,OAAO,CAAC,gBAAgB,CAAC;IAIzD;;;OAGG;WACU,oBAAoB,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAG/G"}
package/dist/Broadcast.js CHANGED
@@ -1,62 +1,73 @@
1
1
  import { registerPlugin } from "@capacitor/core";
2
2
  const BroadcastPlugin = registerPlugin("Broadcast", {
3
- web: async () => {
4
- const { BroadcastWeb } = await import("./web/BroadcastWeb");
5
- return new BroadcastWeb();
6
- },
3
+ web: async () => {
4
+ const { BroadcastWeb } = await import("./web/BroadcastWeb");
5
+ return new BroadcastWeb();
6
+ }
7
7
  });
8
- /**
9
- * Android Broadcast 송수신 플러그인
10
- * - 산업용 장치(바코드 스캐너, PDA 등) 연동용
11
- */
12
- export class Broadcast {
13
- /**
14
- * Broadcast 수신 등록
15
- * @returns 해제 함수
16
- *
17
- * @example
18
- * ```ts
19
- * const unsub = await Broadcast.subscribe(
20
- * ["com.symbol.datawedge.api.RESULT_ACTION"],
21
- * (result) => console.log(result.extras)
22
- * );
23
- *
24
- * // 해제
25
- * unsub();
26
- * ```
27
- */
28
- static async subscribe(filters, callback) {
29
- const { id } = await BroadcastPlugin.subscribe({ filters }, callback);
30
- return async () => {
31
- await BroadcastPlugin.unsubscribe({ id });
32
- };
33
- }
34
- /**
35
- * 모든 Broadcast 수신기 해제
36
- */
37
- static async unsubscribeAll() {
38
- await BroadcastPlugin.unsubscribeAll();
39
- }
40
- /**
41
- * Broadcast 전송
42
- *
43
- * @example
44
- * ```ts
45
- * await Broadcast.send({
46
- * action: "com.symbol.datawedge.api.ACTION",
47
- * extras: {
48
- * "com.symbol.datawedge.api.SOFT_SCAN_TRIGGER": "TOGGLE_SCANNING"
49
- * }
50
- * });
51
- * ```
52
- */
53
- static async send(options) {
54
- await BroadcastPlugin.send(options);
55
- }
56
- /**
57
- * 앱 시작 Intent 가져오기
58
- */
59
- static async getLaunchIntent() {
60
- return await BroadcastPlugin.getLaunchIntent();
61
- }
8
+ class Broadcast {
9
+ /**
10
+ * Broadcast 수신 등록
11
+ * @returns 해제 함수
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const unsub = await Broadcast.subscribe(
16
+ * ["com.symbol.datawedge.api.RESULT_ACTION"],
17
+ * (result) => console.log(result.extras)
18
+ * );
19
+ *
20
+ * // 해제
21
+ * unsub();
22
+ * ```
23
+ */
24
+ static async subscribe(filters, callback) {
25
+ const { id } = await BroadcastPlugin.subscribe({ filters }, (result) => {
26
+ if (result.action != null) {
27
+ callback(result);
28
+ }
29
+ });
30
+ return async () => {
31
+ await BroadcastPlugin.unsubscribe({ id });
32
+ };
33
+ }
34
+ /**
35
+ * 모든 Broadcast 수신기 해제
36
+ */
37
+ static async unsubscribeAll() {
38
+ await BroadcastPlugin.unsubscribeAll();
39
+ }
40
+ /**
41
+ * Broadcast 전송
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * await Broadcast.send({
46
+ * action: "com.symbol.datawedge.api.ACTION",
47
+ * extras: {
48
+ * "com.symbol.datawedge.api.SOFT_SCAN_TRIGGER": "TOGGLE_SCANNING"
49
+ * }
50
+ * });
51
+ * ```
52
+ */
53
+ static async send(options) {
54
+ await BroadcastPlugin.send(options);
55
+ }
56
+ /**
57
+ * 앱 시작 Intent 가져오기
58
+ */
59
+ static async getLaunchIntent() {
60
+ return BroadcastPlugin.getLaunchIntent();
61
+ }
62
+ /**
63
+ * 앱 실행 중 새 Intent 수신 리스너 등록
64
+ * @returns 리스너 핸들 (remove()로 해제)
65
+ */
66
+ static async addNewIntentListener(callback) {
67
+ return BroadcastPlugin.addListener("onNewIntent", callback);
68
+ }
62
69
  }
70
+ export {
71
+ Broadcast
72
+ };
73
+ //# sourceMappingURL=Broadcast.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/Broadcast.ts"],
4
+ "sourcesContent": ["import { registerPlugin } from \"@capacitor/core\";\nimport type { PluginListenerHandle } from \"@capacitor/core\";\nimport type { IBroadcastPlugin, IBroadcastResult } from \"./IBroadcastPlugin\";\n\nconst BroadcastPlugin = registerPlugin<IBroadcastPlugin>(\"Broadcast\", {\n web: async () => {\n const { BroadcastWeb } = await import(\"./web/BroadcastWeb\");\n return new BroadcastWeb();\n },\n});\n\n/**\n * Android Broadcast \uC1A1\uC218\uC2E0 \uD50C\uB7EC\uADF8\uC778\n * - \uC0B0\uC5C5\uC6A9 \uC7A5\uCE58(\uBC14\uCF54\uB4DC \uC2A4\uCE90\uB108, PDA \uB4F1) \uC5F0\uB3D9\uC6A9\n */\nexport abstract class Broadcast {\n /**\n * Broadcast \uC218\uC2E0 \uB4F1\uB85D\n * @returns \uD574\uC81C \uD568\uC218\n *\n * @example\n * ```ts\n * const unsub = await Broadcast.subscribe(\n * [\"com.symbol.datawedge.api.RESULT_ACTION\"],\n * (result) => console.log(result.extras)\n * );\n *\n * // \uD574\uC81C\n * unsub();\n * ```\n */\n static async subscribe(\n filters: string[],\n callback: (result: IBroadcastResult) => void,\n ): Promise<() => Promise<void>> {\n const { id } = await BroadcastPlugin.subscribe({ filters }, (result) => {\n // Filter out the initial resolve that only contains { id }\n if (result.action != null) {\n callback(result);\n }\n });\n return async () => {\n await BroadcastPlugin.unsubscribe({ id });\n };\n }\n\n /**\n * \uBAA8\uB4E0 Broadcast \uC218\uC2E0\uAE30 \uD574\uC81C\n */\n static async unsubscribeAll(): Promise<void> {\n await BroadcastPlugin.unsubscribeAll();\n }\n\n /**\n * Broadcast \uC804\uC1A1\n *\n * @example\n * ```ts\n * await Broadcast.send({\n * action: \"com.symbol.datawedge.api.ACTION\",\n * extras: {\n * \"com.symbol.datawedge.api.SOFT_SCAN_TRIGGER\": \"TOGGLE_SCANNING\"\n * }\n * });\n * ```\n */\n static async send(options: { action: string; extras?: Record<string, unknown> }): Promise<void> {\n await BroadcastPlugin.send(options);\n }\n\n /**\n * \uC571 \uC2DC\uC791 Intent \uAC00\uC838\uC624\uAE30\n */\n static async getLaunchIntent(): Promise<IBroadcastResult> {\n return BroadcastPlugin.getLaunchIntent();\n }\n\n /**\n * \uC571 \uC2E4\uD589 \uC911 \uC0C8 Intent \uC218\uC2E0 \uB9AC\uC2A4\uB108 \uB4F1\uB85D\n * @returns \uB9AC\uC2A4\uB108 \uD578\uB4E4 (remove()\uB85C \uD574\uC81C)\n */\n static async addNewIntentListener(callback: (result: IBroadcastResult) => void): Promise<PluginListenerHandle> {\n return BroadcastPlugin.addListener(\"onNewIntent\", callback);\n }\n}\n"],
5
+ "mappings": "AAAA,SAAS,sBAAsB;AAI/B,MAAM,kBAAkB,eAAiC,aAAa;AAAA,EACpE,KAAK,YAAY;AACf,UAAM,EAAE,aAAa,IAAI,MAAM,OAAO,oBAAoB;AAC1D,WAAO,IAAI,aAAa;AAAA,EAC1B;AACF,CAAC;AAMM,MAAe,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAgB9B,aAAa,UACX,SACA,UAC8B;AAC9B,UAAM,EAAE,GAAG,IAAI,MAAM,gBAAgB,UAAU,EAAE,QAAQ,GAAG,CAAC,WAAW;AAEtE,UAAI,OAAO,UAAU,MAAM;AACzB,iBAAS,MAAM;AAAA,MACjB;AAAA,IACF,CAAC;AACD,WAAO,YAAY;AACjB,YAAM,gBAAgB,YAAY,EAAE,GAAG,CAAC;AAAA,IAC1C;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAKA,aAAa,iBAAgC;AAC3C,UAAM,gBAAgB,eAAe;AAAA,EACvC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAeA,aAAa,KAAK,SAA8E;AAC9F,UAAM,gBAAgB,KAAK,OAAO;AAAA,EACpC;AAAA;AAAA;AAAA;AAAA,EAKA,aAAa,kBAA6C;AACxD,WAAO,gBAAgB,gBAAgB;AAAA,EACzC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,aAAa,qBAAqB,UAA6E;AAC7G,WAAO,gBAAgB,YAAY,eAAe,QAAQ;AAAA,EAC5D;AACF;",
6
+ "names": []
7
+ }
@@ -1,3 +1,4 @@
1
+ import type { PluginListenerHandle } from "@capacitor/core";
1
2
  export interface IBroadcastResult {
2
3
  /** Broadcast action */
3
4
  action?: string;
@@ -34,4 +35,9 @@ export interface IBroadcastPlugin {
34
35
  * 앱 시작 Intent 가져오기
35
36
  */
36
37
  getLaunchIntent(): Promise<IBroadcastResult>;
38
+ /**
39
+ * 앱 실행 중 새 Intent 수신 리스너 등록
40
+ */
41
+ addListener(eventName: "onNewIntent", listenerFunc: (data: IBroadcastResult) => void): Promise<PluginListenerHandle>;
37
42
  }
43
+ //# sourceMappingURL=IBroadcastPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IBroadcastPlugin.d.ts","sourceRoot":"","sources":["../src/IBroadcastPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,uBAAuB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,OAAO,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAEjH;;OAEG;IACH,WAAW,CAAC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpD;;OAEG;IACH,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhC;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnF;;OAEG;IACH,eAAe,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7C;;OAEG;IACH,WAAW,CAAC,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACtH"}
@@ -1 +1 @@
1
- export {};
1
+ //# sourceMappingURL=IBroadcastPlugin.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./Broadcast";
2
2
  export * from "./IBroadcastPlugin";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./Broadcast";
2
2
  export * from "./IBroadcastPlugin";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/index.ts"],
4
+ "sourcesContent": ["export * from \"./Broadcast\";\nexport * from \"./IBroadcastPlugin\";\n"],
5
+ "mappings": "AAAA,cAAc;AACd,cAAc;",
6
+ "names": []
7
+ }
@@ -1,6 +1,7 @@
1
1
  import { WebPlugin } from "@capacitor/core";
2
- import { IBroadcastPlugin, IBroadcastResult } from "../IBroadcastPlugin";
2
+ import type { IBroadcastPlugin, IBroadcastResult } from "../IBroadcastPlugin";
3
3
  export declare class BroadcastWeb extends WebPlugin implements IBroadcastPlugin {
4
+ private static readonly _warn;
4
5
  subscribe(_options: {
5
6
  filters: string[];
6
7
  }, _callback: (result: IBroadcastResult) => void): Promise<{
@@ -16,3 +17,4 @@ export declare class BroadcastWeb extends WebPlugin implements IBroadcastPlugin
16
17
  }): Promise<void>;
17
18
  getLaunchIntent(): Promise<IBroadcastResult>;
18
19
  }
20
+ //# sourceMappingURL=BroadcastWeb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BroadcastWeb.d.ts","sourceRoot":"","sources":["../../src/web/BroadcastWeb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,qBAAa,YAAa,SAAQ,SAAU,YAAW,gBAAgB;IACrE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAE+B;IAE5D,SAAS,CAAC,QAAQ,EAAE;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAK5G,WAAW,CAAC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpD,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAIrC,IAAI,CAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAKnF,eAAe,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG7C"}
@@ -1,20 +1,26 @@
1
1
  import { WebPlugin } from "@capacitor/core";
2
- export class BroadcastWeb extends WebPlugin {
3
- async subscribe(_options, _callback) {
4
- alert("[Broadcast] 환경에서는 Broadcast를 지원하지 않습니다.");
5
- return await Promise.resolve({ id: "web-stub" });
6
- }
7
- async unsubscribe(_options) {
8
- await Promise.resolve();
9
- }
10
- async unsubscribeAll() {
11
- await Promise.resolve();
12
- }
13
- async send(_options) {
14
- alert("[Broadcast] 웹 환경에서는 Broadcast를 지원하지 않습니다.");
15
- await Promise.resolve();
16
- }
17
- async getLaunchIntent() {
18
- return await Promise.resolve({});
19
- }
2
+ class BroadcastWeb extends WebPlugin {
3
+ static _warn = () => (
4
+ // eslint-disable-next-line no-console
5
+ console.warn("[Broadcast] \uC6F9 \uD658\uACBD\uC5D0\uC11C\uB294 Broadcast\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")
6
+ );
7
+ subscribe(_options, _callback) {
8
+ BroadcastWeb._warn();
9
+ return Promise.resolve({ id: "web-stub" });
10
+ }
11
+ async unsubscribe(_options) {
12
+ }
13
+ async unsubscribeAll() {
14
+ }
15
+ send(_options) {
16
+ BroadcastWeb._warn();
17
+ return Promise.resolve();
18
+ }
19
+ getLaunchIntent() {
20
+ return Promise.resolve({});
21
+ }
20
22
  }
23
+ export {
24
+ BroadcastWeb
25
+ };
26
+ //# sourceMappingURL=BroadcastWeb.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/web/BroadcastWeb.ts"],
4
+ "sourcesContent": ["import { WebPlugin } from \"@capacitor/core\";\nimport type { IBroadcastPlugin, IBroadcastResult } from \"../IBroadcastPlugin\";\n\nexport class BroadcastWeb extends WebPlugin implements IBroadcastPlugin {\n private static readonly _warn = () =>\n // eslint-disable-next-line no-console\n console.warn(\"[Broadcast] \uC6F9 \uD658\uACBD\uC5D0\uC11C\uB294 Broadcast\uB97C \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.\");\n\n subscribe(_options: { filters: string[] }, _callback: (result: IBroadcastResult) => void): Promise<{ id: string }> {\n BroadcastWeb._warn();\n return Promise.resolve({ id: \"web-stub\" });\n }\n\n async unsubscribe(_options: { id: string }): Promise<void> {\n // \uC6F9 \uD658\uACBD\uC5D0\uC11C\uB294 no-op\n }\n\n async unsubscribeAll(): Promise<void> {\n // \uC6F9 \uD658\uACBD\uC5D0\uC11C\uB294 no-op\n }\n\n send(_options: { action: string; extras?: Record<string, unknown> }): Promise<void> {\n BroadcastWeb._warn();\n return Promise.resolve();\n }\n\n getLaunchIntent(): Promise<IBroadcastResult> {\n return Promise.resolve({});\n }\n}\n"],
5
+ "mappings": "AAAA,SAAS,iBAAiB;AAGnB,MAAM,qBAAqB,UAAsC;AAAA,EACtE,OAAwB,QAAQ;AAAA;AAAA,IAE9B,QAAQ,KAAK,sHAA2C;AAAA;AAAA,EAE1D,UAAU,UAAiC,WAAwE;AACjH,iBAAa,MAAM;AACnB,WAAO,QAAQ,QAAQ,EAAE,IAAI,WAAW,CAAC;AAAA,EAC3C;AAAA,EAEA,MAAM,YAAY,UAAyC;AAAA,EAE3D;AAAA,EAEA,MAAM,iBAAgC;AAAA,EAEtC;AAAA,EAEA,KAAK,UAA+E;AAClF,iBAAa,MAAM;AACnB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EAEA,kBAA6C;AAC3C,WAAO,QAAQ,QAAQ,CAAC,CAAC;AAAA,EAC3B;AACF;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/capacitor-plugin-broadcast",
3
- "version": "12.16.27",
3
+ "version": "13.0.0-beta.2",
4
4
  "description": "심플리즘 패키지 - Capacitor Broadcast Plugin",
5
5
  "author": "김석래",
6
6
  "repository": {
@@ -23,4 +23,4 @@
23
23
  "devDependencies": {
24
24
  "@capacitor/core": "^7.4.4"
25
25
  }
26
- }
26
+ }
package/src/Broadcast.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { registerPlugin } from "@capacitor/core";
2
- import { IBroadcastPlugin, IBroadcastResult } from "./IBroadcastPlugin";
2
+ import type { PluginListenerHandle } from "@capacitor/core";
3
+ import type { IBroadcastPlugin, IBroadcastResult } from "./IBroadcastPlugin";
3
4
 
4
5
  const BroadcastPlugin = registerPlugin<IBroadcastPlugin>("Broadcast", {
5
6
  web: async () => {
@@ -32,7 +33,12 @@ export abstract class Broadcast {
32
33
  filters: string[],
33
34
  callback: (result: IBroadcastResult) => void,
34
35
  ): Promise<() => Promise<void>> {
35
- const { id } = await BroadcastPlugin.subscribe({ filters }, callback);
36
+ const { id } = await BroadcastPlugin.subscribe({ filters }, (result) => {
37
+ // Filter out the initial resolve that only contains { id }
38
+ if (result.action != null) {
39
+ callback(result);
40
+ }
41
+ });
36
42
  return async () => {
37
43
  await BroadcastPlugin.unsubscribe({ id });
38
44
  };
@@ -66,6 +72,14 @@ export abstract class Broadcast {
66
72
  * 앱 시작 Intent 가져오기
67
73
  */
68
74
  static async getLaunchIntent(): Promise<IBroadcastResult> {
69
- return await BroadcastPlugin.getLaunchIntent();
75
+ return BroadcastPlugin.getLaunchIntent();
76
+ }
77
+
78
+ /**
79
+ * 앱 실행 중 새 Intent 수신 리스너 등록
80
+ * @returns 리스너 핸들 (remove()로 해제)
81
+ */
82
+ static async addNewIntentListener(callback: (result: IBroadcastResult) => void): Promise<PluginListenerHandle> {
83
+ return BroadcastPlugin.addListener("onNewIntent", callback);
70
84
  }
71
85
  }
@@ -1,3 +1,5 @@
1
+ import type { PluginListenerHandle } from "@capacitor/core";
2
+
1
3
  export interface IBroadcastResult {
2
4
  /** Broadcast action */
3
5
  action?: string;
@@ -9,10 +11,7 @@ export interface IBroadcastPlugin {
9
11
  /**
10
12
  * Broadcast 수신기 등록
11
13
  */
12
- subscribe(
13
- options: { filters: string[] },
14
- callback: (result: IBroadcastResult) => void,
15
- ): Promise<{ id: string }>;
14
+ subscribe(options: { filters: string[] }, callback: (result: IBroadcastResult) => void): Promise<{ id: string }>;
16
15
 
17
16
  /**
18
17
  * 특정 Broadcast 수신기 해제
@@ -33,4 +32,9 @@ export interface IBroadcastPlugin {
33
32
  * 앱 시작 Intent 가져오기
34
33
  */
35
34
  getLaunchIntent(): Promise<IBroadcastResult>;
35
+
36
+ /**
37
+ * 앱 실행 중 새 Intent 수신 리스너 등록
38
+ */
39
+ addListener(eventName: "onNewIntent", listenerFunc: (data: IBroadcastResult) => void): Promise<PluginListenerHandle>;
36
40
  }
@@ -1,29 +1,30 @@
1
1
  import { WebPlugin } from "@capacitor/core";
2
- import { IBroadcastPlugin, IBroadcastResult } from "../IBroadcastPlugin";
2
+ import type { IBroadcastPlugin, IBroadcastResult } from "../IBroadcastPlugin";
3
3
 
4
4
  export class BroadcastWeb extends WebPlugin implements IBroadcastPlugin {
5
- async subscribe(
6
- _options: { filters: string[] },
7
- _callback: (result: IBroadcastResult) => void,
8
- ): Promise<{ id: string }> {
9
- alert("[Broadcast] 환경에서는 Broadcast를 지원하지 않습니다.");
10
- return await Promise.resolve({ id: "web-stub" });
5
+ private static readonly _warn = () =>
6
+ // eslint-disable-next-line no-console
7
+ console.warn("[Broadcast] 환경에서는 Broadcast를 지원하지 않습니다.");
8
+
9
+ subscribe(_options: { filters: string[] }, _callback: (result: IBroadcastResult) => void): Promise<{ id: string }> {
10
+ BroadcastWeb._warn();
11
+ return Promise.resolve({ id: "web-stub" });
11
12
  }
12
13
 
13
14
  async unsubscribe(_options: { id: string }): Promise<void> {
14
- await Promise.resolve();
15
+ // 웹 환경에서는 no-op
15
16
  }
16
17
 
17
18
  async unsubscribeAll(): Promise<void> {
18
- await Promise.resolve();
19
+ // 웹 환경에서는 no-op
19
20
  }
20
21
 
21
- async send(_options: { action: string; extras?: Record<string, unknown> }): Promise<void> {
22
- alert("[Broadcast] 웹 환경에서는 Broadcast를 지원하지 않습니다.");
23
- await Promise.resolve();
22
+ send(_options: { action: string; extras?: Record<string, unknown> }): Promise<void> {
23
+ BroadcastWeb._warn();
24
+ return Promise.resolve();
24
25
  }
25
26
 
26
- async getLaunchIntent(): Promise<IBroadcastResult> {
27
- return await Promise.resolve({});
27
+ getLaunchIntent(): Promise<IBroadcastResult> {
28
+ return Promise.resolve({});
28
29
  }
29
30
  }
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "lib": ["ES2021", "DOM"],
5
- "outDir": "./dist"
6
- },
7
- "exclude": ["dist", "node_modules"]
8
- }