Aller au contenu principal

System:spawn()

Press recent button

Parameters

ParametersTypeDescription
packagestringThe package name of the app you want to open
activitystringIf 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