SetOnProductSelectedCallback

Subscribe to this event to be notified when the user selects a product. The product can be selected by a quick mouse click (on PC/Mac) or a tap (on touch screen).

Function

void SetOnProductSelectedCallback(name: function)

Parameters

  • function (function(string)): Called with the name of product that was selected.

Example

Zoom in on and chase the selected product.

SYM3.SetOnProductSelectedCallback(productSelected);
function productSelected(equipmentName)
{
    SYM3.ZoomToEquipment(equipmentName);
    SYM3.ChaseProduct(equipmentName);
}