ui.Interface.getChildInstances

Get the number of child instances for a given program name.

Syntax

ui.Interface.getChildInstances(
   name STRING )
  RETURNS INTEGER
  1. name is the name of a child program attached to the container of the current program.

Usage

Important: The Window Container Interface is a desktop application feature (for GDC), and is not supported on other front-ends (web and mobile).

The ui.Interface.getChildInstances() class method returns the number of child instances of a program attached to the current parent WCI program, based on the name of the child program passed as parameter.

The name of a child program is defined by the ui.Interface.setName() method.

The getChildInstances() method is typically used to check if a give child program is already started, to avoid multiple instances of the same program in a given WCI container.