Back to Content

BeforeInstallPromptEvent: platforms property

files/en-us/web/api/beforeinstallpromptevent/platforms/index.md

latest769 B
Original Source

{{APIRef}}{{SeeCompatTable}}{{Non-standard_header}}

The platforms property of the {{domxref("BeforeInstallPromptEvent")}} interface lists the platforms on which the event was dispatched. This is provided for user agents that want to present a choice of versions to the user such as, for example, "web" or "play" which would allow the user to choose between a web version or an Android version.

Value

An array of strings, in which each string identifies a target platform for the installation.

Browser compatibility

{{Compat}}

See also