Liking cljdoc? Tell your friends :D

web.event.BeforeInstallPromptEvent

The BeforeInstallPromptEvent is fired at the Window.onbeforeinstallprompt before a user is prompted to "install" a web site to a home on mobile.

The BeforeInstallPromptEvent is fired at the `Window.onbeforeinstallprompt`
before a user is prompted to \"install\" a web site to a home
on mobile.
raw docstring

platformscljs

(platforms this)

Property.

Returns an array of DOMString items containing the platforms which the event was dispatched. This is provided for user agents want to present a choice of versions to the user such as, for "web" or "play" which would allow the user to chose between a version or an Android version.

Property.

Returns an array of DOMString items containing the platforms
which the event was dispatched. This is provided for user agents
want to present a choice of versions to the user such as, for
"web" or "play" which would allow the user to chose between a
version or an Android version.
sourceraw docstring

promptcljs

(prompt this)

Method.

[Experimental]

The prompt() method of the web.event.BeforeInstallPromptEvent allows a developer to show the install prompt at a time of their choosing.

BeforeInstallPromptEvent.prompt()

See also: https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent/prompt

Method.

[Experimental]

The prompt() method of the `web.event.BeforeInstallPromptEvent`
allows a developer to show the install prompt at a time of their
choosing.

`BeforeInstallPromptEvent.prompt()`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/BeforeInstallPromptEvent/prompt`
sourceraw docstring

set-platforms!cljs

(set-platforms! this val)

Property.

Returns an array of DOMString items containing the platforms which the event was dispatched. This is provided for user agents want to present a choice of versions to the user such as, for "web" or "play" which would allow the user to chose between a version or an Android version.

Property.

Returns an array of DOMString items containing the platforms
which the event was dispatched. This is provided for user agents
want to present a choice of versions to the user such as, for
"web" or "play" which would allow the user to chose between a
version or an Android version.
sourceraw docstring

set-user-choice!cljs

(set-user-choice! this val)

Property.

Returns a Promise that resolves to a DOMString containing either or "dismissed".

Property.

Returns a Promise that resolves to a DOMString containing either
or "dismissed".
sourceraw docstring

user-choicecljs

(user-choice this)

Property.

Returns a Promise that resolves to a DOMString containing either or "dismissed".

Property.

Returns a Promise that resolves to a DOMString containing either
or "dismissed".
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close