Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document driverActionNecessary callback parameters #15

Open
wants to merge 1 commit into
base: drive-api-extensions
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/software/guides/drive-addins.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,11 @@ It is possible to host the Geotab Drive application *within* an Android or iOS a
Use those global methods to get access to users' API objects and all the bells & whistles that have been extended into the Geotab Drive application.

### Table 9 - Global events
| | **Description** | **Parameters** | **Return Type** |
| --- | --- | --- | --- |
| window.webViewLayer.pageNavigation | Register this function to be notified of page navigation within the Geotab Drive application | None | String |
| window.webViewLayer.newDutyStatusLog | Register this function to be notified when a new DutyStatusLog is created in Geotab Drive. It will return the whole object | None | Object |
| window.webViewLayer.driverActionNecessary | Register this function to be notified when the Geotab Drive application would like to be visually presented to the user. | None | None |

| | **Description** | **Callback Function Parameters** |
| --- | --- | --- |
| window.webViewLayer.pageNavigation | Register this function to be notified of page navigation within the Geotab Drive application | None |
| window.webViewLayer.newDutyStatusLog | Register this function to be notified when a new DutyStatusLog is created in Geotab Drive. It will return the whole object | Object(dutyStatusLog) |
| window.webViewLayer.driverActionNecessary | Register this function to be notified when the Geotab Drive application would like to be visually presented to the user. | Boolean(unknown), String(workflow) |

## Opening third-party applications using URI schema

Expand Down