UNPKG

@icecreamcake/autojs6-dts

Version:

TypeScript Declarations for AutoJs6

730 lines (725 loc) 694 kB
declare module androidx { export module appcompat { export module app { export abstract class ActionBar extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBar>; public static NAVIGATION_MODE_STANDARD: number; public static NAVIGATION_MODE_LIST: number; public static NAVIGATION_MODE_TABS: number; public static DISPLAY_USE_LOGO: number; public static DISPLAY_SHOW_HOME: number; public static DISPLAY_HOME_AS_UP: number; public static DISPLAY_SHOW_TITLE: number; public static DISPLAY_SHOW_CUSTOM: number; /** @deprecated */ public setNavigationMode(param0: number): void; public getHeight(): number; public setCustomView(param0: android.view.View, param1: androidx.appcompat.app.ActionBar.LayoutParams): void; /** @deprecated */ public addTab(param0: androidx.appcompat.app.ActionBar.Tab, param1: number, param2: boolean): void; public setIcon(param0: number): void; public setTitle(param0: string): void; public constructor(); /** @deprecated */ public removeTabAt(param0: number): void; public show(): void; public setHomeButtonEnabled(enabled: boolean): void; public setDisplayShowHomeEnabled(param0: boolean): void; /** @deprecated */ public getNavigationItemCount(): number; public isShowing(): boolean; public setTitle(param0: number): void; public onKeyShortcut(keyCode: number, ev: android.view.KeyEvent): boolean; public setCustomView(param0: number): void; /** @deprecated */ public addTab(param0: androidx.appcompat.app.ActionBar.Tab): void; /** @deprecated */ public addTab(param0: androidx.appcompat.app.ActionBar.Tab, param1: number): void; public getCustomView(): android.view.View; public setHomeAsUpIndicator(indicator: android.graphics.drawable.Drawable): void; public setDisplayOptions(param0: number): void; public invalidateOptionsMenu(): boolean; public setDisplayUseLogoEnabled(param0: boolean): void; public onMenuKeyEvent(event: android.view.KeyEvent): boolean; public setElevation(elevation: number): void; public setShowHideAnimationEnabled(enabled: boolean): void; public addOnMenuVisibilityListener(param0: androidx.appcompat.app.ActionBar.OnMenuVisibilityListener): void; /** @deprecated */ public getTabAt(param0: number): androidx.appcompat.app.ActionBar.Tab; public setHomeAsUpIndicator(resId: number): void; public setSubtitle(param0: string): void; public setDefaultDisplayHomeAsUpEnabled(enabled: boolean): void; /** @deprecated */ public getSelectedTab(): androidx.appcompat.app.ActionBar.Tab; public openOptionsMenu(): boolean; public getThemedContext(): android.content.Context; public setSplitBackgroundDrawable(d: android.graphics.drawable.Drawable): void; public setLogo(param0: number): void; public getElevation(): number; /** @deprecated */ public getSelectedNavigationIndex(): number; public getSubtitle(): string; /** @deprecated */ public removeTab(param0: androidx.appcompat.app.ActionBar.Tab): void; public setSubtitle(param0: number): void; public setLogo(param0: android.graphics.drawable.Drawable): void; public setBackgroundDrawable(param0: android.graphics.drawable.Drawable): void; public removeOnMenuVisibilityListener(param0: androidx.appcompat.app.ActionBar.OnMenuVisibilityListener): void; public isHideOnContentScrollEnabled(): boolean; public getHideOffset(): number; public startActionMode(callback: androidx.appcompat.view.ActionMode.Callback): androidx.appcompat.view.ActionMode; /** @deprecated */ public getNavigationMode(): number; /** @deprecated */ public addTab(param0: androidx.appcompat.app.ActionBar.Tab, param1: boolean): void; public getDisplayOptions(): number; /** @deprecated */ public getTabCount(): number; public setHomeActionContentDescription(resId: number): void; public setIcon(param0: android.graphics.drawable.Drawable): void; public setStackedBackgroundDrawable(d: android.graphics.drawable.Drawable): void; public closeOptionsMenu(): boolean; public setDisplayHomeAsUpEnabled(param0: boolean): void; public setDisplayShowCustomEnabled(param0: boolean): void; public setDisplayShowTitleEnabled(param0: boolean): void; public collapseActionView(): boolean; public setCustomView(param0: android.view.View): void; /** @deprecated */ public setListNavigationCallbacks(param0: android.widget.SpinnerAdapter, param1: androidx.appcompat.app.ActionBar.OnNavigationListener): void; /** @deprecated */ public removeAllTabs(): void; public isTitleTruncated(): boolean; public dispatchMenuVisibilityChanged(visible: boolean): void; public setHideOnContentScrollEnabled(hideOnContentScroll: boolean): void; /** @deprecated */ public selectTab(param0: androidx.appcompat.app.ActionBar.Tab): void; public getTitle(): string; /** @deprecated */ public setSelectedNavigationItem(param0: number): void; public hide(): void; public setHomeActionContentDescription(description: string): void; /** @deprecated */ public newTab(): androidx.appcompat.app.ActionBar.Tab; public setDisplayOptions(param0: number, param1: number): void; public onConfigurationChanged(config: android.content.res.Configuration): void; public setHideOffset(offset: number): void; public setWindowTitle(title: string): void; } export module ActionBar { export class DisplayOptions extends java.lang.Object implements java.lang.annotation.Annotation { public static class: java.lang.Class<androidx.appcompat.app.ActionBar.DisplayOptions>; /** * Constructs a new instance of the androidx.appcompat.app.ActionBar$DisplayOptions 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; } export class LayoutParams extends android.view.ViewGroup.MarginLayoutParams { public static class: java.lang.Class<androidx.appcompat.app.ActionBar.LayoutParams>; public gravity: number; public constructor(source: android.view.ViewGroup.MarginLayoutParams); public constructor(c: android.content.Context, attrs: android.util.AttributeSet); public constructor(width: number, height: number, gravity: number); public constructor(gravity: number); public constructor(source: androidx.appcompat.app.ActionBar.LayoutParams); public constructor(source: android.view.ViewGroup.LayoutParams); public constructor(width: number, height: number); } export class NavigationMode extends java.lang.Object implements java.lang.annotation.Annotation { public static class: java.lang.Class<androidx.appcompat.app.ActionBar.NavigationMode>; /** * Constructs a new instance of the androidx.appcompat.app.ActionBar$NavigationMode 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; } export class OnMenuVisibilityListener extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBar.OnMenuVisibilityListener>; /** * Constructs a new instance of the androidx.appcompat.app.ActionBar$OnMenuVisibilityListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { onMenuVisibilityChanged(param0: boolean): void; }); public constructor(); public onMenuVisibilityChanged(param0: boolean): void; } export class OnNavigationListener extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBar.OnNavigationListener>; /** * Constructs a new instance of the androidx.appcompat.app.ActionBar$OnNavigationListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { onNavigationItemSelected(param0: number, param1: number): boolean; }); public constructor(); public onNavigationItemSelected(param0: number, param1: number): boolean; } export abstract class Tab extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBar.Tab>; public static INVALID_POSITION: number; public setTabListener(param0: androidx.appcompat.app.ActionBar.TabListener): androidx.appcompat.app.ActionBar.Tab; public setText(param0: string): androidx.appcompat.app.ActionBar.Tab; public getText(): string; public setText(param0: number): androidx.appcompat.app.ActionBar.Tab; public getTag(): any; public setIcon(param0: number): androidx.appcompat.app.ActionBar.Tab; public setCustomView(param0: android.view.View): androidx.appcompat.app.ActionBar.Tab; public setTag(param0: any): androidx.appcompat.app.ActionBar.Tab; public select(): void; public getIcon(): android.graphics.drawable.Drawable; public getContentDescription(): string; public setCustomView(param0: number): androidx.appcompat.app.ActionBar.Tab; public getCustomView(): android.view.View; public constructor(); public setContentDescription(param0: number): androidx.appcompat.app.ActionBar.Tab; public setContentDescription(param0: string): androidx.appcompat.app.ActionBar.Tab; public setIcon(param0: android.graphics.drawable.Drawable): androidx.appcompat.app.ActionBar.Tab; public getPosition(): number; } export class TabListener extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBar.TabListener>; /** * Constructs a new instance of the androidx.appcompat.app.ActionBar$TabListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { onTabSelected(param0: androidx.appcompat.app.ActionBar.Tab, param1: androidx.fragment.app.FragmentTransaction): void; onTabUnselected(param0: androidx.appcompat.app.ActionBar.Tab, param1: androidx.fragment.app.FragmentTransaction): void; onTabReselected(param0: androidx.appcompat.app.ActionBar.Tab, param1: androidx.fragment.app.FragmentTransaction): void; }); public constructor(); public onTabReselected(param0: androidx.appcompat.app.ActionBar.Tab, param1: androidx.fragment.app.FragmentTransaction): void; public onTabUnselected(param0: androidx.appcompat.app.ActionBar.Tab, param1: androidx.fragment.app.FragmentTransaction): void; public onTabSelected(param0: androidx.appcompat.app.ActionBar.Tab, param1: androidx.fragment.app.FragmentTransaction): void; } } } } } declare module androidx { export module appcompat { export module app { export class ActionBarDrawerToggle extends java.lang.Object implements androidx.drawerlayout.widget.DrawerLayout.DrawerListener { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggle>; public isDrawerSlideAnimationEnabled(): boolean; public onDrawerOpened(param0: android.view.View): void; public setDrawerSlideAnimationEnabled(enabled: boolean): void; public onOptionsItemSelected(item: android.view.MenuItem): boolean; public onConfigurationChanged(newConfig: android.content.res.Configuration): void; public isDrawerIndicatorEnabled(): boolean; public onDrawerClosed(drawerView: android.view.View): void; public syncState(): void; public onDrawerSlide(param0: android.view.View, param1: number): void; public setHomeAsUpIndicator(resId: number): void; public onDrawerStateChanged(param0: number): void; public onDrawerClosed(param0: android.view.View): void; public getToolbarNavigationClickListener(): android.view.View.OnClickListener; public constructor(activity: android.app.Activity, drawerLayout: androidx.drawerlayout.widget.DrawerLayout, openDrawerContentDescRes: number, closeDrawerContentDescRes: number); public setDrawerIndicatorEnabled(enable: boolean): void; public getDrawerArrowDrawable(): androidx.appcompat.graphics.drawable.DrawerArrowDrawable; public onDrawerOpened(drawerView: android.view.View): void; public constructor(activity: android.app.Activity, drawerLayout: androidx.drawerlayout.widget.DrawerLayout, toolbar: androidx.appcompat.widget.Toolbar, openDrawerContentDescRes: number, closeDrawerContentDescRes: number); public setDrawerArrowDrawable(drawable: androidx.appcompat.graphics.drawable.DrawerArrowDrawable): void; public setToolbarNavigationClickListener(onToolbarNavigationClickListener: android.view.View.OnClickListener): void; public setHomeAsUpIndicator(indicator: android.graphics.drawable.Drawable): void; public onDrawerSlide(drawerView: android.view.View, slideOffset: number): void; public onDrawerStateChanged(newState: number): void; } export module ActionBarDrawerToggle { export class Delegate extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggle.Delegate>; /** * Constructs a new instance of the androidx.appcompat.app.ActionBarDrawerToggle$Delegate interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { setActionBarUpIndicator(param0: android.graphics.drawable.Drawable, param1: number): void; setActionBarDescription(param0: number): void; getThemeUpIndicator(): android.graphics.drawable.Drawable; getActionBarThemedContext(): android.content.Context; isNavigationVisible(): boolean; }); public constructor(); public setActionBarUpIndicator(param0: android.graphics.drawable.Drawable, param1: number): void; public isNavigationVisible(): boolean; public getActionBarThemedContext(): android.content.Context; public getThemeUpIndicator(): android.graphics.drawable.Drawable; public setActionBarDescription(param0: number): void; } export class DelegateProvider extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggle.DelegateProvider>; /** * Constructs a new instance of the androidx.appcompat.app.ActionBarDrawerToggle$DelegateProvider interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { getDrawerToggleDelegate(): androidx.appcompat.app.ActionBarDrawerToggle.Delegate; }); public constructor(); public getDrawerToggleDelegate(): androidx.appcompat.app.ActionBarDrawerToggle.Delegate; } export class FrameworkActionBarDelegate extends java.lang.Object implements androidx.appcompat.app.ActionBarDrawerToggle.Delegate { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggle.FrameworkActionBarDelegate>; public setActionBarUpIndicator(param0: android.graphics.drawable.Drawable, param1: number): void; public setActionBarDescription(contentDescRes: number): void; public isNavigationVisible(): boolean; public getActionBarThemedContext(): android.content.Context; public setActionBarUpIndicator(themeImage: android.graphics.drawable.Drawable, contentDescRes: number): void; public getThemeUpIndicator(): android.graphics.drawable.Drawable; public setActionBarDescription(param0: number): void; } export module FrameworkActionBarDelegate { export class Api18Impl extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggle.FrameworkActionBarDelegate.Api18Impl>; } } export class ToolbarCompatDelegate extends java.lang.Object implements androidx.appcompat.app.ActionBarDrawerToggle.Delegate { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggle.ToolbarCompatDelegate>; public setActionBarUpIndicator(upDrawable: android.graphics.drawable.Drawable, contentDescRes: number): void; public setActionBarUpIndicator(param0: android.graphics.drawable.Drawable, param1: number): void; public setActionBarDescription(contentDescRes: number): void; public isNavigationVisible(): boolean; public getActionBarThemedContext(): android.content.Context; public getThemeUpIndicator(): android.graphics.drawable.Drawable; public setActionBarDescription(param0: number): void; } } } } } declare module androidx { export module appcompat { export module app { export class ActionBarDrawerToggleHoneycomb extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggleHoneycomb>; public static setActionBarUpIndicator(activity: android.app.Activity, drawable: android.graphics.drawable.Drawable, contentDescRes: number): androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo; public static setActionBarDescription(info: androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo, activity: android.app.Activity, contentDescRes: number): androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo; public static getThemeUpIndicator(activity: android.app.Activity): android.graphics.drawable.Drawable; } export module ActionBarDrawerToggleHoneycomb { export class SetIndicatorInfo extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.ActionBarDrawerToggleHoneycomb.SetIndicatorInfo>; public setHomeAsUpIndicator: java.lang.reflect.Method; public setHomeActionContentDescription: java.lang.reflect.Method; public upIndicatorView: android.widget.ImageView; } } } } } declare module androidx { export module appcompat { export module app { export class AlertController extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.AlertController>; public getIconAttributeResId(attrId: number): number; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public setButtonPanelLayoutHint(layoutHint: number): void; public setButton(whichButton: number, text: string, listener: android.content.DialogInterface.OnClickListener, msg: android.os.Message, icon: android.graphics.drawable.Drawable): void; public setView(view: android.view.View, viewSpacingLeft: number, viewSpacingTop: number, viewSpacingRight: number, viewSpacingBottom: number): void; public setMessage(message: string): void; public getListView(): android.widget.ListView; public setIcon(resId: number): void; public setCustomTitle(customTitleView: android.view.View): void; public setView(view: android.view.View): void; public getButton(whichButton: number): android.widget.Button; public constructor(context: android.content.Context, di: androidx.appcompat.app.AppCompatDialog, window: android.view.Window); public installContent(): void; public setIcon(icon: android.graphics.drawable.Drawable): void; public setTitle(title: string): void; public setView(layoutResId: number): void; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; } export module AlertController { export class AlertParams extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.AlertController.AlertParams>; public mContext: android.content.Context; public mInflater: android.view.LayoutInflater; public mIconId: number; public mIcon: android.graphics.drawable.Drawable; public mIconAttrId: number; public mTitle: string; public mCustomTitleView: android.view.View; public mMessage: string; public mPositiveButtonText: string; public mPositiveButtonIcon: android.graphics.drawable.Drawable; public mPositiveButtonListener: android.content.DialogInterface.OnClickListener; public mNegativeButtonText: string; public mNegativeButtonIcon: android.graphics.drawable.Drawable; public mNegativeButtonListener: android.content.DialogInterface.OnClickListener; public mNeutralButtonText: string; public mNeutralButtonIcon: android.graphics.drawable.Drawable; public mNeutralButtonListener: android.content.DialogInterface.OnClickListener; public mCancelable: boolean; public mOnCancelListener: android.content.DialogInterface.OnCancelListener; public mOnDismissListener: android.content.DialogInterface.OnDismissListener; public mOnKeyListener: android.content.DialogInterface.OnKeyListener; public mItems: string[]; public mAdapter: android.widget.ListAdapter; public mOnClickListener: android.content.DialogInterface.OnClickListener; public mViewLayoutResId: number; public mView: android.view.View; public mViewSpacingLeft: number; public mViewSpacingTop: number; public mViewSpacingRight: number; public mViewSpacingBottom: number; public mViewSpacingSpecified: boolean; public mCheckedItems: boolean[]; public mIsMultiChoice: boolean; public mIsSingleChoice: boolean; public mCheckedItem: number; public mOnCheckboxClickListener: android.content.DialogInterface.OnMultiChoiceClickListener; public mCursor: android.database.Cursor; public mLabelColumn: string; public mIsCheckedColumn: string; public mForceInverseBackground: boolean; public mOnItemSelectedListener: android.widget.AdapterView.OnItemSelectedListener; public mOnPrepareListViewListener: androidx.appcompat.app.AlertController.AlertParams.OnPrepareListViewListener; public mRecycleOnMeasure: boolean; public constructor(context: android.content.Context); public apply(dialog: androidx.appcompat.app.AlertController): void; } export module AlertParams { export class OnPrepareListViewListener extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.AlertController.AlertParams.OnPrepareListViewListener>; /** * Constructs a new instance of the androidx.appcompat.app.AlertController$AlertParams$OnPrepareListViewListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { onPrepareListView(param0: android.widget.ListView): void; }); public constructor(); public onPrepareListView(param0: android.widget.ListView): void; } } export class ButtonHandler extends android.os.Handler { public static class: java.lang.Class<androidx.appcompat.app.AlertController.ButtonHandler>; public constructor(callback: android.os.Handler.Callback); public constructor(); public constructor(looper: android.os.Looper); public constructor(dialog: android.content.DialogInterface); public handleMessage(msg: android.os.Message): void; public constructor(looper: android.os.Looper, callback: android.os.Handler.Callback); } export class CheckedItemAdapter extends android.widget.ArrayAdapter<string> { public static class: java.lang.Class<androidx.appcompat.app.AlertController.CheckedItemAdapter>; public getFilter(): android.widget.Filter; public areAllItemsEnabled(): boolean; public isEnabled(position: number): boolean; public constructor(context: android.content.Context, resource: number, objects: any[]); public constructor(context: android.content.Context, resource: number, textViewResourceId: number, objects: string[]); public getDropDownViewTheme(): android.content.res.Resources.Theme; public getDropDownView(position: number, convertView: android.view.View, parent: android.view.ViewGroup): android.view.View; public constructor(context: android.content.Context, resource: number, textViewResourceId: number); public constructor(context: android.content.Context, resource: number, textViewResourceId: number, objects: any[]); public getItemId(position: number): number; public getDropDownView(param0: number, param1: android.view.View, param2: android.view.ViewGroup): android.view.View; public hasStableIds(): boolean; public constructor(context: android.content.Context, resource: number, textViewResourceId: number, objects: java.util.List<any>); public constructor(); public setDropDownViewTheme(param0: android.content.res.Resources.Theme): void; public constructor(context: android.content.Context, resource: number, objects: java.util.List<any>); public isEnabled(param0: number): boolean; public setDropDownViewTheme(theme: android.content.res.Resources.Theme): void; public constructor(context: android.content.Context, resource: number); } export class RecycleListView extends android.widget.ListView { public static class: java.lang.Class<androidx.appcompat.app.AlertController.RecycleListView>; public onNestedFling(param0: android.view.View, param1: number, param2: number, param3: boolean): boolean; public onKeyUp(param0: number, param1: android.view.KeyEvent): boolean; public startActionModeForChild(param0: android.view.View, param1: android.view.ActionMode.Callback): android.view.ActionMode; public startActionModeForChild(param0: android.view.View, param1: android.view.ActionMode.Callback, param2: number): android.view.ActionMode; public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number, defStyleRes: number); public focusableViewAvailable(v: android.view.View): void; public removeView(child: android.view.View): void; public isTextDirectionResolved(): boolean; public showContextMenuForChild(param0: android.view.View): boolean; public onStopNestedScroll(child: android.view.View): void; public sendAccessibilityEventUnchecked(event: android.view.accessibility.AccessibilityEvent): void; public showContextMenuForChild(param0: android.view.View, param1: number, param2: number): boolean; public recomputeViewAttributes(child: android.view.View): void; public addView(child: android.view.View, index: number): void; public updateViewLayout(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void; public getLayoutDirection(): number; public getParentForAccessibility(): android.view.ViewParent; public notifySubtreeAccessibilityStateChanged(child: android.view.View, source: android.view.View, changeType: number): void; public childHasTransientStateChanged(child: android.view.View, childHasTransientState: boolean): void; public requestSendAccessibilityEvent(child: android.view.View, event: android.view.accessibility.AccessibilityEvent): boolean; public createContextMenu(param0: android.view.ContextMenu): void; public startActionModeForChild(originalView: android.view.View, callback: android.view.ActionMode.Callback, type: number): android.view.ActionMode; public addView(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void; public childDrawableStateChanged(param0: android.view.View): void; public onFilterComplete(param0: number): void; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public isTextAlignmentResolved(): boolean; public onNestedScroll(target: android.view.View, dxConsumed: number, dyConsumed: number, dxUnconsumed: number, dyUnconsumed: number): void; public onKeyDown(param0: number, param1: android.view.KeyEvent): boolean; public sendAccessibilityEvent(eventType: number): void; public requestChildFocus(child: android.view.View, focused: android.view.View): void; public canResolveTextAlignment(): boolean; /** @deprecated */ public requestFitSystemWindows(): void; public onNestedScroll(param0: android.view.View, param1: number, param2: number, param3: number, param4: number): void; public requestChildRectangleOnScreen(child: android.view.View, rect: android.graphics.Rect, immediate: boolean): boolean; public onStartNestedScroll(child: android.view.View, target: android.view.View, nestedScrollAxes: number): boolean; public onKeyMultiple(param0: number, param1: number, param2: android.view.KeyEvent): boolean; public requestChildRectangleOnScreen(param0: android.view.View, param1: android.graphics.Rect, param2: boolean): boolean; public onNestedPreScroll(target: android.view.View, dx: number, dy: number, consumed: number[]): void; public showContextMenuForChild(originalView: android.view.View): boolean; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public onKeyLongPress(param0: number, param1: android.view.KeyEvent): boolean; public addView(child: android.view.View, index: number, params: android.view.ViewGroup.LayoutParams): void; public invalidateChildInParent(param0: number[], param1: android.graphics.Rect): android.view.ViewParent; public sendAccessibilityEvent(param0: number): void; public requestLayout(): void; public onNestedPrePerformAccessibilityAction(param0: android.view.View, param1: number, param2: android.os.Bundle): boolean; public onTextChanged(s: string, start: number, before: number, count: number): void; public getTextAlignment(): number; public unscheduleDrawable(who: android.graphics.drawable.Drawable): void; public invalidateChild(param0: android.view.View, param1: android.graphics.Rect): void; public showContextMenuForChild(originalView: android.view.View, x: number, y: number): boolean; public requestDisallowInterceptTouchEvent(disallowIntercept: boolean): void; public focusSearch(param0: android.view.View, param1: number): android.view.View; public bringChildToFront(child: android.view.View): void; public onTouchModeChanged(param0: boolean): void; public constructor(context: android.content.Context, attrs: android.util.AttributeSet, defStyleAttr: number); public addView(child: android.view.View, params: android.view.ViewGroup.LayoutParams): void; public constructor(context: android.content.Context, attrs: android.util.AttributeSet); public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public sendAccessibilityEventUnchecked(param0: android.view.accessibility.AccessibilityEvent): void; public notifySubtreeAccessibilityStateChanged(param0: android.view.View, param1: android.view.View, param2: number): void; public onFilterComplete(count: number): void; public isLayoutRequested(): boolean; public clearChildFocus(param0: android.view.View): void; public clearChildFocus(child: android.view.View): void; public onNestedPrePerformAccessibilityAction(target: android.view.View, action: number, args: android.os.Bundle): boolean; public onNestedPreScroll(param0: android.view.View, param1: number, param2: number, param3: number[]): void; public unscheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable): void; public onNestedPreFling(param0: android.view.View, param1: number, param2: number): boolean; public isLayoutDirectionResolved(): boolean; public focusSearch(focused: android.view.View, direction: number): android.view.View; public addView(child: android.view.View): void; public onTouchModeChanged(isInTouchMode: boolean): void; public afterTextChanged(s: android.text.Editable): void; public addView(child: android.view.View, width: number, height: number): void; public requestChildFocus(param0: android.view.View, param1: android.view.View): void; public invalidateChildInParent(location: number[], dirty: android.graphics.Rect): android.view.ViewParent; public bringChildToFront(param0: android.view.View): void; public constructor(context: android.content.Context); public beforeTextChanged(s: string, start: number, count: number, after: number): void; public onNestedPreFling(target: android.view.View, velocityX: number, velocityY: number): boolean; public onGlobalLayout(): void; public afterTextChanged(param0: android.text.Editable): void; public setHasDecor(hasTitle: boolean, hasButtons: boolean): void; public invalidateChild(child: android.view.View, dirty: android.graphics.Rect): void; public getChildVisibleRect(param0: android.view.View, param1: android.graphics.Rect, param2: android.graphics.Point): boolean; public getTextDirection(): number; public beforeTextChanged(param0: string, param1: number, param2: number, param3: number): void; public requestFitSystemWindows(): void; public onNestedScrollAccepted(param0: android.view.View, param1: android.view.View, param2: number): void; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public unscheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable): void; public requestTransparentRegion(param0: android.view.View): void; public onTextChanged(param0: string, param1: number, param2: number, param3: number): void; public onStartNestedScroll(param0: android.view.View, param1: android.view.View, param2: number): boolean; public onNestedScrollAccepted(child: android.view.View, target: android.view.View, axes: number): void; public canResolveTextDirection(): boolean; public requestDisallowInterceptTouchEvent(param0: boolean): void; public getParent(): android.view.ViewParent; public childHasTransientStateChanged(param0: android.view.View, param1: boolean): void; public createContextMenu(menu: android.view.ContextMenu): void; public scheduleDrawable(param0: android.graphics.drawable.Drawable, param1: java.lang.Runnable, param2: number): void; public onStopNestedScroll(param0: android.view.View): void; public updateViewLayout(view: android.view.View, params: android.view.ViewGroup.LayoutParams): void; public onNestedFling(target: android.view.View, velocityX: number, velocityY: number, consumed: boolean): boolean; public getChildVisibleRect(child: android.view.View, r: android.graphics.Rect, offset: android.graphics.Point): boolean; public canResolveLayoutDirection(): boolean; public invalidateDrawable(drawable: android.graphics.drawable.Drawable): void; public requestTransparentRegion(child: android.view.View): void; public removeView(param0: android.view.View): void; public childDrawableStateChanged(child: android.view.View): void; public scheduleDrawable(who: android.graphics.drawable.Drawable, what: java.lang.Runnable, when: number): void; public invalidateDrawable(param0: android.graphics.drawable.Drawable): void; public recomputeViewAttributes(param0: android.view.View): void; public focusableViewAvailable(param0: android.view.View): void; public focusSearch(direction: number): android.view.View; public requestSendAccessibilityEvent(param0: android.view.View, param1: android.view.accessibility.AccessibilityEvent): boolean; public startActionModeForChild(originalView: android.view.View, callback: android.view.ActionMode.Callback): android.view.ActionMode; } } } } } declare module androidx { export module appcompat { export module app { export class AlertDialog extends androidx.appcompat.app.AppCompatDialog implements android.content.DialogInterface { public static class: java.lang.Class<androidx.appcompat.app.AlertDialog>; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public setIconAttribute(attrId: number): void; public setMessage(message: string): void; public setIcon(resId: number): void; public onSupportActionModeStarted(param0: androidx.appcompat.view.ActionMode): void; public dismiss(): void; public setButton(whichButton: number, text: string, msg: android.os.Message): void; public onWindowStartingSupportActionMode(callback: androidx.appcompat.view.ActionMode.Callback): androidx.appcompat.view.ActionMode; public constructor(context: android.content.Context, theme: number); public onCreate(savedInstanceState: android.os.Bundle): void; public cancel(): void; public setIcon(icon: android.graphics.drawable.Drawable): void; public setTitle(title: string): void; public onKeyDown(keyCode: number, event: android.view.KeyEvent): boolean; public onSupportActionModeFinished(param0: androidx.appcompat.view.ActionMode): void; public setTitle(titleId: number): void; public setButton(whichButton: number, text: string, icon: android.graphics.drawable.Drawable, listener: android.content.DialogInterface.OnClickListener): void; public constructor(context: android.content.Context, cancelable: boolean, cancelListener: android.content.DialogInterface.OnCancelListener); public constructor(context: android.content.Context); public onWindowStartingSupportActionMode(param0: androidx.appcompat.view.ActionMode.Callback): androidx.appcompat.view.ActionMode; public setView(view: android.view.View, viewSpacingLeft: number, viewSpacingTop: number, viewSpacingRight: number, viewSpacingBottom: number): void; public getListView(): android.widget.ListView; public constructor(context: android.content.Context, themeResId: number); public setButton(whichButton: number, text: string, listener: android.content.DialogInterface.OnClickListener): void; public setCustomTitle(customTitleView: android.view.View): void; public setView(view: android.view.View): void; public getButton(whichButton: number): android.widget.Button; public onSupportActionModeStarted(mode: androidx.appcompat.view.ActionMode): void; public onSupportActionModeFinished(mode: androidx.appcompat.view.ActionMode): void; } export module AlertDialog { export class Builder extends java.lang.Object { public static class: java.lang.Class<androidx.appcompat.app.AlertDialog.Builder>; public setNeutralButton(text: string, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setCursor(cursor: android.database.Cursor, listener: android.content.DialogInterface.OnClickListener, labelColumn: string): androidx.appcompat.app.AlertDialog.Builder; public setCancelable(cancelable: boolean): androidx.appcompat.app.AlertDialog.Builder; public setTitle(title: string): androidx.appcompat.app.AlertDialog.Builder; public setSingleChoiceItems(cursor: android.database.Cursor, checkedItem: number, labelColumn: string, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setOnItemSelectedListener(listener: android.widget.AdapterView.OnItemSelectedListener): androidx.appcompat.app.AlertDialog.Builder; public setNegativeButton(text: string, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setMessage(messageId: number): androidx.appcompat.app.AlertDialog.Builder; public setNegativeButton(textId: number, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setSingleChoiceItems(items: string[], checkedItem: number, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setSingleChoiceItems(adapter: android.widget.ListAdapter, checkedItem: number, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public getContext(): android.content.Context; public setNeutralButtonIcon(icon: android.graphics.drawable.Drawable): androidx.appcompat.app.AlertDialog.Builder; /** @deprecated */ public setInverseBackgroundForced(useInverseBackground: boolean): androidx.appcompat.app.AlertDialog.Builder; public setItems(items: string[], listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setRecycleOnMeasureEnabled(enabled: boolean): androidx.appcompat.app.AlertDialog.Builder; public setNeutralButton(textId: number, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setMultiChoiceItems(items: string[], checkedItems: boolean[], listener: android.content.DialogInterface.OnMultiChoiceClickListener): androidx.appcompat.app.AlertDialog.Builder; public setPositiveButton(text: string, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setOnKeyListener(onKeyListener: android.content.DialogInterface.OnKeyListener): androidx.appcompat.app.AlertDialog.Builder; public setNegativeButtonIcon(icon: android.graphics.drawable.Drawable): androidx.appcompat.app.AlertDialog.Builder; public setMultiChoiceItems(cursor: android.database.Cursor, isCheckedColumn: string, labelColumn: string, listener: android.content.DialogInterface.OnMultiChoiceClickListener): androidx.appcompat.app.AlertDialog.Builder; public constructor(context: android.content.Context, themeResId: number); public constructor(context: android.content.Context); public setItems(itemsId: number, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setSingleChoiceItems(itemsId: number, checkedItem: number, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setIconAttribute(attrId: number): androidx.appcompat.app.AlertDialog.Builder; public setIcon(icon: android.graphics.drawable.Drawable): androidx.appcompat.app.AlertDialog.Builder; public setMultiChoiceItems(itemsId: number, checkedItems: boolean[], listener: android.content.DialogInterface.OnMultiChoiceClickListener): androidx.appcompat.app.AlertDialog.Builder; public show(): androidx.appcompat.app.AlertDialog; public setAdapter(adapter: android.widget.ListAdapter, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public create(): androidx.appcompat.app.AlertDialog; public setOnDismissListener(onDismissListener: android.content.DialogInterface.OnDismissListener): androidx.appcompat.app.AlertDialog.Builder; public setIcon(iconId: number): androidx.appcompat.app.AlertDialog.Builder; public setPositiveButtonIcon(icon: android.graphics.drawable.Drawable): androidx.appcompat.app.AlertDialog.Builder; public setOnCancelListener(onCancelListener: android.content.DialogInterface.OnCancelListener): androidx.appcompat.app.AlertDialog.Builder; public setTitle(titleId: number): androidx.appcompat.app.AlertDialog.Builder; /** @deprecated */ public setView(view: android.view.View, viewSpacingLeft: number, viewSpacingTop: number, viewSpacingRight: number, viewSpacingBottom: number): androidx.appcompat.app.AlertDialog.Builder; public setView(layoutResId: number): androidx.appcompat.app.AlertDialog.Builder; public setView(view: android.view.View): androidx.appcompat.app.AlertDialog.Builder; public setPositiveButton(textId: number, listener: android.content.DialogInterface.OnClickListener): androidx.appcompat.app.AlertDialog.Builder; public setCustomTitle(customTitleView: android.view.View): androidx.appcompat.app.AlertDialog.Builder; public setMessage(message: string): androidx.appcompat.app.AlertDialog.Builder; } } } } } declare module androidx { export module appcompat { export module app { export class AppCompatActivity extends androidx.fragment.app.FragmentActivity implements androidx.appcompat.app.AppCompatCallback, androidx.core.app.TaskStackBuilder.SupportParentable, androidx.appcompat.app.ActionBarDrawerToggle.DelegateProvider { public static class: java.lang.Class<androidx.appcompat.app.AppCompatActivity>; public setContentView(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void; public startSupportActionMode(callback: androidx.appcompat.view.ActionMode.Callback): androidx.appcompat.view.ActionMode; public onSupportNavigateUp(): boolean; public onActionModeStarted(mode: android.view.ActionMode): void; public attachBaseContext(newBase: android.content.Context): void; public onKeyUp(keyCode: number, event: android.view.KeyEvent): boolean; public onPanelClosed(featureId: number, menu: android.view.Menu): void; public onMenuItemSelected(featureId: number, item: android.view.MenuItem): boolean; public onCreateContextMenu(menu: android.view.ContextMenu, v: android.view.View, menuInfo: android.view.ContextMenu.ContextMenuInfo): void; public onSupportActionModeStarted(param0: androidx.appcompat.view.ActionMode): void; public setTheme(resId: number): void; public getLifecycle(): androidx.lifecycle.Lifecycle; public onKeyMultiple(keyCode: number, repeatCount: number, event: android.view.KeyEvent): boolean; public onWindowStartingSupportActionMode(callback: androidx.appcompat.view.ActionMode.Callback): androidx.appcompat.view.ActionMode; public supportNavigateUpTo(upIntent: android.content.Intent): void; public onProvideKeyboardShortcuts(data: java.util.List<any>, menu: android.view.Menu, deviceId: number): void; public onTrimMemory(param0: number): void; public dispatchGenericMotionEvent(ev: android.view.MotionEvent): boolean; public setContentView(layoutResID: number): void; public getSupportParentActivityIntent(): android.content.Intent; public findViewById(id: number): android.view.View; public onWindowAttributesChanged(params: android.view.WindowManager.LayoutParams): void; public onActionModeFinished(mode: android.view.ActionMode): void; public addOnContextAvailableListener(param0: androidx.activity.contextaware.OnContextAvailableListener): void; public getOnBackPressedDispatcher(): androidx.activity.OnBackPressedDispatcher; public onWindowAttributesChanged(param0: android.view.WindowManager.LayoutParams): void; public superDispatchKeyEvent(param0: android.view.KeyEvent): boolean; public onMenuOpened(featureId: number, menu: android.view.Menu): boolean; public onLocalesChanged(locales: androidx.core.os.LocaleListCompat): void; public onPostResume(): void; public onStart(): void; public dispatchKeyEvent(param0: android.view.KeyEvent): boolean; public onPostCreate(savedInstanceState: android.os.Bundle, persistentState: any): void; public getSupportActionBar(): androidx.appcompat.app.ActionBar; public onSupportActionModeStarted(mode: androidx.appcompat.view.ActionMode): void; public onKeyLongPress(keyCode: number, event: android.view.KeyEvent): boolean; public getViewModelStore(): androidx.lifecycle.ViewModelStore; 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 onTrimMemory(level: number): void; public getSavedStateRegistry(): androidx.savedstate.SavedStateRegistry; public getDelegate(): androidx.appcompat.app.AppCompatDelegate; public onCreatePanelView(param0: number): android.view.View; public onCreateContextMenu(param0: android.view.ContextMenu, param1: android.view.View, param2: android.view.ContextMenu.ContextMenuInfo): void; public onNightModeChanged(mode: number): void; /** @deprecated */ public setSupportProgressBarIndeterminateVisibility(visible: boolean): void; public onActionModeFinished(param0: android.view.ActionMode): void; public setContentView(param0: number): void; public onRequestPermissionsResult(param0: number, param1: string[], param2: number[]): void; public setTheme(resid: number): void; public addContentView(param0: android.view.View, param1: android.view.ViewGroup.LayoutParams): void; public constructor(base: android.content.Context); public getDefaultViewModelProviderFactory(): androidx.lifecycle.ViewModelProvider.Factory; public dispatchPopulateAccessibilityEvent(event: android.view.accessibility.AccessibilityEvent): boolean; public supportRequestWindowFeature(featureId: number): boolean; public getActivityResultRegistry(): androidx.activity.result.ActivityResultRegistry; public constructor(param0: number); public dispatchTrackballEvent(ev: android.view.MotionEvent): boolean; public onAttachedToWindow(): void; public registerForActivityResult(param0: andr