UNPKG

@icecreamcake/autojs6-dts

Version:

TypeScript Declarations for AutoJs6

118 lines (112 loc) 5.88 kB
declare module androidx { export module lifecycle { export class LifecycleRegistry extends androidx.lifecycle.Lifecycle { public static class: java.lang.Class<androidx.lifecycle.LifecycleRegistry>; public constructor(provider: androidx.lifecycle.LifecycleOwner); public removeObserver(observer: androidx.lifecycle.LifecycleObserver): void; public setCurrentState(state: androidx.lifecycle.Lifecycle.State): void; public addObserver(param0: androidx.lifecycle.LifecycleObserver): void; public handleLifecycleEvent(event: androidx.lifecycle.Lifecycle.Event): void; public getObserverCount(): number; public constructor(); public addObserver(observer: androidx.lifecycle.LifecycleObserver): void; public getCurrentState(): androidx.lifecycle.Lifecycle.State; /** @deprecated */ public markState(state: androidx.lifecycle.Lifecycle.State): void; public removeObserver(param0: androidx.lifecycle.LifecycleObserver): void; public static createUnsafe(owner: androidx.lifecycle.LifecycleOwner): androidx.lifecycle.LifecycleRegistry; } export module LifecycleRegistry { export class ObserverWithState extends java.lang.Object { public static class: java.lang.Class<androidx.lifecycle.LifecycleRegistry.ObserverWithState>; } } } } declare module androidx { export module lifecycle { export class LifecycleRegistryOwner extends java.lang.Object implements androidx.lifecycle.LifecycleOwner { public static class: java.lang.Class<androidx.lifecycle.LifecycleRegistryOwner>; /** * Constructs a new instance of the androidx.lifecycle.LifecycleRegistryOwner interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { getLifecycle(): androidx.lifecycle.LifecycleRegistry; getLifecycle(): androidx.lifecycle.Lifecycle; getLifecycle(): androidx.lifecycle.Lifecycle; }); public constructor(); public getLifecycle(): androidx.lifecycle.LifecycleRegistry; public getLifecycle(): androidx.lifecycle.Lifecycle; } } } declare module androidx { export module lifecycle { export class ReportFragment extends android.app.Fragment { public static class: java.lang.Class<androidx.lifecycle.ReportFragment>; public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void; public onStart(): void; public onTrimMemory(param0: number): void; public onResume(): void; public onTrimMemory(level: number): void; public onActivityCreated(savedInstanceState: android.os.Bundle): void; public onPause(): void; public constructor(); public onDestroy(): void; public static injectIfNeededIn(activity: android.app.Activity): void; public onStop(): void; public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void; } export module ReportFragment { export class ActivityInitializationListener extends java.lang.Object { public static class: java.lang.Class<androidx.lifecycle.ReportFragment.ActivityInitializationListener>; /** * Constructs a new instance of the androidx.lifecycle.ReportFragment$ActivityInitializationListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { onCreate(): void; onStart(): void; onResume(): void; }); public constructor(); public onResume(): void; public onStart(): void; public onCreate(): void; } export class LifecycleCallbacks extends java.lang.Object implements android.app.Application.ActivityLifecycleCallbacks { public static class: java.lang.Class<androidx.lifecycle.ReportFragment.LifecycleCallbacks>; public onActivityPaused(param0: android.app.Activity): void; public onActivityPrePaused(activity: android.app.Activity): void; public onActivityPostCreated(activity: android.app.Activity, savedInstanceState: android.os.Bundle): void; public onActivityCreated(activity: android.app.Activity, bundle: android.os.Bundle): void; public onActivityDestroyed(param0: android.app.Activity): void; public onActivitySaveInstanceState(activity: android.app.Activity, bundle: android.os.Bundle): void; public onActivityCreated(param0: android.app.Activity, param1: android.os.Bundle): void; public onActivityPreDestroyed(activity: android.app.Activity): void; public onActivityStopped(param0: android.app.Activity): void; public onActivityStopped(activity: android.app.Activity): void; public onActivityStarted(param0: android.app.Activity): void; public onActivityResumed(param0: android.app.Activity): void; public onActivityStarted(activity: android.app.Activity): void; public onActivityPreStopped(activity: android.app.Activity): void; public onActivityPostResumed(activity: android.app.Activity): void; public onActivityPostStarted(activity: android.app.Activity): void; public onActivitySaveInstanceState(param0: android.app.Activity, param1: android.os.Bundle): void; public onActivityPaused(activity: android.app.Activity): void; public onActivityDestroyed(activity: android.app.Activity): void; public onActivityResumed(activity: android.app.Activity): void; } } } } declare module androidx { export module lifecycle { export class ViewTreeLifecycleOwner extends java.lang.Object { public static class: java.lang.Class<androidx.lifecycle.ViewTreeLifecycleOwner>; public static set(view: android.view.View, lifecycleOwner: androidx.lifecycle.LifecycleOwner): void; public static get(view: android.view.View): androidx.lifecycle.LifecycleOwner; } } } //Generics information: