Publish Event Activity

Description

The Publish Event activity publishes a named event in a Geocortex viewer application like the Geocortex Viewer for HTML5.

Events provide a mechanism for one part of an application to notify other parts of the application that something has happened. Event publishers, like this activity, publish (or broadcast) that a specific event has occurred. The event has a name and optionally some data relevant to the event. Event subscribers are the parts of the application that subscribe to specific named events and then receive notifications when the event is published. Typically event subscribers will take some action in response to an event.

Publishing events may trigger asynchronous operations in the host application, but the Publish Event activity will always complete immediately.

To see a complete list of Geocortex Viewer for HTML5 events and the event arguments they take, see Geocortex Viewer for HTML5 Events.

Offline Support

This activity works when the device is offline.

Inputs

Event Name

Required

Type: String

The name of the event to publish.

See Geocortex Viewer for HTML5 Events for a complete list of Geocortex Viewer for HTML5 events and their event arguments.

Event Argument

Optional

Type: any

The event argument data to publish.

Depending on the event name specified an event argument may be required.

 

Outputs

This activity has no outputs.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Version Information

Supported from: Geocortex Viewer for HTML5 2.9.

See Also...

Geocortex Viewer for HTML5 Events

© 2018 Latitude Geographics Group Ltd. All Rights Reserved.

Documentation Version 5.9