@icecreamcake/autojs6-dts
Version:
TypeScript Declarations for AutoJs6
872 lines (850 loc) • 561 kB
TypeScript
declare module android {
export module support {
export module v4 {
export module app {
export class INotificationSideChannel extends java.lang.Object implements android.os.IInterface {
public static class: java.lang.Class<android.support.v4.app.INotificationSideChannel>;
/**
* Constructs a new instance of the android.support.v4.app.INotificationSideChannel interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
notify(param0: string, param1: number, param2: string, param3: android.app.Notification): void;
cancel(param0: string, param1: number, param2: string): void;
cancelAll(param0: string): void;
asBinder(): android.os.IBinder;
});
public constructor();
public notify(param0: string, param1: number, param2: string, param3: android.app.Notification): void;
public notify(): void;
public asBinder(): android.os.IBinder;
public cancelAll(param0: string): void;
public cancel(param0: string, param1: number, param2: string): void;
}
export module INotificationSideChannel {
export class Default extends java.lang.Object implements android.support.v4.app.INotificationSideChannel {
public static class: java.lang.Class<android.support.v4.app.INotificationSideChannel.Default>;
public notify(packageName: string, id: number, tag: string, notification: android.app.Notification): void;
public constructor();
public cancel(packageName: string, id: number, tag: string): void;
public notify(): void;
public cancelAll(packageName: string): void;
public asBinder(): android.os.IBinder;
public notify(param0: string, param1: number, param2: string, param3: android.app.Notification): void;
public cancelAll(param0: string): void;
public cancel(param0: string, param1: number, param2: string): void;
}
export abstract class Stub extends android.os.Binder implements android.support.v4.app.INotificationSideChannel {
public static class: java.lang.Class<android.support.v4.app.INotificationSideChannel.Stub>;
public linkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): void;
public unlinkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): boolean;
public unlinkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): boolean;
public onTransact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean;
public transact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean;
public cancelAll(param0: string): void;
public static setDefaultImpl(impl: android.support.v4.app.INotificationSideChannel): boolean;
public getInterfaceDescriptor(): string;
public dump(fd: java.io.FileDescriptor, fout: java.io.PrintWriter, args: string[]): void;
public asBinder(): android.os.IBinder;
public static asInterface(obj: android.os.IBinder): android.support.v4.app.INotificationSideChannel;
public static getDefaultImpl(): android.support.v4.app.INotificationSideChannel;
public dumpAsync(param0: java.io.FileDescriptor, param1: string[]): void;
public constructor();
public queryLocalInterface(param0: string): android.os.IInterface;
public notify(param0: string, param1: number, param2: string, param3: android.app.Notification): void;
public queryLocalInterface(descriptor: string): android.os.IInterface;
public dump(param0: java.io.FileDescriptor, param1: string[]): void;
public transact(param0: number, param1: android.os.Parcel, param2: android.os.Parcel, param3: number): boolean;
public linkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): void;
public notify(): void;
public isBinderAlive(): boolean;
public dump(fd: java.io.FileDescriptor, args: string[]): void;
public pingBinder(): boolean;
public cancel(param0: string, param1: number, param2: string): void;
public dumpAsync(fd: java.io.FileDescriptor, args: string[]): void;
}
export module Stub {
export class Proxy extends java.lang.Object implements android.support.v4.app.INotificationSideChannel {
public static class: java.lang.Class<android.support.v4.app.INotificationSideChannel.Stub.Proxy>;
public static sDefaultImpl: android.support.v4.app.INotificationSideChannel;
public getInterfaceDescriptor(): string;
public cancel(packageName: string, id: number, tag: string): void;
public cancelAll(packageName: string): void;
public asBinder(): android.os.IBinder;
public cancel(param0: string, param1: number, param2: string): void;
public notify(packageName: string, id: number, tag: string, notification: android.app.Notification): void;
public notify(): void;
public cancelAll(param0: string): void;
public notify(param0: string, param1: number, param2: string, param3: android.app.Notification): void;
}
}
}
}
}
}
}
declare module android {
export module support {
export module v4 {
export module app {
export class RemoteActionCompatParcelizer extends androidx.core.app.RemoteActionCompatParcelizer {
public static class: java.lang.Class<android.support.v4.app.RemoteActionCompatParcelizer>;
public constructor();
public static write(obj: androidx.core.app.RemoteActionCompat, parcel: androidx.versionedparcelable.VersionedParcel): void;
public static read(parcel: androidx.versionedparcelable.VersionedParcel): androidx.core.app.RemoteActionCompat;
}
}
}
}
}
declare module android {
export module support {
export module v4 {
export module graphics {
export module drawable {
export class IconCompatParcelizer extends androidx.core.graphics.drawable.IconCompatParcelizer {
public static class: java.lang.Class<android.support.v4.graphics.drawable.IconCompatParcelizer>;
public constructor();
public static write(obj: androidx.core.graphics.drawable.IconCompat, parcel: androidx.versionedparcelable.VersionedParcel): void;
public static read(parcel: androidx.versionedparcelable.VersionedParcel): androidx.core.graphics.drawable.IconCompat;
}
}
}
}
}
}
declare module android {
export module support {
export module v4 {
export module os {
export class IResultReceiver extends java.lang.Object implements android.os.IInterface {
public static class: java.lang.Class<android.support.v4.os.IResultReceiver>;
/**
* Constructs a new instance of the android.support.v4.os.IResultReceiver interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
send(param0: number, param1: android.os.Bundle): void;
asBinder(): android.os.IBinder;
});
public constructor();
public send(param0: number, param1: android.os.Bundle): void;
public asBinder(): android.os.IBinder;
}
export module IResultReceiver {
export class Default extends java.lang.Object implements android.support.v4.os.IResultReceiver {
public static class: java.lang.Class<android.support.v4.os.IResultReceiver.Default>;
public constructor();
public asBinder(): android.os.IBinder;
public send(resultCode: number, resultData: android.os.Bundle): void;
public send(param0: number, param1: android.os.Bundle): void;
}
export abstract class Stub extends android.os.Binder implements android.support.v4.os.IResultReceiver {
public static class: java.lang.Class<android.support.v4.os.IResultReceiver.Stub>;
public constructor();
public linkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): void;
public unlinkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): boolean;
public static setDefaultImpl(impl: android.support.v4.os.IResultReceiver): boolean;
public unlinkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): boolean;
public queryLocalInterface(param0: string): android.os.IInterface;
public onTransact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean;
public transact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean;
public queryLocalInterface(descriptor: string): android.os.IInterface;
public dump(param0: java.io.FileDescriptor, param1: string[]): void;
public transact(param0: number, param1: android.os.Parcel, param2: android.os.Parcel, param3: number): boolean;
public linkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): void;
public getInterfaceDescriptor(): string;
public static asInterface(obj: android.os.IBinder): android.support.v4.os.IResultReceiver;
public static getDefaultImpl(): android.support.v4.os.IResultReceiver;
public isBinderAlive(): boolean;
public dump(fd: java.io.FileDescriptor, fout: java.io.PrintWriter, args: string[]): void;
public asBinder(): android.os.IBinder;
public dump(fd: java.io.FileDescriptor, args: string[]): void;
public pingBinder(): boolean;
public send(param0: number, param1: android.os.Bundle): void;
public dumpAsync(fd: java.io.FileDescriptor, args: string[]): void;
public dumpAsync(param0: java.io.FileDescriptor, param1: string[]): void;
}
export module Stub {
export class Proxy extends java.lang.Object implements android.support.v4.os.IResultReceiver {
public static class: java.lang.Class<android.support.v4.os.IResultReceiver.Stub.Proxy>;
public static sDefaultImpl: android.support.v4.os.IResultReceiver;
public getInterfaceDescriptor(): string;
public send(resultCode: number, resultData: android.os.Bundle): void;
public send(param0: number, param1: android.os.Bundle): void;
public asBinder(): android.os.IBinder;
}
}
}
}
}
}
}
declare module android {
export module support {
export module v4 {
export module os {
export class ResultReceiver extends java.lang.Object implements android.os.Parcelable {
public static class: java.lang.Class<android.support.v4.os.ResultReceiver>;
public static CREATOR: android.os.Parcelable.Creator<android.support.v4.os.ResultReceiver>;
public send(resultCode: number, resultData: android.os.Bundle): void;
public describeContents(): number;
public onReceiveResult(resultCode: number, resultData: android.os.Bundle): void;
public writeToParcel(out: android.os.Parcel, flags: number): void;
public constructor(handler: android.os.Handler);
public writeToParcel(param0: android.os.Parcel, param1: number): void;
}
export module ResultReceiver {
export class MyResultReceiver extends android.support.v4.os.IResultReceiver.Stub {
public static class: java.lang.Class<android.support.v4.os.ResultReceiver.MyResultReceiver>;
public linkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): void;
public unlinkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): boolean;
public unlinkToDeath(param0: android.os.IBinder.DeathRecipient, param1: number): boolean;
public queryLocalInterface(param0: string): android.os.IInterface;
public transact(code: number, data: android.os.Parcel, reply: android.os.Parcel, flags: number): boolean;
public queryLocalInterface(descriptor: string): android.os.IInterface;
public dump(param0: java.io.FileDescriptor, param1: string[]): void;
public transact(param0: number, param1: android.os.Parcel, param2: android.os.Parcel, param3: number): boolean;
public linkToDeath(recipient: android.os.IBinder.DeathRecipient, flags: number): void;
public getInterfaceDescriptor(): string;
public isBinderAlive(): boolean;
public dump(fd: java.io.FileDescriptor, fout: java.io.PrintWriter, args: string[]): void;
public send(resultCode: number, resultData: android.os.Bundle): void;
public dump(fd: java.io.FileDescriptor, args: string[]): void;
public pingBinder(): boolean;
public send(param0: number, param1: android.os.Bundle): void;
public dumpAsync(fd: java.io.FileDescriptor, args: string[]): void;
public dumpAsync(param0: java.io.FileDescriptor, param1: string[]): void;
}
export class MyRunnable extends java.lang.Object implements java.lang.Runnable {
public static class: java.lang.Class<android.support.v4.os.ResultReceiver.MyRunnable>;
public run(): void;
}
}
}
}
}
}
declare module androidx {
export module core {
export module accessibilityservice {
export class AccessibilityServiceInfoCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.accessibilityservice.AccessibilityServiceInfoCompat>;
public static CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT: number;
public static CAPABILITY_CAN_REQUEST_TOUCH_EXPLORATION: number;
public static CAPABILITY_CAN_REQUEST_ENHANCED_WEB_ACCESSIBILITY: number;
public static CAPABILITY_CAN_FILTER_KEY_EVENTS: number;
public static FEEDBACK_BRAILLE: number;
public static FEEDBACK_ALL_MASK: number;
public static FLAG_INCLUDE_NOT_IMPORTANT_VIEWS: number;
public static FLAG_REQUEST_TOUCH_EXPLORATION_MODE: number;
public static FLAG_REQUEST_ENHANCED_WEB_ACCESSIBILITY: number;
public static FLAG_REPORT_VIEW_IDS: number;
public static FLAG_REQUEST_FILTER_KEY_EVENTS: number;
public static feedbackTypeToString(feedbackType: number): string;
public static getCapabilities(info: android.accessibilityservice.AccessibilityServiceInfo): number;
public static loadDescription(info: android.accessibilityservice.AccessibilityServiceInfo, packageManager: android.content.pm.PackageManager): string;
public static flagToString(flag: number): string;
public static capabilityToString(capability: number): string;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class ActivityCompat extends androidx.core.content.ContextCompat {
public static class: java.lang.Class<androidx.core.app.ActivityCompat>;
public static startIntentSenderForResult(activity: android.app.Activity, intent: android.content.IntentSender, requestCode: number, fillInIntent: android.content.Intent, flagsMask: number, flagsValues: number, extraFlags: number, options: android.os.Bundle): void;
public static shouldShowRequestPermissionRationale(activity: android.app.Activity, permission: string): boolean;
public static setExitSharedElementCallback(activity: android.app.Activity, callback: androidx.core.app.SharedElementCallback): void;
public static getPermissionCompatDelegate(): androidx.core.app.ActivityCompat.PermissionCompatDelegate;
public static startPostponedEnterTransition(activity: android.app.Activity): void;
/** @deprecated */
public static invalidateOptionsMenu(activity: android.app.Activity): boolean;
public static isLaunchedFromBubble(activity: android.app.Activity): boolean;
public static requestPermissions(activity: android.app.Activity, permissions: string[], requestCode: number): void;
public static getReferrer(activity: android.app.Activity): android.net.Uri;
public static setEnterSharedElementCallback(activity: android.app.Activity, callback: androidx.core.app.SharedElementCallback): void;
public constructor();
public static finishAffinity(activity: android.app.Activity): void;
public static finishAfterTransition(activity: android.app.Activity): void;
public static recreate(activity: android.app.Activity): void;
public static startActivityForResult(activity: android.app.Activity, intent: android.content.Intent, requestCode: number, options: android.os.Bundle): void;
public static postponeEnterTransition(activity: android.app.Activity): void;
public static setLocusContext(activity: android.app.Activity, locusId: androidx.core.content.LocusIdCompat, bundle: android.os.Bundle): void;
public static requestDragAndDropPermissions(activity: android.app.Activity, dragEvent: android.view.DragEvent): androidx.core.view.DragAndDropPermissionsCompat;
public static setPermissionCompatDelegate(delegate: androidx.core.app.ActivityCompat.PermissionCompatDelegate): void;
public static requireViewById(activity: android.app.Activity, id: number): android.view.View;
}
export module ActivityCompat {
export class Api30Impl extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityCompat.Api30Impl>;
}
export class Api31Impl extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityCompat.Api31Impl>;
}
export class OnRequestPermissionsResultCallback extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback>;
/**
* Constructs a new instance of the androidx.core.app.ActivityCompat$OnRequestPermissionsResultCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onRequestPermissionsResult(param0: number, param1: string[], param2: number[]): void;
});
public constructor();
public onRequestPermissionsResult(param0: number, param1: string[], param2: number[]): void;
}
export class PermissionCompatDelegate extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityCompat.PermissionCompatDelegate>;
/**
* Constructs a new instance of the androidx.core.app.ActivityCompat$PermissionCompatDelegate interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
requestPermissions(param0: android.app.Activity, param1: string[], param2: number): boolean;
onActivityResult(param0: android.app.Activity, param1: number, param2: number, param3: android.content.Intent): boolean;
});
public constructor();
public onActivityResult(param0: android.app.Activity, param1: number, param2: number, param3: android.content.Intent): boolean;
public requestPermissions(param0: android.app.Activity, param1: string[], param2: number): boolean;
}
export class RequestPermissionsRequestCodeValidator extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityCompat.RequestPermissionsRequestCodeValidator>;
/**
* Constructs a new instance of the androidx.core.app.ActivityCompat$RequestPermissionsRequestCodeValidator interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
validateRequestPermissionsRequestCode(param0: number): void;
});
public constructor();
public validateRequestPermissionsRequestCode(param0: number): void;
}
export class SharedElementCallback21Impl extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityCompat.SharedElementCallback21Impl>;
public onMapSharedElements(names: java.util.List<string>, sharedElements: java.util.Map<string,android.view.View>): void;
public onSharedElementsArrived(sharedElementNames: java.util.List<string>, sharedElements: java.util.List<android.view.View>, listener: any): void;
public onCaptureSharedElementSnapshot(sharedElement: android.view.View, viewToGlobalMatrix: android.graphics.Matrix, screenBounds: android.graphics.RectF): android.os.Parcelable;
public onCreateSnapshotView(context: android.content.Context, snapshot: android.os.Parcelable): android.view.View;
public onSharedElementStart(sharedElementNames: java.util.List<string>, sharedElements: java.util.List<android.view.View>, sharedElementSnapshots: java.util.List<android.view.View>): void;
public onSharedElementEnd(sharedElementNames: java.util.List<string>, sharedElements: java.util.List<android.view.View>, sharedElementSnapshots: java.util.List<android.view.View>): void;
public onRejectSharedElements(rejectedSharedElements: java.util.List<android.view.View>): void;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class ActivityManagerCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityManagerCompat>;
public static isLowRamDevice(activityManager: android.app.ActivityManager): boolean;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class ActivityOptionsCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityOptionsCompat>;
public static EXTRA_USAGE_TIME_REPORT: string;
public static EXTRA_USAGE_TIME_REPORT_PACKAGES: string;
public static makeScaleUpAnimation(source: android.view.View, startX: number, startY: number, startWidth: number, startHeight: number): androidx.core.app.ActivityOptionsCompat;
public static makeThumbnailScaleUpAnimation(source: android.view.View, thumbnail: android.graphics.Bitmap, startX: number, startY: number): androidx.core.app.ActivityOptionsCompat;
public update(otherOptions: androidx.core.app.ActivityOptionsCompat): void;
public static makeClipRevealAnimation(source: android.view.View, startX: number, startY: number, width: number, height: number): androidx.core.app.ActivityOptionsCompat;
public static makeCustomAnimation(context: android.content.Context, enterResId: number, exitResId: number): androidx.core.app.ActivityOptionsCompat;
public requestUsageTimeReport(receiver: android.app.PendingIntent): void;
public constructor();
public toBundle(): android.os.Bundle;
public static makeBasic(): androidx.core.app.ActivityOptionsCompat;
public static makeSceneTransitionAnimation(activity: android.app.Activity, sharedElement: android.view.View, sharedElementName: string): androidx.core.app.ActivityOptionsCompat;
public static makeTaskLaunchBehind(): androidx.core.app.ActivityOptionsCompat;
public getLaunchBounds(): android.graphics.Rect;
public static makeSceneTransitionAnimation(activity: android.app.Activity, ...sharedElements: androidx.core.util.Pair<android.view.View,string>[]): androidx.core.app.ActivityOptionsCompat;
public setLaunchBounds(screenSpacePixelRect: android.graphics.Rect): androidx.core.app.ActivityOptionsCompat;
}
export module ActivityOptionsCompat {
export class ActivityOptionsCompatImpl extends androidx.core.app.ActivityOptionsCompat {
public static class: java.lang.Class<androidx.core.app.ActivityOptionsCompat.ActivityOptionsCompatImpl>;
public getLaunchBounds(): android.graphics.Rect;
public update(otherOptions: androidx.core.app.ActivityOptionsCompat): void;
public toBundle(): android.os.Bundle;
public setLaunchBounds(screenSpacePixelRect: android.graphics.Rect): androidx.core.app.ActivityOptionsCompat;
public requestUsageTimeReport(receiver: android.app.PendingIntent): void;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class ActivityRecreator extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ActivityRecreator>;
public static activityThreadClass: java.lang.Class<any>;
public static mainThreadField: java.lang.reflect.Field;
public static tokenField: java.lang.reflect.Field;
public static performStopActivity3ParamsMethod: java.lang.reflect.Method;
public static performStopActivity2ParamsMethod: java.lang.reflect.Method;
public static requestRelaunchActivityMethod: java.lang.reflect.Method;
public static queueOnStopIfNecessary(currentlyRecreatingToken: any, currentlyRecreatingHashCode: number, activity: android.app.Activity): boolean;
}
export module ActivityRecreator {
export class LifecycleCheckCallbacks extends java.lang.Object implements android.app.Application.ActivityLifecycleCallbacks {
public static class: java.lang.Class<androidx.core.app.ActivityRecreator.LifecycleCheckCallbacks>;
public onActivityCreated(activity: android.app.Activity, savedInstanceState: android.os.Bundle): void;
public onActivityStopped(activity: android.app.Activity): void;
public onActivityStarted(activity: android.app.Activity): void;
public onActivityResumed(activity: android.app.Activity): void;
public onActivityPaused(activity: android.app.Activity): void;
public onActivityStopped(param0: android.app.Activity): void;
public onActivityPaused(param0: android.app.Activity): void;
public onActivityDestroyed(param0: android.app.Activity): void;
public onActivitySaveInstanceState(activity: android.app.Activity, outState: android.os.Bundle): void;
public onActivityDestroyed(activity: android.app.Activity): void;
public onActivityStarted(param0: android.app.Activity): void;
public onActivityCreated(param0: android.app.Activity, param1: android.os.Bundle): void;
public onActivityResumed(param0: android.app.Activity): void;
public onActivitySaveInstanceState(param0: android.app.Activity, param1: android.os.Bundle): void;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class AlarmManagerCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.AlarmManagerCompat>;
public static setAlarmClock(alarmManager: android.app.AlarmManager, triggerTime: number, param2: android.app.PendingIntent, showIntent: android.app.PendingIntent): void;
public static setExactAndAllowWhileIdle(alarmManager: android.app.AlarmManager, type: number, triggerAtMillis: number, param3: android.app.PendingIntent): void;
public static setAndAllowWhileIdle(alarmManager: android.app.AlarmManager, type: number, triggerAtMillis: number, param3: android.app.PendingIntent): void;
public static setExact(alarmManager: android.app.AlarmManager, type: number, triggerAtMillis: number, param3: android.app.PendingIntent): void;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class AppComponentFactory extends android.app.AppComponentFactory {
public static class: java.lang.Class<androidx.core.app.AppComponentFactory>;
public instantiateActivityCompat(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.app.Activity;
public instantiateReceiver(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.content.BroadcastReceiver;
public instantiateReceiverCompat(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.content.BroadcastReceiver;
public instantiateProvider(cl: java.lang.ClassLoader, className: string): android.content.ContentProvider;
public instantiateProviderCompat(cl: java.lang.ClassLoader, className: string): android.content.ContentProvider;
public instantiateService(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.app.Service;
public instantiateActivity(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.app.Activity;
public instantiateApplication(cl: java.lang.ClassLoader, className: string): android.app.Application;
public instantiateApplicationCompat(cl: java.lang.ClassLoader, className: string): android.app.Application;
public constructor();
public instantiateServiceCompat(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.app.Service;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class AppLaunchChecker extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.AppLaunchChecker>;
public static hasStartedFromLauncher(context: android.content.Context): boolean;
/** @deprecated */
public constructor();
public static onActivityCreate(activity: android.app.Activity): void;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class AppOpsManagerCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.AppOpsManagerCompat>;
public static MODE_ALLOWED: number;
public static MODE_IGNORED: number;
public static MODE_ERRORED: number;
public static MODE_DEFAULT: number;
public static noteProxyOpNoThrow(context: android.content.Context, op: string, proxiedPackageName: string): number;
public static permissionToOp(permission: string): string;
public static noteProxyOp(context: android.content.Context, op: string, proxiedPackageName: string): number;
public static noteOpNoThrow(context: android.content.Context, op: string, uid: number, packageName: string): number;
public static checkOrNoteProxyOp(context: android.content.Context, proxyUid: number, op: string, proxiedPackageName: string): number;
public static noteOp(context: android.content.Context, op: string, uid: number, packageName: string): number;
}
export module AppOpsManagerCompat {
export class Api29Impl extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.AppOpsManagerCompat.Api29Impl>;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class BundleCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.BundleCompat>;
public static getBinder(bundle: android.os.Bundle, key: string): android.os.IBinder;
public static putBinder(bundle: android.os.Bundle, key: string, binder: android.os.IBinder): void;
}
export module BundleCompat {
export class BundleCompatBaseImpl extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.BundleCompat.BundleCompatBaseImpl>;
public static putBinder(bundle: android.os.Bundle, key: string, binder: android.os.IBinder): void;
public static getBinder(bundle: android.os.Bundle, key: string): android.os.IBinder;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class ComponentActivity extends android.app.Activity implements androidx.lifecycle.LifecycleOwner, androidx.core.view.KeyEventDispatcher.Component {
public static class: java.lang.Class<androidx.core.app.ComponentActivity>;
public onCreate(savedInstanceState: android.os.Bundle, persistentState: any): void;
public onActionModeStarted(mode: android.view.ActionMode): void;
public onWindowStartingActionMode(param0: android.view.ActionMode.Callback): android.view.ActionMode;
public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean;
public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean;
public onPanelClosed(featureId: number, menu: android.view.Menu): void;
public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean;
public onCreateView(name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View;
public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void;
public dispatchKeyShortcutEvent(event: android.view.KeyEvent): boolean;
public getLifecycle(): androidx.lifecycle.Lifecycle;
public constructor();
public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean;
public onPreparePanel(param0: number, param1: android.view.View, param2: android.view.Menu): boolean;
public onSearchRequested(param0: any): boolean;
public onWindowFocusChanged(hasFocus: boolean): void;
public superDispatchKeyEvent(event: android.view.KeyEvent): boolean;
public onCreateView(param0: android.view.View, param1: string, param2: android.content.Context, param3: android.util.AttributeSet): android.view.View;
public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void;
public onCreate(savedInstanceState: android.os.Bundle): void;
public onPanelClosed(param0: number, param1: android.view.Menu): void;
public onTrimMemory(param0: number): void;
public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean;
public onMenuOpened(param0: number, param1: android.view.Menu): boolean;
public onCreateView(parent: android.view.View, name: string, context: android.content.Context, attrs: android.util.AttributeSet): android.view.View;
/** @deprecated */
public putExtraData(extraData: androidx.core.app.ComponentActivity.ExtraData): void;
/** @deprecated */
public getExtraData(extraDataClass: java.lang.Class<any>): androidx.core.app.ComponentActivity.ExtraData;
public dispatchTrackballEvent(param0: android.view.MotionEvent): boolean;
public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void;
public onActionModeFinished(mode: android.view.ActionMode): void;
public dispatchKeyShortcutEvent(param0: android.view.KeyEvent): boolean;
public onSaveInstanceState(outState: android.os.Bundle): void;
public onSaveInstanceState(outState: android.os.Bundle, outPersistentState: any): void;
public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void;
public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean;
public superDispatchKeyEvent(param0: android.view.KeyEvent): boolean;
public onContentChanged(): void;
public onMenuOpened(featureId: number, menu: android.view.Menu): boolean;
public dispatchKeyEvent(param0: android.view.KeyEvent): boolean;
public onDetachedFromWindow(): void;
public onPreparePanel(featureId: number, view: android.view.View, menu: android.view.Menu): boolean;
public dispatchTouchEvent(param0: android.view.MotionEvent): boolean;
public onSearchRequested(): boolean;
public onCreatePanelMenu(featureId: number, menu: android.view.Menu): boolean;
public dispatchGenericMotionEvent(param0: android.view.MotionEvent): boolean;
public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean;
public dispatchTouchEvent(ev: android.view.MotionEvent): boolean;
public constructor(base: android.content.Context, theme: android.content.res.Resources.Theme);
public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean;
public dispatchPopulateAccessibilityEvent(param0: android.view.accessibility.AccessibilityEvent): boolean;
public onTrimMemory(level: number): void;
public onCreatePanelView(featureId: number): android.view.View;
public onMenuItemSelected(param0: number, param1: android.view.MenuItem): boolean;
public onWindowStartingActionMode(callback: android.view.ActionMode.Callback): android.view.ActionMode;
public dispatchKeyEvent(event: android.view.KeyEvent): boolean;
public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean;
public onCreatePanelView(param0: number): android.view.View;
public onWindowStartingActionMode(callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode;
public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean;
public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void;
public onActionModeStarted(param0: android.view.ActionMode): void;
public onWindowStartingActionMode(param0: android.view.ActionMode.Callback, param1: number): android.view.ActionMode;
public onActionModeFinished(param0: android.view.ActionMode): void;
public constructor(base: android.content.Context);
public constructor(base: android.content.Context, themeResId: number);
public onSearchRequested(searchEvent: any): boolean;
public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean;
public onCreatePanelMenu(param0: number, param1: android.view.Menu): boolean;
public onWindowFocusChanged(param0: boolean): void;
public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean;
public onAttachedToWindow(): void;
}
export module ComponentActivity {
export class ExtraData extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.ComponentActivity.ExtraData>;
public constructor();
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class CoreComponentFactory extends android.app.AppComponentFactory {
public static class: java.lang.Class<androidx.core.app.CoreComponentFactory>;
public instantiateReceiver(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.content.BroadcastReceiver;
public instantiateProvider(cl: java.lang.ClassLoader, className: string): android.content.ContentProvider;
public instantiateService(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.app.Service;
public instantiateActivity(cl: java.lang.ClassLoader, className: string, intent: android.content.Intent): android.app.Activity;
public instantiateApplication(cl: java.lang.ClassLoader, className: string): android.app.Application;
public constructor();
}
export module CoreComponentFactory {
export class CompatWrapped extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.CoreComponentFactory.CompatWrapped>;
/**
* Constructs a new instance of the androidx.core.app.CoreComponentFactory$CompatWrapped interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
getWrapper(): any;
});
public constructor();
public getWrapper(): any;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class DialogCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.DialogCompat>;
public static requireViewById(dialog: android.app.Dialog, id: number): android.view.View;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class FrameMetricsAggregator extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.FrameMetricsAggregator>;
public static TOTAL_INDEX: number;
public static INPUT_INDEX: number;
public static LAYOUT_MEASURE_INDEX: number;
public static DRAW_INDEX: number;
public static SYNC_INDEX: number;
public static COMMAND_INDEX: number;
public static SWAP_INDEX: number;
public static DELAY_INDEX: number;
public static ANIMATION_INDEX: number;
public static TOTAL_DURATION: number;
public static INPUT_DURATION: number;
public static LAYOUT_MEASURE_DURATION: number;
public static DRAW_DURATION: number;
public static SYNC_DURATION: number;
public static COMMAND_DURATION: number;
public static SWAP_DURATION: number;
public static DELAY_DURATION: number;
public static ANIMATION_DURATION: number;
public static EVERY_DURATION: number;
public stop(): android.util.SparseIntArray[];
public reset(): android.util.SparseIntArray[];
public add(activity: android.app.Activity): void;
public getMetrics(): android.util.SparseIntArray[];
public constructor(metricTypeFlags: number);
public remove(activity: android.app.Activity): android.util.SparseIntArray[];
public constructor();
}
export module FrameMetricsAggregator {
export class FrameMetricsApi24Impl extends androidx.core.app.FrameMetricsAggregator.FrameMetricsBaseImpl {
public static class: java.lang.Class<androidx.core.app.FrameMetricsAggregator.FrameMetricsApi24Impl>;
public stop(): android.util.SparseIntArray[];
public add(activity: android.app.Activity): void;
public getMetrics(): android.util.SparseIntArray[];
public remove(activity: android.app.Activity): android.util.SparseIntArray[];
public reset(): android.util.SparseIntArray[];
}
export class FrameMetricsBaseImpl extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.FrameMetricsAggregator.FrameMetricsBaseImpl>;
public stop(): android.util.SparseIntArray[];
public add(activity: android.app.Activity): void;
public getMetrics(): android.util.SparseIntArray[];
public remove(activity: android.app.Activity): android.util.SparseIntArray[];
public reset(): android.util.SparseIntArray[];
}
export class MetricType extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.core.app.FrameMetricsAggregator.MetricType>;
/**
* Constructs a new instance of the androidx.core.app.FrameMetricsAggregator$MetricType interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
equals(param0: any): boolean;
hashCode(): number;
toString(): string;
annotationType(): java.lang.Class<any>;
});
public constructor();
public equals(param0: any): boolean;
public equals(obj: any): boolean;
public toString(): string;
public annotationType(): java.lang.Class<any>;
public hashCode(): number;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export abstract class JobIntentService extends android.app.Service {
public static class: java.lang.Class<androidx.core.app.JobIntentService>;
public static enqueueWork(context: android.content.Context, cls: java.lang.Class<any>, jobId: number, work: android.content.Intent): void;
public onHandleWork(param0: android.content.Intent): void;
public onStartCommand(intent: android.content.Intent, flags: number, startId: number): number;
public setInterruptIfStopped(interruptIfStopped: boolean): void;
public constructor();
public constructor(base: android.content.Context);
public onTrimMemory(level: number): void;
public onBind(param0: android.content.Intent): android.os.IBinder;
public static enqueueWork(context: android.content.Context, component: android.content.ComponentName, jobId: number, work: android.content.Intent): void;
public onBind(intent: android.content.Intent): android.os.IBinder;
public isStopped(): boolean;
public onCreate(): void;
public onDestroy(): void;
public onStopCurrentWork(): boolean;
public onTrimMemory(param0: number): void;
}
export module JobIntentService {
export class CommandProcessor extends android.os.AsyncTask<java.lang.Void,java.lang.Void,java.lang.Void> {
public static class: java.lang.Class<androidx.core.app.JobIntentService.CommandProcessor>;
public onPostExecute(aVoid: java.lang.Void): void;
public onCancelled(aVoid: java.lang.Void): void;
public doInBackground(...params: java.lang.Void[]): java.lang.Void;
public onCancelled(result: any): void;
public onCancelled(): void;
public onPostExecute(result: any): void;
public doInBackground(...param0: any[]): any;
}
export class CompatJobEngine extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.JobIntentService.CompatJobEngine>;
/**
* Constructs a new instance of the androidx.core.app.JobIntentService$CompatJobEngine interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
compatGetBinder(): android.os.IBinder;
dequeueWork(): androidx.core.app.JobIntentService.GenericWorkItem;
});
public constructor();
public compatGetBinder(): android.os.IBinder;
public dequeueWork(): androidx.core.app.JobIntentService.GenericWorkItem;
}
export class CompatWorkEnqueuer extends androidx.core.app.JobIntentService.WorkEnqueuer {
public static class: java.lang.Class<androidx.core.app.JobIntentService.CompatWorkEnqueuer>;
public serviceStartReceived(): void;
public serviceProcessingFinished(): void;
public serviceProcessingStarted(): void;
}
export class CompatWorkItem extends java.lang.Object implements androidx.core.app.JobIntentService.GenericWorkItem {
public static class: java.lang.Class<androidx.core.app.JobIntentService.CompatWorkItem>;
public complete(): void;
public getIntent(): android.content.Intent;
}
export class GenericWorkItem extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.JobIntentService.GenericWorkItem>;
/**
* Constructs a new instance of the androidx.core.app.JobIntentService$GenericWorkItem interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
getIntent(): android.content.Intent;
complete(): void;
});
public constructor();
public complete(): void;
public getIntent(): android.content.Intent;
}
export class JobServiceEngineImpl extends androidx.core.app.JobIntentService.CompatJobEngine {
public static class: java.lang.Class<androidx.core.app.JobIntentService.JobServiceEngineImpl>;
public onStartJob(param0: any): boolean;
public onStartJob(params: any): boolean;
public compatGetBinder(): android.os.IBinder;
public onStopJob(params: any): boolean;
public dequeueWork(): androidx.core.app.JobIntentService.GenericWorkItem;
public onStopJob(param0: any): boolean;
}
export module JobServiceEngineImpl {
export class WrapperWorkItem extends java.lang.Object implements androidx.core.app.JobIntentService.GenericWorkItem {
public static class: java.lang.Class<androidx.core.app.JobIntentService.JobServiceEngineImpl.WrapperWorkItem>;
public complete(): void;
public getIntent(): android.content.Intent;
}
}
export class JobWorkEnqueuer extends androidx.core.app.JobIntentService.WorkEnqueuer {
public static class: java.lang.Class<androidx.core.app.JobIntentService.JobWorkEnqueuer>;
}
export abstract class WorkEnqueuer extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.JobIntentService.WorkEnqueuer>;
public serviceStartReceived(): void;
public serviceProcessingFinished(): void;
public serviceProcessingStarted(): void;
}
}
}
}
}
declare module androidx {
export module core {
export module app {
export class NavUtils extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.NavUtils>;
public static PARENT_ACTIVITY: string;
public static getParentActivityName(sourceActivity: android.app.Activity): string;
public static getParentActivityIntent(context: android.content.Context, sourceActivityClass: java.lang.Class<any>): android.content.Intent;
public static shouldUpRecreateTask(sourceActivity: android.app.Activity, targetIntent: android.content.Intent): boolean;
public static navigateUpTo(sourceActivity: android.app.Activity, upIntent: android.content.Intent): void;
public static getParentActivityName(context: android.content.Context, componentName: android.content.ComponentName): string;
public static navigateUpFromSameTask(sourceActivity: android.app.Activity): void;
public static getParentActivityIntent(sourceActivity: android.app.Activity): android.content.Intent;
public static getParentActivityIntent(context: android.content.Context, componentName: android.content.ComponentName): android.content.Intent;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class NotificationBuilderWithBuilderAccessor extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.NotificationBuilderWithBuilderAccessor>;
/**
* Constructs a new instance of the androidx.core.app.NotificationBuilderWithBuilderAccessor interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
getBuilder(): android.app.Notification.Builder;
});
public constructor();
public getBuilder(): android.app.Notification.Builder;
}
}
}
}
declare module androidx {
export module core {
export module app {
export class NotificationChannelCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.core.app.NotificationChannelCompat>;
public static DEFAULT_CHANNEL_ID: string;
public getId(): string;
public getParentChannelId(): string;
public getAudioAttributes(): any;
public getName(): string;
public getDescription(): string;
public canBypassDnd(): boolean;
public getImportance(): number;
public shouldVibrate(): boolean;
public getVibrationPattern(): number[];
public getLightColor(): number;
public getLockscreenVisibility(): number;
public shouldShowLights(): boolean;
public isImportantConversation(): boo