Reference
Arcane.version.current()
Gets the Arcane OS bundle/host version bound to this session. It does not become an application's independently owned version and is not signer, update, or RC attestation.
This focused page is derived from the mechanically checked full member inventory.
Syntax
Arcane.version.current()
Parameters
None
Return value
Promise<string>
Description
Gets the Arcane OS bundle/host version bound to this session. It does not become an application's independently owned version and is not signer, update, or RC attestation.
Overview
Arcane.version.current() returns the active Arcane OS host/bundle version for
this bridge session. It takes no parameters, needs no capability, and is
available on Core and Android. It is a repeatable read with no event or side
effect.
Result
The result is one canonical semantic-version string no longer than 64
characters. It is the host release version, not an independently packaged
application's version; use Arcane.app.current().version for the latter. A
version string is not signer, integrity, update, or release-candidate evidence.
Errors and recovery
METHOD_CONTRACT_OUTPUT_INVALID indicates that the host returned a value other
than its bound bundle version. Repair or update the host/package pair.
ARCANE_TRANSPORT_UNAVAILABLE means the page is not hosted by Arcane.
Example
const hostVersion = await Arcane.version.current();
const application = await Arcane.app.current();
console.log('Host', hostVersion, 'Application', application.version);