feat: add IsAppInForeground to check if the given package is in fore ground

This commit is contained in:
lilong.129
2023-04-14 17:42:28 +08:00
parent 2ceac61c4c
commit dd7724b586
5 changed files with 95 additions and 8 deletions

View File

@@ -20,6 +20,8 @@ type Driver struct {
urlPrefix *url.URL
sessionId string
client *http.Client
// cache the last launched package name
lastLaunchedPackageName string
}
func (wd *Driver) concatURL(u *url.URL, elem ...string) string {