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

Create a custom ability

Use as A Library

If you export your project by using as a Library, 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.

If you export your project by default, not as using as a Library, it is not recommended to create a custom ability.

Extend the default Tuanjie ability
Specify Tuanjie start-up arguments