Skip to main content

Available User Actions


This page defines every action that a Level 6 integration must handle and explains how the client performs each action.

In integration Level 6 the Air Doctor Client Back‑End is not present to interpret user interactions. The client application identifies and handles each action defined in the screen definitions.

General Actions

The following actions apply to all screens. Each action includes an integer identifier and a string parameter that directs the client's behavior. Actions that involve server calls run first; after a successful server response, the client execute any local behavior such as closing popups or showing notifications.

General Actions

The following actions apply to all screens. Each action includes an integer identifier and a string parameter that directs the client's behavior.

Action Processing Flow

The client sends the server call first. After a successful server response, the client runs local behavior such as closing popups or showing notifications.

Action Definitions

The table defines each action, its identifier, the required parameter, and the corresponding client behavior.

Device and Utility Actions

ActionIDParameterClient Behavior
Browser1URLOpen the URL in the user’s browser. On web, open in a new tab. On native platforms, use the system browser or an in-app browser.
Copy to clipboard2TextCopy the provided string to the clipboard.

Permission Requests

ActionIDParameterClient Behavior
Camera permission3EndpointRequest camera access from the OS. After the user grants or denies access, call the PATCH endpoint to update the server.
Microphone permission4EndpointRequest microphone access and call the PATCH endpoint.
Pushes permission5EndpointRequest push notification access and call the PATCH endpoint.
Location permission6EndpointRequest location or GPS access and call the PATCH endpoint.
Coordinates7EndpointObtain device coordinates after permission and call the PATCH endpoint with the coordinates.

Server Calls

ActionIDParameterClient Behavior
Page / Put8EndpointPerform a PUT request to the endpoint and open the page from the response. See the PUT documentation for response rules.
Patch9EndpointPerform a PATCH request to the endpoint and update the current screen by using the returned patches.
Save / Post10EndpointPerform a POST request to the endpoint, including parameters or file uploads if needed. Handle response headers (X-Close, X-Refresh, etc.) as defined in the POST documentation.

These actions apply only to Video type pages.

Video Controls

ActionIDParameterClient Behavior
Camera11Alternative iconToggle the camera on or off. The primary icon shows the active state. The parameter defines the icon that displays after toggling.
Flip12Alternative iconSwitch between available cameras. The parameter defines the icon that displays after switching.
Mute13Alternative iconToggle the microphone on or off. The parameter defines the icon that displays after toggling.
Interpreter hangup14EndpointDisconnect an interpreter from the call and perform a PATCH request to the endpoint.

Photo Source Page Actions

The photo source page appears when a user selects an image for an upload field. Each action's parameter identifies the field that receives the selected file.

ActionIDParameterClient Behavior
From gallery15Field referenceOpen the device’s gallery and allow the user to select an image for the referenced field.
From camera16Field referenceLaunch the camera, allow the user to take a photo, and assign it to the referenced field.
From file17Field referencePresent a file browser so the user selects a file and assigns it to the referenced field.

Summary

Actions define how the client responds to user interactions at Level 6. Because the client backend is not active at Level 6, the application maps each action to the correct behavior: making API calls, requesting permissions, opening pages, or updating the UI.

Action Flow

Action → Optional permission → Server call → Local UI behavior

Always send server calls before any local behavior and follow response headers to remain aligned with the server state. For details about endpoint rules and response handling, see the relevant documentation: