Events overview
Structure of requests
Request from webview (IAB, IWA or document page - eventually)
Structure of responses
Expected values for PURPOSE are:
navigate
response
Additional properties depend on the specified purpose. For example, when PURPOSES is “response”, the additional properties are the following:
request_id
event_type
response_data
Response from webview (IAB, IWA or document page - eventually)
Example of ad-hoc communication from native app to IWA to tell it to navigate to a specific route:
Availability of event domains
Event may or may not be supported depending on the type of the view currently displayed in the app.
Each type of view in the app, or rather each type of area in the app defines which event domains it supports.
When an app area supports a domain, it is assumed that it supports all events in this domain.
Event domain | IWA views | IAB views | Document library views |
app | Yes | Yes | Yes |
config | Yes | No | Yes |
kv | Yes | No | Yes |
iwa | Yes | No | No |
iab | No | Yes | No |
documents | No | No | Yes |
launch | Yes | Yes | Yes |
userfiles | Yes | No | No |
Note 1: kv
and config
domains are not useful when used from actions (i.e. tapping a button that triggers a “get me this config value” event isn’t very useful).
Note 2: the document library views don’t make use of events from the kv
and config
domains but the existing document library code is already able to use the key/value store and app config, it just do this through the event framework.
Last updated