android-dts-generator icon indicating copy to clipboard operation
android-dts-generator copied to clipboard

ns typings android "androidx.activity:activity" may see `<set-?>` as value param names.

Open NathanWalker opened this issue 5 months ago • 0 comments

Example A:

public setMediaType$activity_release(<set-?>: androidx.activity.result.contract.ActivityResultContracts.PickVisualMedia.VisualMediaType): void;

The <set-?> is invalid. Should print as value.

B

Other entries may print as public createOnBackAnimationCallback(onBackStarted: any<any,any>, onBackProgressed: any<any,any>, onBackInvoked: any, onBackCancelled: any): globalAndroid.window.OnBackInvokedCallback;

where any<any,any> should be just any or proper generic.

C

public static enable($i$a$-also-EdgeToEdge$enableEdgeToEdge$impl$1: androidx.activity.ComponentActivity, it: androidx.activity.SystemBarStyle, view: androidx.activity.SystemBarStyle): void;

can be:

public static enable(activity: androidx.activity.ComponentActivity, it: androidx.activity.SystemBarStyle, view: androidx.activity.SystemBarStyle): void;

D

public onStateChanged(servedView: androidx.lifecycle.LifecycleOwner, $i$a$-synchronized-ImmLeaksCleaner$onStateChanged$1$success$1: androidx.lifecycle.Lifecycle.Event): void;

can be:

public onStateChanged(servedView: androidx.lifecycle.LifecycleOwner, event: androidx.lifecycle.Lifecycle.Event): void;

E

public getDetectDarkMode$activity_release(): any<globalAndroid.content.res.Resources,java.lang.Boolean>;

can be:

public getDetectDarkMode$activity_release(): java.util.HashMap<globalAndroid.content.res.Resources,java.lang.Boolean>;

F

public static auto(lightScrim: number, darkScrim: number, detectDarkMode: any<any,java.lang.Boolean>): androidx.activity.SystemBarStyle;

can be:

public static auto(lightScrim: number, darkScrim: number, detectDarkMode: boolean): androidx.activity.SystemBarStyle;

NathanWalker avatar Sep 17 '25 18:09 NathanWalker