@icecreamcake/autojs6-dts
Version:
TypeScript Declarations for AutoJs6
963 lines (932 loc) • 133 kB
TypeScript
declare module androidx {
export module webkit {
export class CookieManagerCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.CookieManagerCompat>;
public static getCookieInfo(cookieManager: android.webkit.CookieManager, url: string): java.util.List<string>;
}
}
}
declare module androidx {
export module webkit {
export class DropDataContentProvider extends android.content.ContentProvider {
public static class: java.lang.Class<androidx.webkit.DropDataContentProvider>;
public query(param0: android.net.Uri, param1: string[], param2: string, param3: string[], param4: string): android.database.Cursor;
public delete(param0: android.net.Uri, param1: string, param2: string[]): number;
public query(uri: android.net.Uri, projection: string[], selection: string, selectionArgs: string[], sortOrder: string): android.database.Cursor;
public update(param0: android.net.Uri, param1: android.content.ContentValues, param2: string, param3: string[]): number;
public openFile(uri: android.net.Uri, mode: string): android.os.ParcelFileDescriptor;
public constructor();
public insert(param0: android.net.Uri, param1: android.content.ContentValues): android.net.Uri;
public getType(uri: android.net.Uri): string;
public getType(param0: android.net.Uri): string;
public onCreate(): boolean;
public openFile(uri: android.net.Uri, mode: string, signal: android.os.CancellationSignal): android.os.ParcelFileDescriptor;
public query(uri: android.net.Uri, projection: string[], selection: string, selectionArgs: string[], sortOrder: string, cancellationSignal: android.os.CancellationSignal): android.database.Cursor;
public onTrimMemory(param0: number): void;
public update(uri: android.net.Uri, contentValues: android.content.ContentValues, s: string, strings: string[]): number;
public onTrimMemory(level: number): void;
public delete(uri: android.net.Uri, selection: string, selectionArgs: string[]): number;
public call(method: string, arg: string, extras: android.os.Bundle): android.os.Bundle;
public insert(uri: android.net.Uri, contentValues: android.content.ContentValues): android.net.Uri;
}
}
}
declare module androidx {
export module webkit {
export abstract class JavaScriptReplyProxy extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.JavaScriptReplyProxy>;
public postMessage(param0: number[]): void;
public postMessage(param0: string): void;
public constructor();
}
}
}
declare module androidx {
export module webkit {
export class ProcessGlobalConfig extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ProcessGlobalConfig>;
public static apply(config: androidx.webkit.ProcessGlobalConfig): void;
public setDirectoryBasePaths(context: android.content.Context, dataDirectoryBasePath: java.io.File, cacheDirectoryBasePath: java.io.File): androidx.webkit.ProcessGlobalConfig;
public constructor();
public setDataDirectorySuffix(context: android.content.Context, suffix: string): androidx.webkit.ProcessGlobalConfig;
}
}
}
declare module androidx {
export module webkit {
export class ProxyConfig extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ProxyConfig>;
public static MATCH_HTTP: string;
public static MATCH_HTTPS: string;
public static MATCH_ALL_SCHEMES: string;
public isReverseBypassEnabled(): boolean;
public constructor(proxyRules: java.util.List<androidx.webkit.ProxyConfig.ProxyRule>, bypassRules: java.util.List<string>, reverseBypass: boolean);
public getProxyRules(): java.util.List<androidx.webkit.ProxyConfig.ProxyRule>;
public getBypassRules(): java.util.List<string>;
}
export module ProxyConfig {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ProxyConfig.Builder>;
public addProxyRule(proxyUrl: string): androidx.webkit.ProxyConfig.Builder;
public addDirect(): androidx.webkit.ProxyConfig.Builder;
public removeImplicitRules(): androidx.webkit.ProxyConfig.Builder;
public constructor(proxyConfig: androidx.webkit.ProxyConfig);
public addBypassRule(bypassRule: string): androidx.webkit.ProxyConfig.Builder;
public addProxyRule(proxyUrl: string, schemeFilter: string): androidx.webkit.ProxyConfig.Builder;
public addDirect(schemeFilter: string): androidx.webkit.ProxyConfig.Builder;
public bypassSimpleHostnames(): androidx.webkit.ProxyConfig.Builder;
public setReverseBypassEnabled(reverseBypass: boolean): androidx.webkit.ProxyConfig.Builder;
public build(): androidx.webkit.ProxyConfig;
public constructor();
}
export class ProxyRule extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ProxyConfig.ProxyRule>;
public getSchemeFilter(): string;
public getUrl(): string;
public constructor(schemeFilter: string, url: string);
public constructor(url: string);
}
export class ProxyScheme extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.ProxyConfig.ProxyScheme>;
/**
* Constructs a new instance of the androidx.webkit.ProxyConfig$ProxyScheme 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export abstract class ProxyController extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ProxyController>;
public clearProxyOverride(param0: java.util.concurrent.Executor, param1: java.lang.Runnable): void;
public constructor();
public static getInstance(): androidx.webkit.ProxyController;
public setProxyOverride(param0: androidx.webkit.ProxyConfig, param1: java.util.concurrent.Executor, param2: java.lang.Runnable): void;
}
export module ProxyController {
export class LAZY_HOLDER extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ProxyController.LAZY_HOLDER>;
}
}
}
}
declare module androidx {
export module webkit {
export abstract class SafeBrowsingResponseCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.SafeBrowsingResponseCompat>;
public showInterstitial(param0: boolean): void;
public backToSafety(param0: boolean): void;
public constructor();
public proceed(param0: boolean): void;
}
}
}
declare module androidx {
export module webkit {
export abstract class ScriptHandler extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ScriptHandler>;
public constructor();
public remove(): void;
}
}
}
declare module androidx {
export module webkit {
export abstract class ServiceWorkerClientCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ServiceWorkerClientCompat>;
public constructor();
public shouldInterceptRequest(param0: android.webkit.WebResourceRequest): android.webkit.WebResourceResponse;
}
}
}
declare module androidx {
export module webkit {
export abstract class ServiceWorkerControllerCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ServiceWorkerControllerCompat>;
public getServiceWorkerWebSettings(): androidx.webkit.ServiceWorkerWebSettingsCompat;
public static getInstance(): androidx.webkit.ServiceWorkerControllerCompat;
public setServiceWorkerClient(param0: androidx.webkit.ServiceWorkerClientCompat): void;
public constructor();
}
export module ServiceWorkerControllerCompat {
export class LAZY_HOLDER extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ServiceWorkerControllerCompat.LAZY_HOLDER>;
}
}
}
}
declare module androidx {
export module webkit {
export abstract class ServiceWorkerWebSettingsCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.ServiceWorkerWebSettingsCompat>;
public getBlockNetworkLoads(): boolean;
public setCacheMode(param0: number): void;
public setAllowFileAccess(param0: boolean): void;
public setBlockNetworkLoads(param0: boolean): void;
public getRequestedWithHeaderOriginAllowList(): java.util.Set<string>;
public setAllowContentAccess(param0: boolean): void;
public getAllowContentAccess(): boolean;
public constructor();
public getAllowFileAccess(): boolean;
public getCacheMode(): number;
public setRequestedWithHeaderOriginAllowList(param0: java.util.Set<string>): void;
}
export module ServiceWorkerWebSettingsCompat {
export class CacheMode extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.ServiceWorkerWebSettingsCompat.CacheMode>;
/**
* Constructs a new instance of the androidx.webkit.ServiceWorkerWebSettingsCompat$CacheMode 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export class TracingConfig extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.TracingConfig>;
public static CATEGORIES_NONE: number;
public static CATEGORIES_ALL: number;
public static CATEGORIES_ANDROID_WEBVIEW: number;
public static CATEGORIES_WEB_DEVELOPER: number;
public static CATEGORIES_INPUT_LATENCY: number;
public static CATEGORIES_RENDERING: number;
public static CATEGORIES_JAVASCRIPT_AND_RENDERING: number;
public static CATEGORIES_FRAME_VIEWER: number;
public static RECORD_UNTIL_FULL: number;
public static RECORD_CONTINUOUSLY: number;
public constructor(predefinedCategories: number, customIncludedCategories: java.util.List<string>, tracingMode: number);
public getCustomIncludedCategories(): java.util.List<string>;
public getTracingMode(): number;
public getPredefinedCategories(): number;
}
export module TracingConfig {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.TracingConfig.Builder>;
public addCategories(...predefinedCategories: number[]): androidx.webkit.TracingConfig.Builder;
public addCategories(categories: java.util.Collection<string>): androidx.webkit.TracingConfig.Builder;
public setTracingMode(tracingMode: number): androidx.webkit.TracingConfig.Builder;
public build(): androidx.webkit.TracingConfig;
public addCategories(...categories: string[]): androidx.webkit.TracingConfig.Builder;
public constructor();
}
export class PredefinedCategories extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.TracingConfig.PredefinedCategories>;
/**
* Constructs a new instance of the androidx.webkit.TracingConfig$PredefinedCategories 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
export class TracingMode extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.TracingConfig.TracingMode>;
/**
* Constructs a new instance of the androidx.webkit.TracingConfig$TracingMode 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export abstract class TracingController extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.TracingController>;
public static getInstance(): androidx.webkit.TracingController;
public constructor();
public start(param0: androidx.webkit.TracingConfig): void;
public isTracing(): boolean;
public stop(param0: java.io.OutputStream, param1: java.util.concurrent.Executor): boolean;
}
export module TracingController {
export class LAZY_HOLDER extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.TracingController.LAZY_HOLDER>;
}
}
}
}
declare module androidx {
export module webkit {
export class WebMessageCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebMessageCompat>;
public static TYPE_STRING: number;
public static TYPE_ARRAY_BUFFER: number;
public getType(): number;
public getData(): string;
public getArrayBuffer(): number[];
public getPorts(): androidx.webkit.WebMessagePortCompat[];
public constructor(arrayBuffer: number[], ports: androidx.webkit.WebMessagePortCompat[]);
public constructor(data: string);
public constructor(data: string, ports: androidx.webkit.WebMessagePortCompat[]);
public constructor(arrayBuffer: number[]);
}
export module WebMessageCompat {
export class Type extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebMessageCompat.Type>;
/**
* Constructs a new instance of the androidx.webkit.WebMessageCompat$Type 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export abstract class WebMessagePortCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebMessagePortCompat>;
public getFrameworkPort(): android.webkit.WebMessagePort;
public getInvocationHandler(): java.lang.reflect.InvocationHandler;
public postMessage(param0: androidx.webkit.WebMessageCompat): void;
public setWebMessageCallback(param0: androidx.webkit.WebMessagePortCompat.WebMessageCallbackCompat): void;
public constructor();
public close(): void;
public setWebMessageCallback(param0: android.os.Handler, param1: androidx.webkit.WebMessagePortCompat.WebMessageCallbackCompat): void;
}
export module WebMessagePortCompat {
export abstract class WebMessageCallbackCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebMessagePortCompat.WebMessageCallbackCompat>;
public onMessage(port: androidx.webkit.WebMessagePortCompat, message: androidx.webkit.WebMessageCompat): void;
public constructor();
}
}
}
}
declare module androidx {
export module webkit {
export abstract class WebResourceErrorCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebResourceErrorCompat>;
public getErrorCode(): number;
public getDescription(): string;
public constructor();
}
export module WebResourceErrorCompat {
export class NetErrorCode extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebResourceErrorCompat.NetErrorCode>;
/**
* Constructs a new instance of the androidx.webkit.WebResourceErrorCompat$NetErrorCode 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export class WebResourceRequestCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebResourceRequestCompat>;
public static isRedirect(request: android.webkit.WebResourceRequest): boolean;
}
}
}
declare module androidx {
export module webkit {
export class WebSettingsCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebSettingsCompat>;
public static FORCE_DARK_OFF: number;
public static FORCE_DARK_AUTO: number;
public static FORCE_DARK_ON: number;
public static DARK_STRATEGY_USER_AGENT_DARKENING_ONLY: number;
public static DARK_STRATEGY_WEB_THEME_DARKENING_ONLY: number;
public static DARK_STRATEGY_PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING: number;
/** @deprecated */
public static setWillSuppressErrorPage(settings: android.webkit.WebSettings, suppressed: boolean): void;
public static setEnterpriseAuthenticationAppLinkPolicyEnabled(settings: android.webkit.WebSettings, enabled: boolean): void;
public static getOffscreenPreRaster(settings: android.webkit.WebSettings): boolean;
public static getSafeBrowsingEnabled(settings: android.webkit.WebSettings): boolean;
public static setDisabledActionModeMenuItems(settings: android.webkit.WebSettings, menuItems: number): void;
public static getEnterpriseAuthenticationAppLinkPolicyEnabled(settings: android.webkit.WebSettings): boolean;
/** @deprecated */
public static getForceDark(settings: android.webkit.WebSettings): number;
/** @deprecated */
public static getForceDarkStrategy(settings: android.webkit.WebSettings): number;
/** @deprecated */
public static setForceDarkStrategy(settings: android.webkit.WebSettings, forceDarkBehavior: number): void;
public static setRequestedWithHeaderOriginAllowList(settings: android.webkit.WebSettings, allowList: java.util.Set<string>): void;
/** @deprecated */
public static setForceDark(settings: android.webkit.WebSettings, forceDarkMode: number): void;
public static getDisabledActionModeMenuItems(settings: android.webkit.WebSettings): number;
/** @deprecated */
public static willSuppressErrorPage(settings: android.webkit.WebSettings): boolean;
public static setSafeBrowsingEnabled(settings: android.webkit.WebSettings, enabled: boolean): void;
public static setOffscreenPreRaster(settings: android.webkit.WebSettings, enabled: boolean): void;
public static getRequestedWithHeaderOriginAllowList(settings: android.webkit.WebSettings): java.util.Set<string>;
public static setAlgorithmicDarkeningAllowed(settings: android.webkit.WebSettings, allow: boolean): void;
public static isAlgorithmicDarkeningAllowed(settings: android.webkit.WebSettings): boolean;
}
export module WebSettingsCompat {
export class ForceDark extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebSettingsCompat.ForceDark>;
/**
* Constructs a new instance of the androidx.webkit.WebSettingsCompat$ForceDark 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
export class ForceDarkStrategy extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebSettingsCompat.ForceDarkStrategy>;
/**
* Constructs a new instance of the androidx.webkit.WebSettingsCompat$ForceDarkStrategy 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
export class MenuItemFlags extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebSettingsCompat.MenuItemFlags>;
/**
* Constructs a new instance of the androidx.webkit.WebSettingsCompat$MenuItemFlags 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export class WebViewAssetLoader extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewAssetLoader>;
public static DEFAULT_DOMAIN: string;
public shouldInterceptRequest(url: android.net.Uri): android.webkit.WebResourceResponse;
}
export module WebViewAssetLoader {
export class AssetsPathHandler extends java.lang.Object implements androidx.webkit.WebViewAssetLoader.PathHandler {
public static class: java.lang.Class<androidx.webkit.WebViewAssetLoader.AssetsPathHandler>;
public handle(param0: string): android.webkit.WebResourceResponse;
public constructor(context: android.content.Context);
public handle(path: string): android.webkit.WebResourceResponse;
}
export class Builder extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewAssetLoader.Builder>;
public addPathHandler(path: string, handler: androidx.webkit.WebViewAssetLoader.PathHandler): androidx.webkit.WebViewAssetLoader.Builder;
public setHttpAllowed(httpAllowed: boolean): androidx.webkit.WebViewAssetLoader.Builder;
public setDomain(domain: string): androidx.webkit.WebViewAssetLoader.Builder;
public build(): androidx.webkit.WebViewAssetLoader;
public constructor();
}
export class InternalStoragePathHandler extends java.lang.Object implements androidx.webkit.WebViewAssetLoader.PathHandler {
public static class: java.lang.Class<androidx.webkit.WebViewAssetLoader.InternalStoragePathHandler>;
public handle(param0: string): android.webkit.WebResourceResponse;
public handle(path: string): android.webkit.WebResourceResponse;
public constructor(context: android.content.Context, directory: java.io.File);
}
export class PathHandler extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewAssetLoader.PathHandler>;
/**
* Constructs a new instance of the androidx.webkit.WebViewAssetLoader$PathHandler interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
handle(param0: string): android.webkit.WebResourceResponse;
});
public constructor();
public handle(param0: string): android.webkit.WebResourceResponse;
}
export class PathMatcher extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewAssetLoader.PathMatcher>;
public getSuffixPath(path: string): string;
public match(uri: android.net.Uri): androidx.webkit.WebViewAssetLoader.PathHandler;
}
export class ResourcesPathHandler extends java.lang.Object implements androidx.webkit.WebViewAssetLoader.PathHandler {
public static class: java.lang.Class<androidx.webkit.WebViewAssetLoader.ResourcesPathHandler>;
public handle(param0: string): android.webkit.WebResourceResponse;
public constructor(context: android.content.Context);
public handle(path: string): android.webkit.WebResourceResponse;
}
}
}
}
declare module androidx {
export module webkit {
export class WebViewClientCompat extends android.webkit.WebViewClient implements org.chromium.support_lib_boundary.WebViewClientBoundaryInterface {
public static class: java.lang.Class<androidx.webkit.WebViewClientCompat>;
public onReceivedHttpError(param0: android.webkit.WebView, param1: android.webkit.WebResourceRequest, param2: android.webkit.WebResourceResponse): void;
public onSafeBrowsingHit(view: android.webkit.WebView, request: android.webkit.WebResourceRequest, threatType: number, handler: java.lang.reflect.InvocationHandler): void;
public shouldOverrideUrlLoading(param0: android.webkit.WebView, param1: android.webkit.WebResourceRequest): boolean;
public constructor();
/** @deprecated */
public onReceivedError(view: android.webkit.WebView, errorCode: number, description: string, failingUrl: string): void;
public onSafeBrowsingHit(view: android.webkit.WebView, request: android.webkit.WebResourceRequest, threatType: number, response: android.webkit.SafeBrowsingResponse): void;
public onPageCommitVisible(param0: android.webkit.WebView, param1: string): void;
public onSafeBrowsingHit(view: android.webkit.WebView, request: android.webkit.WebResourceRequest, threatType: number, callback: androidx.webkit.SafeBrowsingResponseCompat): void;
public onReceivedError(view: android.webkit.WebView, request: android.webkit.WebResourceRequest, error: androidx.webkit.WebResourceErrorCompat): void;
public onReceivedError(view: android.webkit.WebView, request: android.webkit.WebResourceRequest, handler: java.lang.reflect.InvocationHandler): void;
public onSafeBrowsingHit(param0: android.webkit.WebView, param1: android.webkit.WebResourceRequest, param2: number, param3: java.lang.reflect.InvocationHandler): void;
public getSupportedFeatures(): string[];
public onWebAuthnIntent(view: android.webkit.WebView, intent: android.app.PendingIntent, callback: java.lang.reflect.InvocationHandler): boolean;
public onPageCommitVisible(view: android.webkit.WebView, url: string): void;
public onReceivedError(view: android.webkit.WebView, request: android.webkit.WebResourceRequest, error: android.webkit.WebResourceError): void;
public onReceivedHttpError(view: android.webkit.WebView, request: android.webkit.WebResourceRequest, errorResponse: android.webkit.WebResourceResponse): void;
public shouldOverrideUrlLoading(view: android.webkit.WebView, request: android.webkit.WebResourceRequest): boolean;
public onWebAuthnIntent(param0: android.webkit.WebView, param1: android.app.PendingIntent, param2: java.lang.reflect.InvocationHandler): boolean;
/** @deprecated */
public shouldOverrideUrlLoading(view: android.webkit.WebView, url: string): boolean;
public onReceivedError(param0: android.webkit.WebView, param1: android.webkit.WebResourceRequest, param2: java.lang.reflect.InvocationHandler): void;
}
export module WebViewClientCompat {
export class SafeBrowsingThreat extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebViewClientCompat.SafeBrowsingThreat>;
/**
* Constructs a new instance of the androidx.webkit.WebViewClientCompat$SafeBrowsingThreat 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export class WebViewCompat extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewCompat>;
public static postWebMessage(webview: android.webkit.WebView, message: androidx.webkit.WebMessageCompat, targetOrigin: android.net.Uri): void;
public static getWebChromeClient(webview: android.webkit.WebView): android.webkit.WebChromeClient;
public static getCurrentLoadedWebViewPackage(): android.content.pm.PackageInfo;
public static postVisualStateCallback(webview: android.webkit.WebView, requestId: number, param2: androidx.webkit.WebViewCompat.VisualStateCallback): void;
public static getWebViewRenderProcessClient(webview: android.webkit.WebView): androidx.webkit.WebViewRenderProcessClient;
public static getSafeBrowsingPrivacyPolicyUrl(): android.net.Uri;
public static setWebViewRenderProcessClient(webview: android.webkit.WebView, executor: java.util.concurrent.Executor, webViewRenderProcessClient: androidx.webkit.WebViewRenderProcessClient): void;
/** @deprecated */
public static addDocumentStartJavaScript(webview: android.webkit.WebView, script: string, allowedOriginRules: java.util.Set<string>): androidx.webkit.ScriptHandler;
public static addWebMessageListener(webView: android.webkit.WebView, jsObjectName: string, allowedOriginRules: java.util.Set<string>, listener: androidx.webkit.WebViewCompat.WebMessageListener): void;
public static removeWebMessageListener(webview: android.webkit.WebView, jsObjectName: string): void;
public static setSafeBrowsingAllowlist(hosts: java.util.Set<string>, callback: android.webkit.ValueCallback<java.lang.Boolean>): void;
/** @deprecated */
public static setSafeBrowsingWhitelist(hosts: java.util.List<string>, callback: android.webkit.ValueCallback<java.lang.Boolean>): void;
public static createWebMessageChannel(webview: android.webkit.WebView): androidx.webkit.WebMessagePortCompat[];
public static getWebViewRenderProcess(webview: android.webkit.WebView): androidx.webkit.WebViewRenderProcess;
public static getVariationsHeader(): string;
public static startSafeBrowsing(context: android.content.Context, callback: android.webkit.ValueCallback<java.lang.Boolean>): void;
public static getCurrentWebViewPackage(context: android.content.Context): android.content.pm.PackageInfo;
public static getWebViewClient(webview: android.webkit.WebView): android.webkit.WebViewClient;
public static setWebViewRenderProcessClient(webview: android.webkit.WebView, webViewRenderProcessClient: androidx.webkit.WebViewRenderProcessClient): void;
public static isMultiProcessEnabled(): boolean;
}
export module WebViewCompat {
export class VisualStateCallback extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewCompat.VisualStateCallback>;
/**
* Constructs a new instance of the androidx.webkit.WebViewCompat$VisualStateCallback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onComplete(param0: number): void;
});
public constructor();
public onComplete(param0: number): void;
}
export class WebMessageListener extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewCompat.WebMessageListener>;
/**
* Constructs a new instance of the androidx.webkit.WebViewCompat$WebMessageListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onPostMessage(param0: android.webkit.WebView, param1: androidx.webkit.WebMessageCompat, param2: android.net.Uri, param3: boolean, param4: androidx.webkit.JavaScriptReplyProxy): void;
});
public constructor();
public onPostMessage(param0: android.webkit.WebView, param1: androidx.webkit.WebMessageCompat, param2: android.net.Uri, param3: boolean, param4: androidx.webkit.JavaScriptReplyProxy): void;
}
}
}
}
declare module androidx {
export module webkit {
export class WebViewFeature extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewFeature>;
public static VISUAL_STATE_CALLBACK: string;
public static OFF_SCREEN_PRERASTER: string;
public static SAFE_BROWSING_ENABLE: string;
public static DISABLED_ACTION_MODE_MENU_ITEMS: string;
public static START_SAFE_BROWSING: string;
public static SAFE_BROWSING_ALLOWLIST: string;
public static SAFE_BROWSING_WHITELIST: string;
public static SAFE_BROWSING_PRIVACY_POLICY_URL: string;
public static SERVICE_WORKER_BASIC_USAGE: string;
public static SERVICE_WORKER_CACHE_MODE: string;
public static SERVICE_WORKER_CONTENT_ACCESS: string;
public static SERVICE_WORKER_FILE_ACCESS: string;
public static SERVICE_WORKER_BLOCK_NETWORK_LOADS: string;
public static SERVICE_WORKER_SHOULD_INTERCEPT_REQUEST: string;
public static RECEIVE_WEB_RESOURCE_ERROR: string;
public static RECEIVE_HTTP_ERROR: string;
public static SHOULD_OVERRIDE_WITH_REDIRECTS: string;
public static SAFE_BROWSING_HIT: string;
public static TRACING_CONTROLLER_BASIC_USAGE: string;
public static WEB_RESOURCE_REQUEST_IS_REDIRECT: string;
public static WEB_RESOURCE_ERROR_GET_DESCRIPTION: string;
public static WEB_RESOURCE_ERROR_GET_CODE: string;
public static SAFE_BROWSING_RESPONSE_BACK_TO_SAFETY: string;
public static SAFE_BROWSING_RESPONSE_PROCEED: string;
public static SAFE_BROWSING_RESPONSE_SHOW_INTERSTITIAL: string;
public static WEB_MESSAGE_PORT_POST_MESSAGE: string;
public static WEB_MESSAGE_PORT_CLOSE: string;
public static WEB_MESSAGE_ARRAY_BUFFER: string;
public static WEB_MESSAGE_PORT_SET_MESSAGE_CALLBACK: string;
public static CREATE_WEB_MESSAGE_CHANNEL: string;
public static POST_WEB_MESSAGE: string;
public static WEB_MESSAGE_CALLBACK_ON_MESSAGE: string;
public static GET_WEB_VIEW_CLIENT: string;
public static GET_WEB_CHROME_CLIENT: string;
public static GET_WEB_VIEW_RENDERER: string;
public static WEB_VIEW_RENDERER_TERMINATE: string;
public static WEB_VIEW_RENDERER_CLIENT_BASIC_USAGE: string;
public static PROXY_OVERRIDE: string;
public static SUPPRESS_ERROR_PAGE: string;
public static MULTI_PROCESS: string;
public static FORCE_DARK: string;
public static FORCE_DARK_STRATEGY: string;
public static ALGORITHMIC_DARKENING: string;
public static WEB_MESSAGE_LISTENER: string;
public static DOCUMENT_START_SCRIPT: string;
public static PROXY_OVERRIDE_REVERSE_BYPASS: string;
public static GET_VARIATIONS_HEADER: string;
public static ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY: string;
public static GET_COOKIE_INFO: string;
public static STARTUP_FEATURE_SET_DATA_DIRECTORY_SUFFIX: string;
public static STARTUP_FEATURE_SET_DIRECTORY_BASE_PATHS: string;
public static REQUESTED_WITH_HEADER_ALLOW_LIST: string;
public static isFeatureSupported(feature: string): boolean;
public static isStartupFeatureSupported(context: android.content.Context, startupFeature: string): boolean;
}
export module WebViewFeature {
export class WebViewStartupFeature extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebViewFeature.WebViewStartupFeature>;
/**
* Constructs a new instance of the androidx.webkit.WebViewFeature$WebViewStartupFeature 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
export class WebViewSupportFeature extends java.lang.Object implements java.lang.annotation.Annotation {
public static class: java.lang.Class<androidx.webkit.WebViewFeature.WebViewSupportFeature>;
/**
* Constructs a new instance of the androidx.webkit.WebViewFeature$WebViewSupportFeature 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(obj: any): boolean;
public hashCode(): number;
public equals(param0: any): boolean;
public annotationType(): java.lang.Class<any>;
public toString(): string;
}
}
}
}
declare module androidx {
export module webkit {
export abstract class WebViewRenderProcess extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewRenderProcess>;
public terminate(): boolean;
public constructor();
}
}
}
declare module androidx {
export module webkit {
export abstract class WebViewRenderProcessClient extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.WebViewRenderProcessClient>;
public onRenderProcessUnresponsive(param0: android.webkit.WebView, param1: androidx.webkit.WebViewRenderProcess): void;
public onRenderProcessResponsive(param0: android.webkit.WebView, param1: androidx.webkit.WebViewRenderProcess): void;
public constructor();
}
}
}
declare module androidx {
export module webkit {
export module internal {
export abstract class ApiFeature extends java.lang.Object implements androidx.webkit.internal.ConditionallySupportedFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature>;
public isSupported(): boolean;
public getPublicFeatureName(): string;
public isSupportedByWebView(): boolean;
public isSupportedByFramework(): boolean;
public static values(): java.util.Set<androidx.webkit.internal.ApiFeature>;
public static getWebViewApkFeaturesForTesting(): java.util.Set<string>;
}
export module ApiFeature {
export class LAZY_HOLDER extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.LAZY_HOLDER>;
}
export class M extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.M>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
export class N extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.N>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
export class NoFramework extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.NoFramework>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
export class O extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.O>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
export class O_MR1 extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.O_MR1>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
export class P extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.P>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
export class Q extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.Q>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
export class T extends androidx.webkit.internal.ApiFeature {
public static class: java.lang.Class<androidx.webkit.internal.ApiFeature.T>;
public isSupported(): boolean;
public isSupportedByFramework(): boolean;
public getPublicFeatureName(): string;
}
}
}
}
}
declare module androidx {
export module webkit {
export module internal {
export class ApiHelperForLollipop extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.internal.ApiHelperForLollipop>;
public static getUrl(webResourceRequest: android.webkit.WebResourceRequest): android.net.Uri;
public static isForMainFrame(webResourceRequest: android.webkit.WebResourceRequest): boolean;
}
}
}
}
declare module androidx {
export module webkit {
export module internal {
export class ApiHelperForM extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.internal.ApiHelperForM>;
public static postVisualStateCallback(webView: android.webkit.WebView, requestId: number, param2: androidx.webkit.WebViewCompat.VisualStateCallback): void;
public static setOffscreenPreRaster(webSettings: android.webkit.WebSettings, b: boolean): void;
public static getDescription(webResourceError: android.webkit.WebResourceError): string;
public static postWebMessage(webView: android.webkit.WebView, message: android.webkit.WebMessage, targetOrigin: android.net.Uri): void;
public static postMessage(webMessagePort: android.webkit.WebMessagePort, webMessage: android.webkit.WebMessage): void;
public static setWebMessageCallback(frameworksImpl: android.webkit.WebMessagePort, callback: androidx.webkit.WebMessagePortCompat.WebMessageCallbackCompat): void;
public static createWebMessage(message: androidx.webkit.WebMessageCompat): android.webkit.WebMessage;
public static close(webMessagePort: android.webkit.WebMessagePort): void;
public static setWebMessageCallback(frameworksImpl: android.webkit.WebMessagePort, callback: androidx.webkit.WebMessagePortCompat.WebMessageCallbackCompat, handler: android.os.Handler): void;
public static getErrorCode(webResourceError: android.webkit.WebResourceError): number;
public static createWebMessageChannel(webView: android.webkit.WebView): android.webkit.WebMessagePort[];
public static createWebMessageCompat(webMessage: android.webkit.WebMessage): androidx.webkit.WebMessageCompat;
public static getOffscreenPreRaster(webSettings: android.webkit.WebSettings): boolean;
}
}
}
}
declare module androidx {
export module webkit {
export module internal {
export class ApiHelperForN extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.internal.ApiHelperForN>;
public static setCacheMode(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings, cacheMode: number): void;
public static setBlockNetworkLoads(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings, blockNetworkLoads: boolean): void;
public static getCacheMode(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings): number;
public static getAllowContentAccess(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings): boolean;
public static getServiceWorkerWebSettings(serviceWorkerController: android.webkit.ServiceWorkerController): android.webkit.ServiceWorkerWebSettings;
public static setAllowFileAccess(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings, allowFileAccess: boolean): void;
public static setServiceWorkerClientCompat(serviceWorkerController: android.webkit.ServiceWorkerController, serviceWorkerClientCompat: androidx.webkit.ServiceWorkerClientCompat): void;
public static getAllowFileAccess(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings): boolean;
public static getServiceWorkerWebSettingsImpl(serviceWorkerController: android.webkit.ServiceWorkerController): androidx.webkit.internal.ServiceWorkerWebSettingsImpl;
public static getBlockNetworkLoads(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings): boolean;
public static setServiceWorkerClient(serviceWorkerController: android.webkit.ServiceWorkerController, serviceWorkerClient: android.webkit.ServiceWorkerClient): void;
public static isRedirect(webResourceRequest: android.webkit.WebResourceRequest): boolean;
public static getServiceWorkerControllerInstance(): android.webkit.ServiceWorkerController;
public static getDataDir(context: android.content.Context): java.io.File;
public static getDisabledActionModeMenuItems(webSettings: android.webkit.WebSettings): number;
public static setAllowContentAccess(serviceWorkerWebSettings: android.webkit.ServiceWorkerWebSettings, allowContentAccess: boolean): void;
public static setDisabledActionModeMenuItems(webSettings: android.webkit.WebSettings, i: number): void;
}
}
}
}
declare module androidx {
export module webkit {
export module internal {
export class ApiHelperForO extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.internal.ApiHelperForO>;
public static setSafeBrowsingEnabled(webSettings: android.webkit.WebSettings, b: boolean): void;
public static getWebViewClient(webView: android.webkit.WebView): android.webkit.WebViewClient;
public static getCurrentWebViewPackage(): android.content.pm.PackageInfo;
public static getSafeBrowsingEnabled(webSettings: android.webkit.WebSettings): boolean;
public static getWebChromeClient(webView: android.webkit.WebView): android.webkit.WebChromeClient;
}
}
}
}
declare module androidx {
export module webkit {
export module internal {
export class ApiHelperForOMR1 extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.internal.ApiHelperForOMR1>;
public static getSafeBrowsingPrivacyPolicyUrl(): android.net.Uri;
public static startSafeBrowsing(context: android.content.Context, callback: android.webkit.ValueCallback<java.lang.Boolean>): void;
public static setSafeBrowsingWhitelist(hosts: java.util.List<string>, callback: android.webkit.ValueCallback<java.lang.Boolean>): void;
public static showInterstitial(safeBrowsingResponse: android.webkit.SafeBrowsingResponse, showInterstitial: boolean): void;
public static proceed(frameworksImpl: android.webkit.SafeBrowsingResponse, proceed: boolean): void;
public static backToSafety(safeBrowsingResponse: android.webkit.SafeBrowsingResponse, backToSafety: boolean): void;
}
}
}
}
declare module androidx {
export module webkit {
export module internal {
export class ApiHelperForP extends java.lang.Object {
public static class: java.lang.Class<androidx.webkit.internal.ApiHelperForP>;
public static getTracingControllerInstance(): android.webkit.TracingController;
public static start(tracingController: android.webkit.TracingController, tracingConfig: androidx.webkit.TracingConfig): void;
public static getWebViewClassLoader(): java.lang.ClassLoader;
public static getWebViewLooper(webView: android.webkit.WebView): android.os.Looper;
public static stop(tracingController: android.webkit.TracingController, os: java.io.OutputStream, ex: java.util.concurrent.Executor): boolean;
public static setDataDirectorySuffix(suffix: string): void;
public static isTracing(tracingController: android.webkit.TracingController): boolean;
}
}
}
}
declare module androidx {
export module webkit {
export module internal {
export class ApiHelperForQ extends java.lang.Object {
public static class: java.lang.Class