콘텐츠로 이동

getCurrent

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/plugins/deep-link · Kind Function

import { getCurrent } from '@netwiv/api/plugins/deep-link';

Get the current URLs that triggered the deep link. Use this on app load to check whether your app was started via a deep link.

function getCurrent(): Promise<string[] | null>
import { getCurrent } from '@netwiv/api/plugins/deep-link';
const urls = await getCurrent();
  • Windows / Linux: This function reads the command line arguments and checks if there’s only one value, which must be an URL with scheme matching one of the configured values. Note that you must manually check the arguments when registering deep link schemes dynamically with [Self::register]. Additionally, the deep link might have been provided as a CLI argument so you should check if its format matches what you expect.

Upstream since 2.0.0


Descriptions come from the pinned @tauri-apps/plugin-deep-link@2.4.10 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.