Options
All
  • Public
  • Public/Protected
  • All
Menu

A class of set with APIs to interact with DART-Platform's system.

api-version

1

user

Hierarchy

  • System

Index

Constructors

Methods

  • registerModuleMainClassCreator<T>(creator: ((packageInfo: IModulePackageInfo) => T)): boolean
  • Register a main class which is inherited BaseModule. The class is needed to running Module's components (ModuleScreen, ModuleService) by system. Below code should be added in a main script file by DART-IDE automatically when user build a module package.

    // IIFE for register a function to create an instance of main class which is inherited BaseModule.
    (() => {
    System.registerModuleMainClassCreator(packageInfo => new MyModule(packageInfo))
    })();

    class MyModule extends BaseModule {
    ...
    }
    api-version

    1

    user

    Type Parameters

    Parameters

    Returns boolean

    Return true if the creator is registered successfully, otherwise false.

Generated using TypeDoc