The comment for open(name: String, context: Context): Promise<void> says "Launches/links to an app by name".
Elsewhere (e.g. when sending an intent), type AppIdentifier = String is used. Is the "name" used in open the same as the app identifier used for intents? If it is the same, the same terminology should be used consistently.
If it is not the same, "name" needs to be explained in more detail to make the distinction clear. I would argue however that it should be the same app identifier used elsewhere if it is not, for the sake of API consistency.
In which case, it should probably be open(name: AppIdentifier, context: Context)
The comment for
open(name: String, context: Context): Promise<void>
says "Launches/links to an app by name".Elsewhere (e.g. when sending an intent),
type AppIdentifier = String
is used. Is the "name" used inopen
the same as the app identifier used for intents? If it is the same, the same terminology should be used consistently.If it is not the same, "name" needs to be explained in more detail to make the distinction clear. I would argue however that it should be the same app identifier used elsewhere if it is not, for the sake of API consistency.
In which case, it should probably be
open(name: AppIdentifier, context: Context)