Version: 1.3
语言 : 中文
Extend the default Tuanjie ability
Specify Tuanjie start-up arguments

Create a custom ability

To extend the default Tuanjie ability, you create your own custom ability and set it as the application’s entry point. The process to do this is as follows:

  1. Create a new ability that extends the TuanjiePlayerAbility class.
  2. Create a plug-in to deliver the new ability to the final Tuanjie OpenHarmony application.
  3. Override the OpenHarmony App Module to set your new ability as the application’s entry point.

After you do this, you can implement custom behavior in your ability to control interactions between Tuanjie and OpenHarmony.

Extend the default Tuanjie ability
Specify Tuanjie start-up arguments