@zturnlibs/ztron-api


deep-link

Variables

const deepLink: object

Defined in: deep-link.ts:25

Type Declaration

getCurrentUrl

getCurrentUrl: () => Promise<string | null>

The most recent deep-link URL (null when the app was launched normally).

Returns

Promise<string | null>

onDeepLink: (handler) => Promise<() => Promise<void>>

Listens for deep-link URLs opened while the app is running. The handler receives the full ztron://... URL.

Parameters
handler

(url) => void

Returns

Promise<() => Promise<void>>

Functions

getCurrentUrl()

getCurrentUrl(): Promise<string | null>

Defined in: deep-link.ts:9

The most recent deep-link URL (null when the app was launched normally).

Returns

Promise<string | null>


onDeepLink(handler): Promise<() => Promise<void>>

Defined in: deep-link.ts:17

Listens for deep-link URLs opened while the app is running. The handler receives the full ztron://... URL.

Parameters

handler

(url) => void

Returns

Promise<() => Promise<void>>