Skip to content

Commit 029e5fb

Browse files
committed
Update API spec to be more accurate
1 parent eb63ec2 commit 029e5fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/src/main/java/io/github/libxposed/api/XposedModuleInterface.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ default void onModuleLoaded(@NonNull ModuleLoadedParam param) {
111111
* Gets notified when a package is loaded into the app process. This is the time when the default
112112
* classloader is ready but before the instantiation of custom {@link android.app.AppComponentFactory}.<br/>
113113
* This callback could be invoked multiple times for the same process on each package.
114+
* <p>Split apks may cause multiple packages with the same name to be loaded if {@code isolatedSplits="true"}
115+
* is specified in the app's manifest. In this case, the callback will be called multiple times because
116+
* {@link PackageLoadedParam#getDefaultClassLoader()} is different.</p>
114117
*
115118
* @param param Information about the package being loaded
116119
*/
@@ -122,6 +125,9 @@ default void onPackageLoaded(@NonNull PackageLoadedParam param) {
122125
* Gets notified when custom {@link android.app.AppComponentFactory} has instantiated the app
123126
* classloader and is ready to create {@link android.app.Activity} and {@link android.app.Service}.<br/>
124127
* This callback could be invoked multiple times for the same process on each package.
128+
* <p>Split apks may cause multiple packages with the same name to be loaded if {@code isolatedSplits="true"}
129+
* is specified in the app's manifest. In this case, the callback will be called multiple times because
130+
* {@link PackageReadyParam#getAppComponentFactory()} and {@link PackageReadyParam#getClassLoader()} are different.</p>
125131
*
126132
* @param param Information about the package being loaded
127133
*/

0 commit comments

Comments
 (0)