system.perspective
Perspective Functionsβ
The following functions offer various ways to interact with a Perspective session from a Python script.
ποΈ alterDock
Changes configuration of a specified dock on a Perspective page.
ποΈ alterLogging
Changes Perspective Session logging attributes and levels.
ποΈ authenticationChallenge
Triggers an authentication challenge action.
ποΈ closeDock
Closes a docked view.
ποΈ closePage
Closes the page with the given page id or the current page if no page id is provided.
ποΈ closePopup
Closes a popup view.
ποΈ closeSession
Closes the Perspective Session with the given sessionID or the current Session if no ID is provided.
ποΈ download
Downloads data from the Gateway to a device running a Session.
ποΈ getProjectInfo
Returns a dictionary of meta data from a Perspective Project.
ποΈ getSessionInfo
Returns information about one or more Perspective Sessions.
ποΈ isAuthorized
Checks if the user in the current Session is authorized against a target collection of security levels.
ποΈ login
Triggers a login event that will allow the user to log in with the project's configured Identity Provider (IdP).
ποΈ logout
Triggers a logout event, which will log the user out.
ποΈ navigate
Navigate a Session to a specified view or mounted page.
ποΈ navigateBack
Navigate the session to a specified view or mounted page.
ποΈ navigateForward
Navigate the session to a specified view or mounted page. This is similar to a browser's "forward" function.
ποΈ openDock
Opens a docked View. Requires the preconfigured dock ID for the view.
ποΈ openPopup
Open a popup view over the given page.
ποΈ print
Prints the supplied message to the local console or the gateway logs, as appropriate.
ποΈ refresh
Triggers a refresh of the page.
ποΈ sendMessage
Send a message to a message handler within the same session.
ποΈ setTheme
Changes the theme in a page to the specified theme.
ποΈ toggleDock
Toggles a docked view.
ποΈ togglePopup
Opens or closes a popup view.
ποΈ vibrateDevice
Cause a device running the Perspective Mobile App to vibrate.