@tauri-apps/plugin-deep-link - v2.4.0
    Preparing search index...

    Function onOpenUrl

    • Helper function for the deep-link://new-url event to run a function each time the protocol is triggered while the app is running. Use getCurrent on app load to check whether your app was started via a deep link.

      Parameters

      • handler: (urls: string[]) => void

      Returns Promise<UnlistenFn>

      import { onOpenUrl } from '@tauri-apps/plugin-deep-link';
      await onOpenUrl((urls) => { console.log(urls) });

      2.0.0