Skip to content

AppUrlService

Defined in: app-url.ts:173

Parses lapis:// app URLs and dispatches registered protocol handlers.

new AppUrlService(app): AppUrlService

Defined in: app-url.ts:176

App

AppUrlService

dispatch(rawUrl): Promise<boolean>

Defined in: app-url.ts:270

Dispatch an app URL through the built-in open handler or a registered custom action.

string

Raw app URL to parse and execute.

Promise<boolean>

true when the URL was handled successfully.


parse(rawUrl): ParsedAppUrl

Defined in: app-url.ts:211

Parse an app URL into its normalized action and parameter map.

string

Raw lapis://, lapis-notes://, or compatible app URL.

ParsedAppUrl

The normalized URL request.


registerProtocolHandler(action, handler): () => void

Defined in: app-url.ts:186

Register a handler for a custom app URL action.

string

Action name to match after the app URL scheme.

AppUrlHandler

Callback invoked when a matching URL is dispatched.

A cleanup function that unregisters the handler.

() => void