Bridge.Status
.getDeckInfo()
Returns information on the deck's key, title and version. Useful when implementing logic shared across multiple decks that can toggle based on the key, as well as troubleshooting content in the wild.
Bridge.Status.getDeckInfo();
Returns:
| Value | Type | Description |
|---|---|---|
| deckKey | String | Set by server |
| deckTitle | String | Set by server |
| deckVersion | Number | Deck version on the server |
Example:
{
deckKey: 'business-review',
deckTitle: 'Business Review',
deckVersion: 42
}
.isOnline
Boolean value indicating the preso's current internet connection status.
let isOffline = !Bridge.Status.isOnline;
.isReadOnly
Boolean value indicating whether the presentation is currently in read-only mode for the active user.
if (Bridge.Status.isReadOnly) {
// Disable interactive features
}
.getVersionInfo()
Returns an object containing both application and deck version information.
const versionInfo = Bridge.Status.getVersionInfo();
.printVersionInfo()
Returns a formatted string containing version information, intended for use in bug reports.
const debugString = Bridge.Status.printVersionInfo();