Configure a widget event and specify the target UIAbility for redirection.
- If the application is not in the background, call loadContent in the onWindowStageCreate() callback of the target UIAbility to load the specified page.
- Otherwise, call loadContent in the onNewWant() callback of the target UIAbility to load the specified page.
Reference
Starting a Specified Page of UIAbility