@zturnlibs/ztron-api


deep-link

Variables

const deepLink: object

Defined in: deep-link.ts:25

Type Declaration

getCurrentUrl

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

最近一次的深链 URL(应用正常启动时为 null)。

Returns

Promise<string | null>

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

订阅应用运行期间打开的深链 URL;handler 收到完整的 ztron://… URL。

Parameters
handler

(url) => void

Returns

Promise<() => Promise<void>>

Functions

getCurrentUrl()

getCurrentUrl(): Promise<string | null>

Defined in: deep-link.ts:9

最近一次的深链 URL(应用正常启动时为 null)。

Returns

Promise<string | null>


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

Defined in: deep-link.ts:17

订阅应用运行期间打开的深链 URL;handler 收到完整的 ztron://… URL。

Parameters

handler

(url) => void

Returns

Promise<() => Promise<void>>