System:spawn()
Press recent button
Parameters
Parameters | Type | Description |
---|---|---|
package | string | The package name of the app you want to open |
activity | string | If you are using android 11+ you need to specify the activity of the target app, due to restriction that is implemented in android 11+ |
Signature
System:recent(package: string): void
System:recent(package: string, activity: string): void
Returns
void