@calimero-network/mero-平台
Calimero应用平台SDK的框架不可知核. 零反应——也 由 Tauri 发射器壳所消耗(用于执行这些类型的桥梁) 定义).
深连线
import {
DeepLinkController,
PendingIntentStore,
createLink,
getBridge,
} from "@calimero-network/mero-platform";
// One controller per app runtime — merges the initial URL, the launcher bridge
// `deep-link` event, and the PWA launchQueue into one durable intent stream.
const controller = new DeepLinkController(
new PendingIntentStore(window.localStorage),
{ location: window.location, bridge: getBridge(), launchQueue: (window as any).launchQueue },
);
controller.on((intent) => {
// fires even if the intent arrived before this handler registered, and
// replays across reload until acked
if (intent.params.invitation) joinWith(intent.params.invitation);
intent.resolve(); // ack — it won't replay
});
// generate a shareable link (always https, never calimero://)
const link = createLink("com.calimero.curb", "join", { invitation: "…" });
// → https://links.calimero.network/com.calimero.curb/join?invitation=…
- 待决存储 ——抓取存储意图,按内容拆解
非ce, 可在重新装入/ 自动/ 安装中存活到
resolve()。 。 。 . - 桥客户端 —— 说
getBridge()编号 :hasCapability(name)超过版本window.__calimero_platform__· ;null编号 :false在有能力的发射装置之外.
徽章和通知能力随之而来.