Update javadoc for AndroidComponentAddress. (#8725)

Be more explicit that "packagename" is the application package name.
This commit is contained in:
markb74 2022-01-18 18:22:59 +01:00 committed by GitHub
parent 7cf048eb28
commit d853414ba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -69,11 +69,15 @@ public class AndroidComponentAddress extends SocketAddress { // NOTE: Only tempo
}
/**
* Creates an address referencing a {@link android.app.Service} (potentially) in another
* Creates an address referencing a {@link android.app.Service} in another
* application and using the default binding {@link Intent}.
*
* @param applicationPackage The package name of the application containing the server.
* @param serviceClassName The full class name of the Android Service to bind to.
*/
public static AndroidComponentAddress forRemoteComponent(String packageName, String className) {
return forComponent(new ComponentName(packageName, className));
public static AndroidComponentAddress forRemoteComponent(
String applicationPackage, String serviceClassName) {
return forComponent(new ComponentName(applicationPackage, serviceClassName));
}
/**