OnSGWorld

This event occurs when a specifiedTerraExplorer event takes place (e.g. application closes or save process finishes).

 

JavaScript

 

OnSGWorld(

       EventID,

       EventParam)

 

C#

 

void OnSGWorld(

       int EventID,

       object EventParam)

 

C++

 

HRESULT OnSGWorld(

       [in] long EventID,

       [in] VARIANT EventParam)

Parameters

EventID

The event’s ID. This parameter can be any of the following values:

·          TEE_APP_CLOSING         = 6

·          TEE_SAVE_FINISHED      = 9

·          TEE_SEARCH_RESULT     = 12

EventParam

This parameter is interpreted based on the EventID. For TEE_APP_CLOSING and TEE_SAVE_FINISHED, it is not used. For TEE_SEARCH_RESULT, a JSON is returned. See: IApplication.Search() for more information.