A function which takes a unique id and creates an HTML element.
id
typedef PlatformViewFactory = Object Function(int viewId);