@nativescript-community/ui-image
Version:
Advanced and efficient image display plugin which uses Glide (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.
871 lines (846 loc) • 475 kB
TypeScript
/* eslint-disable @typescript-eslint/unified-signatures */
/* eslint-disable @typescript-eslint/adjacent-overload-signatures */
/* eslint-disable no-redeclare */
declare namespace com {
export namespace bumptech {
export namespace glide {
export abstract class GeneratedAppGlideModule extends com.bumptech.glide.module.AppGlideModule {
public static class: java.lang.Class<com.bumptech.glide.GeneratedAppGlideModule>;
public registerComponents(param0: globalAndroid.content.Context, param1: com.bumptech.glide.Glide, param2: com.bumptech.glide.Registry): void;
public applyOptions(param0: globalAndroid.content.Context, param1: com.bumptech.glide.GlideBuilder): void;
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class GenericTransitionOptions<TranscodeType> extends com.bumptech.glide.TransitionOptions<com.bumptech.glide.GenericTransitionOptions<any>,any> {
public static class: java.lang.Class<com.bumptech.glide.GenericTransitionOptions<any>>;
public static with(viewAnimationId: number): com.bumptech.glide.GenericTransitionOptions<any>;
public static with(animator: com.bumptech.glide.request.transition.ViewPropertyTransition.Animator): com.bumptech.glide.GenericTransitionOptions<any>;
public hashCode(): number;
public static with(transitionFactory: com.bumptech.glide.request.transition.TransitionFactory<any>): com.bumptech.glide.GenericTransitionOptions<any>;
public equals(o: any): boolean;
public static withNoTransition(): com.bumptech.glide.GenericTransitionOptions<any>;
public constructor();
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class Glide {
public static class: java.lang.Class<com.bumptech.glide.Glide>;
public trimMemory(this_: number): void;
public static enableHardwareBitmaps(): void;
public getRegistry(): com.bumptech.glide.Registry;
public getArrayPool(): com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool;
public static with(view: globalAndroid.view.View): com.bumptech.glide.RequestManager;
/** @deprecated */
public static with(activity: globalAndroid.app.Activity): com.bumptech.glide.RequestManager;
public onTrimMemory(level: number): void;
public static getPhotoCacheDir(result: globalAndroid.content.Context, context: string): java.io.File;
/** @deprecated */
public static init(glide: com.bumptech.glide.Glide): void;
public static with(context: globalAndroid.content.Context): com.bumptech.glide.RequestManager;
public setMemoryCategory(memoryCategory: com.bumptech.glide.MemoryCategory): com.bumptech.glide.MemoryCategory;
public static init(context: globalAndroid.content.Context, builder: com.bumptech.glide.GlideBuilder): void;
/** @deprecated */
public static with(fragment: globalAndroid.app.Fragment): com.bumptech.glide.RequestManager;
public static with(fragment: androidx.fragment.app.Fragment): com.bumptech.glide.RequestManager;
public static isInitialized(): boolean;
public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void;
public getContext(): globalAndroid.content.Context;
public onLowMemory(): void;
public static get(annotationGeneratedModule: globalAndroid.content.Context): com.bumptech.glide.Glide;
public static getPhotoCacheDir(context: globalAndroid.content.Context): java.io.File;
public static with(activity: androidx.fragment.app.FragmentActivity): com.bumptech.glide.RequestManager;
public preFillBitmapPool(this_: androidNative.Array<com.bumptech.glide.load.engine.prefill.PreFillType.Builder>): void;
public getRequestManagerRetriever(): com.bumptech.glide.manager.RequestManagerRetriever;
public clearDiskCache(): void;
public getBitmapPool(): com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
public clearMemory(): void;
public static tearDown(): void;
}
export namespace Glide {
export class RequestOptionsFactory {
public static class: java.lang.Class<com.bumptech.glide.Glide.RequestOptionsFactory>;
/**
* Constructs a new instance of the com.bumptech.glide.Glide$RequestOptionsFactory interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
build(): com.bumptech.glide.request.RequestOptions;
});
public constructor();
public build(): com.bumptech.glide.request.RequestOptions;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class GlideBuilder {
public static class: java.lang.Class<com.bumptech.glide.GlideBuilder>;
/** @deprecated */
public setResizeExecutor(service: com.bumptech.glide.load.engine.executor.GlideExecutor): com.bumptech.glide.GlideBuilder;
public setMemorySizeCalculator(calculator: com.bumptech.glide.load.engine.cache.MemorySizeCalculator): com.bumptech.glide.GlideBuilder;
public setDiskCacheExecutor(service: com.bumptech.glide.load.engine.executor.GlideExecutor): com.bumptech.glide.GlideBuilder;
public constructor();
public setArrayPool(arrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): com.bumptech.glide.GlideBuilder;
public setImageDecoderEnabledForBitmaps(isEnabled: boolean): com.bumptech.glide.GlideBuilder;
public setConnectivityMonitorFactory(factory: com.bumptech.glide.manager.ConnectivityMonitorFactory): com.bumptech.glide.GlideBuilder;
public setDefaultTransitionOptions(clazz: java.lang.Class<any>, options: com.bumptech.glide.TransitionOptions<any,any>): com.bumptech.glide.GlideBuilder;
public setMemorySizeCalculator(builder: com.bumptech.glide.load.engine.cache.MemorySizeCalculator.Builder): com.bumptech.glide.GlideBuilder;
public setOverrideGlideThreadPriority(isEnabled: boolean): com.bumptech.glide.GlideBuilder;
public setUseMediaStoreOpenFileApisIfPossible(isEnabled: boolean): com.bumptech.glide.GlideBuilder;
public setLogLevel(logLevel: number): com.bumptech.glide.GlideBuilder;
/** @deprecated */
public setEnableHardwareGainmapFixOnU(isEnabled: boolean): com.bumptech.glide.GlideBuilder;
public addGlobalRequestListener(listener: com.bumptech.glide.request.RequestListener<any>): com.bumptech.glide.GlideBuilder;
public setDiskCache(diskCacheFactory: com.bumptech.glide.load.engine.cache.DiskCache.Factory): com.bumptech.glide.GlideBuilder;
public setLogRequestOrigins(isEnabled: boolean): com.bumptech.glide.GlideBuilder;
/** @deprecated */
public setDisableHardwareBitmapsOnO(disableHardwareBitmapsOnO: boolean): com.bumptech.glide.GlideBuilder;
public setDefaultRequestOptions(requestOptions: com.bumptech.glide.request.RequestOptions): com.bumptech.glide.GlideBuilder;
public setMemoryCache(memoryCache: com.bumptech.glide.load.engine.cache.MemoryCache): com.bumptech.glide.GlideBuilder;
/** @deprecated */
public setPreserveGainmapAndColorSpaceForTransformations(isEnabled: boolean): com.bumptech.glide.GlideBuilder;
public setBitmapPool(bitmapPool: com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool): com.bumptech.glide.GlideBuilder;
public setSourceExecutor(service: com.bumptech.glide.load.engine.executor.GlideExecutor): com.bumptech.glide.GlideBuilder;
public setAnimationExecutor(service: com.bumptech.glide.load.engine.executor.GlideExecutor): com.bumptech.glide.GlideBuilder;
public setIsActiveResourceRetentionAllowed(isActiveResourceRetentionAllowed: boolean): com.bumptech.glide.GlideBuilder;
public setDefaultRequestOptions(factory: com.bumptech.glide.Glide.RequestOptionsFactory): com.bumptech.glide.GlideBuilder;
}
export namespace GlideBuilder {
export class EnableImageDecoderForBitmaps extends com.bumptech.glide.GlideExperiments.Experiment {
public static class: java.lang.Class<com.bumptech.glide.GlideBuilder.EnableImageDecoderForBitmaps>;
}
export class LogRequestOrigins extends com.bumptech.glide.GlideExperiments.Experiment {
public static class: java.lang.Class<com.bumptech.glide.GlideBuilder.LogRequestOrigins>;
public constructor();
}
export class ManualOverrideHardwareBitmapMaxFdCount extends com.bumptech.glide.GlideExperiments.Experiment {
public static class: java.lang.Class<com.bumptech.glide.GlideBuilder.ManualOverrideHardwareBitmapMaxFdCount>;
}
export class OverrideGlideThreadPriority extends com.bumptech.glide.GlideExperiments.Experiment {
public static class: java.lang.Class<com.bumptech.glide.GlideBuilder.OverrideGlideThreadPriority>;
public constructor();
}
export class UseMediaStoreOpenFileApisIfPossible extends com.bumptech.glide.GlideExperiments.Experiment {
public static class: java.lang.Class<com.bumptech.glide.GlideBuilder.UseMediaStoreOpenFileApisIfPossible>;
public constructor();
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class GlideContext {
public static class: java.lang.Class<com.bumptech.glide.GlideContext>;
public getDefaultTransitionOptions(this_: java.lang.Class<any>): com.bumptech.glide.TransitionOptions<any,any>;
public getEngine(): com.bumptech.glide.load.engine.Engine;
public getLogLevel(): number;
public constructor(context: globalAndroid.content.Context, arrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool, registry: com.bumptech.glide.util.GlideSuppliers.GlideSupplier<com.bumptech.glide.Registry>, imageViewTargetFactory: com.bumptech.glide.request.target.ImageViewTargetFactory, defaultRequestOptionsFactory: com.bumptech.glide.Glide.RequestOptionsFactory, defaultTransitionOptions: java.util.Map<java.lang.Class<any>,com.bumptech.glide.TransitionOptions<any,any>>, defaultRequestListeners: java.util.List<com.bumptech.glide.request.RequestListener<any>>, engine: com.bumptech.glide.load.engine.Engine, experiments: com.bumptech.glide.GlideExperiments, logLevel: number);
public getDefaultRequestListeners(): java.util.List<com.bumptech.glide.request.RequestListener<any>>;
public buildImageViewTarget(imageView: globalAndroid.widget.ImageView, transcodeClass: java.lang.Class<any>): com.bumptech.glide.request.target.ViewTarget<any,any>;
public getRegistry(): com.bumptech.glide.Registry;
public getDefaultRequestOptions(): com.bumptech.glide.request.RequestOptions;
public getArrayPool(): com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool;
public getExperiments(): com.bumptech.glide.GlideExperiments;
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class GlideExperiments {
public static class: java.lang.Class<com.bumptech.glide.GlideExperiments>;
public isEnabled(clazz: java.lang.Class<any>): boolean;
}
export namespace GlideExperiments {
export class Builder {
public static class: java.lang.Class<com.bumptech.glide.GlideExperiments.Builder>;
}
export class Experiment {
public static class: java.lang.Class<com.bumptech.glide.GlideExperiments.Experiment>;
/**
* Constructs a new instance of the com.bumptech.glide.GlideExperiments$Experiment interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
});
public constructor();
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class ListPreloader<T> extends globalAndroid.widget.AbsListView.OnScrollListener {
public static class: java.lang.Class<com.bumptech.glide.ListPreloader<any>>;
public onScroll(absListView: globalAndroid.widget.AbsListView, firstVisible: number, visibleCount: number, totalCount: number): void;
public constructor(requestManager: com.bumptech.glide.RequestManager, preloadModelProvider: com.bumptech.glide.ListPreloader.PreloadModelProvider<any>, preloadDimensionProvider: com.bumptech.glide.ListPreloader.PreloadSizeProvider<any>, maxPreload: number);
public onScrollStateChanged(absListView: globalAndroid.widget.AbsListView, scrollState: number): void;
}
export namespace ListPreloader {
export class PreloadModelProvider<U> extends java.lang.Object {
public static class: java.lang.Class<com.bumptech.glide.ListPreloader.PreloadModelProvider<any>>;
/**
* Constructs a new instance of the com.bumptech.glide.ListPreloader$PreloadModelProvider interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
getPreloadItems(param0: number): java.util.List<U>;
getPreloadRequestBuilder(param0: U): com.bumptech.glide.RequestBuilder<any>;
});
public constructor();
public getPreloadItems(param0: number): java.util.List<U>;
public getPreloadRequestBuilder(param0: U): com.bumptech.glide.RequestBuilder<any>;
}
export class PreloadSizeProvider<T> extends java.lang.Object {
public static class: java.lang.Class<com.bumptech.glide.ListPreloader.PreloadSizeProvider<any>>;
/**
* Constructs a new instance of the com.bumptech.glide.ListPreloader$PreloadSizeProvider interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
getPreloadSize(param0: T, param1: number, param2: number): androidNative.Array<number>;
});
public constructor();
public getPreloadSize(param0: T, param1: number, param2: number): androidNative.Array<number>;
}
export class PreloadTarget extends com.bumptech.glide.request.target.Target<any> {
public static class: java.lang.Class<com.bumptech.glide.ListPreloader.PreloadTarget>;
public onLoadFailed(errorDrawable: globalAndroid.graphics.drawable.Drawable): void;
public setRequest(param0: com.bumptech.glide.request.Request): void;
public onLoadStarted(param0: globalAndroid.graphics.drawable.Drawable): void;
public onLoadFailed(param0: globalAndroid.graphics.drawable.Drawable): void;
public onLoadCleared(placeholder: globalAndroid.graphics.drawable.Drawable): void;
public onDestroy(): void;
public onLoadStarted(placeholder: globalAndroid.graphics.drawable.Drawable): void;
public onLoadCleared(param0: globalAndroid.graphics.drawable.Drawable): void;
public getSize(param0: com.bumptech.glide.request.target.SizeReadyCallback): void;
public setRequest(request: com.bumptech.glide.request.Request): void;
public onStart(): void;
public getSize(cb: com.bumptech.glide.request.target.SizeReadyCallback): void;
public getRequest(): com.bumptech.glide.request.Request;
public onResourceReady(param0: any, param1: com.bumptech.glide.request.transition.Transition<any>): void;
public removeCallback(param0: com.bumptech.glide.request.target.SizeReadyCallback): void;
public onResourceReady(resource: any, transition: com.bumptech.glide.request.transition.Transition<any>): void;
public onStop(): void;
public removeCallback(cb: com.bumptech.glide.request.target.SizeReadyCallback): void;
}
export class PreloadTargetQueue {
public static class: java.lang.Class<com.bumptech.glide.ListPreloader.PreloadTargetQueue>;
public next(width: number, height: number): com.bumptech.glide.ListPreloader.PreloadTarget;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class MemoryCategory {
public static class: java.lang.Class<com.bumptech.glide.MemoryCategory>;
public static LOW: com.bumptech.glide.MemoryCategory;
public static NORMAL: com.bumptech.glide.MemoryCategory;
public static HIGH: com.bumptech.glide.MemoryCategory;
public getMultiplier(): number;
public static valueOf(name: string): com.bumptech.glide.MemoryCategory;
public static values(): androidNative.Array<com.bumptech.glide.MemoryCategory>;
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class ModelTypes<T> extends java.lang.Object {
public static class: java.lang.Class<com.bumptech.glide.ModelTypes<any>>;
/**
* Constructs a new instance of the com.bumptech.glide.ModelTypes<any> interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
load(param0: globalAndroid.graphics.Bitmap): T;
load(param0: globalAndroid.graphics.drawable.Drawable): T;
load(param0: string): T;
load(param0: globalAndroid.net.Uri): T;
load(param0: java.io.File): T;
load(param0: java.lang.Integer): T;
load(param0: java.net.URL): T;
load(param0: androidNative.Array<number>): T;
load(param0: any): T;
});
public constructor();
public load(param0: globalAndroid.graphics.drawable.Drawable): T;
public load(param0: string): T;
public load(param0: java.io.File): T;
public load(param0: java.lang.Integer): T;
public load(param0: androidNative.Array<number>): T;
public load(param0: globalAndroid.net.Uri): T;
/** @deprecated */
public load(param0: java.net.URL): T;
public load(param0: globalAndroid.graphics.Bitmap): T;
public load(param0: any): T;
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class Priority {
public static class: java.lang.Class<com.bumptech.glide.Priority>;
public static IMMEDIATE: com.bumptech.glide.Priority;
public static HIGH: com.bumptech.glide.Priority;
public static NORMAL: com.bumptech.glide.Priority;
public static LOW: com.bumptech.glide.Priority;
public static valueOf(name: string): com.bumptech.glide.Priority;
public static values(): androidNative.Array<com.bumptech.glide.Priority>;
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class Registry {
public static class: java.lang.Class<com.bumptech.glide.Registry>;
/**
* "Animation"
*/
public static BUCKET_ANIMATION: string;
/**
* "Animation"
*/
public static BUCKET_GIF: string;
/**
* "Bitmap"
*/
public static BUCKET_BITMAP: string;
/**
* "BitmapDrawable"
*/
public static BUCKET_BITMAP_DRAWABLE: string;
/** @deprecated */
public register(dataClass: java.lang.Class<any>, encoder: com.bumptech.glide.load.Encoder<any>): com.bumptech.glide.Registry;
public isResourceEncoderAvailable(resource: com.bumptech.glide.load.engine.Resource<any>): boolean;
public append(bucket: string, dataClass: java.lang.Class<any>, resourceClass: java.lang.Class<any>, decoder: com.bumptech.glide.load.ResourceDecoder<any,any>): com.bumptech.glide.Registry;
public constructor();
public getImageHeaderParsers(): java.util.List<com.bumptech.glide.load.ImageHeaderParser>;
public register(parser: com.bumptech.glide.load.ImageHeaderParser): com.bumptech.glide.Registry;
public setResourceDecoderBucketPriorityList(this_: java.util.List<string>): com.bumptech.glide.Registry;
public getModelLoaders(model: any): java.util.List<any>;
public getLoadPath(this_: java.lang.Class<any>, dataClass: java.lang.Class<any>, resourceClass: java.lang.Class<any>): com.bumptech.glide.load.engine.LoadPath<any,any,any>;
public register(resourceClass: java.lang.Class<any>, transcodeClass: java.lang.Class<any>, transcoder: com.bumptech.glide.load.resource.transcode.ResourceTranscoder<any,any>): com.bumptech.glide.Registry;
public getRegisteredResourceClasses(registeredResourceClass: java.lang.Class<any>, registeredResourceClasses: java.lang.Class<any>, dataClass: java.lang.Class<any>): java.util.List<any>;
public getSourceEncoder(data: any): com.bumptech.glide.load.Encoder<any>;
public prepend(bucket: string, dataClass: java.lang.Class<any>, resourceClass: java.lang.Class<any>, decoder: com.bumptech.glide.load.ResourceDecoder<any,any>): com.bumptech.glide.Registry;
public prepend(modelClass: java.lang.Class<any>, dataClass: java.lang.Class<any>, factory: com.bumptech.glide.load.model.ModelLoaderFactory<any,any>): com.bumptech.glide.Registry;
public prepend(dataClass: java.lang.Class<any>, encoder: com.bumptech.glide.load.Encoder<any>): com.bumptech.glide.Registry;
public append(dataClass: java.lang.Class<any>, resourceClass: java.lang.Class<any>, decoder: com.bumptech.glide.load.ResourceDecoder<any,any>): com.bumptech.glide.Registry;
public append(dataClass: java.lang.Class<any>, encoder: com.bumptech.glide.load.Encoder<any>): com.bumptech.glide.Registry;
public getResultEncoder(resource: com.bumptech.glide.load.engine.Resource<any>): com.bumptech.glide.load.ResourceEncoder<any>;
/** @deprecated */
public register(resourceClass: java.lang.Class<any>, encoder: com.bumptech.glide.load.ResourceEncoder<any>): com.bumptech.glide.Registry;
public replace(modelClass: java.lang.Class<any>, dataClass: java.lang.Class<any>, factory: com.bumptech.glide.load.model.ModelLoaderFactory<any,any>): com.bumptech.glide.Registry;
public append(resourceClass: java.lang.Class<any>, encoder: com.bumptech.glide.load.ResourceEncoder<any>): com.bumptech.glide.Registry;
public prepend(resourceClass: java.lang.Class<any>, encoder: com.bumptech.glide.load.ResourceEncoder<any>): com.bumptech.glide.Registry;
public getRewinder(data: any): com.bumptech.glide.load.data.DataRewinder<any>;
public prepend(dataClass: java.lang.Class<any>, resourceClass: java.lang.Class<any>, decoder: com.bumptech.glide.load.ResourceDecoder<any,any>): com.bumptech.glide.Registry;
public register(factory: com.bumptech.glide.load.data.DataRewinder.Factory<any>): com.bumptech.glide.Registry;
public append(modelClass: java.lang.Class<any>, dataClass: java.lang.Class<any>, factory: com.bumptech.glide.load.model.ModelLoaderFactory<any,any>): com.bumptech.glide.Registry;
}
export namespace Registry {
export class MissingComponentException {
public static class: java.lang.Class<com.bumptech.glide.Registry.MissingComponentException>;
public constructor(message: string);
}
export class NoImageHeaderParserException extends com.bumptech.glide.Registry.MissingComponentException {
public static class: java.lang.Class<com.bumptech.glide.Registry.NoImageHeaderParserException>;
public constructor(message: string);
public constructor();
}
export class NoModelLoaderAvailableException extends com.bumptech.glide.Registry.MissingComponentException {
public static class: java.lang.Class<com.bumptech.glide.Registry.NoModelLoaderAvailableException>;
public constructor(message: string);
public constructor(model: any, matchingButNotHandlingModelLoaders: java.util.List<any>);
public constructor(modelClass: java.lang.Class<any>, dataClass: java.lang.Class<any>);
public constructor(model: any);
}
export class NoResultEncoderAvailableException extends com.bumptech.glide.Registry.MissingComponentException {
public static class: java.lang.Class<com.bumptech.glide.Registry.NoResultEncoderAvailableException>;
public constructor(message: string);
public constructor(resourceClass: java.lang.Class<any>);
}
export class NoSourceEncoderAvailableException extends com.bumptech.glide.Registry.MissingComponentException {
public static class: java.lang.Class<com.bumptech.glide.Registry.NoSourceEncoderAvailableException>;
public constructor(message: string);
public constructor(dataClass: java.lang.Class<any>);
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class RegistryFactory {
public static class: java.lang.Class<com.bumptech.glide.RegistryFactory>;
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class RequestBuilder<TranscodeType> extends com.bumptech.glide.request.BaseRequestOptions<com.bumptech.glide.RequestBuilder<any>> {
public static class: java.lang.Class<com.bumptech.glide.RequestBuilder<any>>;
public static DOWNLOAD_ONLY_OPTIONS: com.bumptech.glide.request.RequestOptions;
public into(target: com.bumptech.glide.request.target.Target<any>, targetListener: com.bumptech.glide.request.RequestListener<any>, callbackExecutor: java.util.concurrent.Executor): com.bumptech.glide.request.target.Target<any>;
public load(model: androidNative.Array<number>): com.bumptech.glide.RequestBuilder<any>;
/** @deprecated */
public load(url: java.net.URL): com.bumptech.glide.RequestBuilder<any>;
public constructor();
public addListener(requestListener: com.bumptech.glide.request.RequestListener<any>): com.bumptech.glide.RequestBuilder<any>;
public hashCode(): number;
public clone(): any;
public clone(): com.bumptech.glide.RequestBuilder<any>;
public load(file: java.io.File): com.bumptech.glide.RequestBuilder<any>;
public load(resourceId: java.lang.Integer): com.bumptech.glide.RequestBuilder<any>;
public experimentalIntoFront(view: globalAndroid.widget.ImageView): com.bumptech.glide.request.target.ViewTarget<globalAndroid.widget.ImageView,any>;
public apply(requestOptions: com.bumptech.glide.request.BaseRequestOptions<any>): com.bumptech.glide.RequestBuilder<any>;
public load(param0: androidNative.Array<number>): any;
public load(param0: globalAndroid.graphics.drawable.Drawable): any;
/** @deprecated */
public into(width: number, height: number): com.bumptech.glide.request.FutureTarget<any>;
public load(param0: string): any;
public load(model: any): com.bumptech.glide.RequestBuilder<any>;
public experimentalPreloadFront(width: number, height: number): com.bumptech.glide.request.target.Target<any>;
/** @deprecated */
public downloadOnly(width: number, height: number): com.bumptech.glide.request.FutureTarget<java.io.File>;
public equals(this_: any): boolean;
public getDownloadOnlyRequest(): com.bumptech.glide.RequestBuilder<java.io.File>;
public preload(): com.bumptech.glide.request.target.Target<any>;
public error(drawable: globalAndroid.graphics.drawable.Drawable): any;
public submit(): com.bumptech.glide.request.FutureTarget<any>;
public load(param0: java.lang.Integer): any;
public load(param0: globalAndroid.net.Uri): any;
public preload(width: number, height: number): com.bumptech.glide.request.target.Target<any>;
public apply(o: com.bumptech.glide.request.BaseRequestOptions<any>): any;
/** @deprecated */
public thumbnail(sizeMultiplier: number): com.bumptech.glide.RequestBuilder<any>;
public load(param0: globalAndroid.graphics.Bitmap): any;
public load(param0: any): any;
public listener(requestListener: com.bumptech.glide.request.RequestListener<any>): com.bumptech.glide.RequestBuilder<any>;
public constructor(transcodeClass: java.lang.Class<any>, other: com.bumptech.glide.RequestBuilder<any>);
public thumbnail(thumbnails: androidNative.Array<com.bumptech.glide.RequestBuilder<any>>): com.bumptech.glide.RequestBuilder<any>;
public error(errorBuilder: com.bumptech.glide.RequestBuilder<any>): com.bumptech.glide.RequestBuilder<any>;
/** @deprecated */
public downloadOnly(target: com.bumptech.glide.request.target.Target<any>): com.bumptech.glide.request.target.Target<any>;
public submit(width: number, height: number): com.bumptech.glide.request.FutureTarget<any>;
public load(param0: java.io.File): any;
public transition(transitionOptions: com.bumptech.glide.TransitionOptions<any,any>): com.bumptech.glide.RequestBuilder<any>;
public into(target: com.bumptech.glide.request.target.Target<any>): com.bumptech.glide.request.target.Target<any>;
public load(string: string): com.bumptech.glide.RequestBuilder<any>;
public constructor(glide: com.bumptech.glide.Glide, requestManager: com.bumptech.glide.RequestManager, transcodeClass: java.lang.Class<any>, context: globalAndroid.content.Context);
public load(uri: globalAndroid.net.Uri): com.bumptech.glide.RequestBuilder<any>;
public into(view: globalAndroid.widget.ImageView): com.bumptech.glide.request.target.ViewTarget<globalAndroid.widget.ImageView,any>;
public load(bitmap: globalAndroid.graphics.Bitmap): com.bumptech.glide.RequestBuilder<any>;
public thumbnail(i: java.util.List<com.bumptech.glide.RequestBuilder<any>>): com.bumptech.glide.RequestBuilder<any>;
public error(model: any): com.bumptech.glide.RequestBuilder<any>;
public experimentalIntoFront(target: com.bumptech.glide.request.target.Target<any>): com.bumptech.glide.request.target.Target<any>;
public thumbnail(thumbnailRequest: com.bumptech.glide.RequestBuilder<any>): com.bumptech.glide.RequestBuilder<any>;
/** @deprecated */
public load(param0: java.net.URL): any;
public load(drawable: globalAndroid.graphics.drawable.Drawable): com.bumptech.glide.RequestBuilder<any>;
public error(resourceId: number): any;
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export class RequestManager extends java.lang.Object {
public static class: java.lang.Class<com.bumptech.glide.RequestManager>;
public glide: com.bumptech.glide.Glide;
public context: globalAndroid.content.Context;
public load(resourceId: java.lang.Integer): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public as(resourceClass: java.lang.Class<any>): com.bumptech.glide.RequestBuilder<any>;
public load(param0: globalAndroid.graphics.Bitmap): any;
public load(param0: any): any;
public setDefaultRequestOptions(requestOptions: com.bumptech.glide.request.RequestOptions): com.bumptech.glide.RequestManager;
public load(drawable: globalAndroid.graphics.drawable.Drawable): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public setRequestOptions(toSet: com.bumptech.glide.request.RequestOptions): void;
public setPauseAllRequestsOnTrimMemoryModerate(pauseAllOnTrim: boolean): void;
public asDrawable(): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public applyDefaultRequestOptions(requestOptions: com.bumptech.glide.request.RequestOptions): com.bumptech.glide.RequestManager;
/** @deprecated */
public load(url: java.net.URL): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public onTrimMemory(level: number): void;
public downloadOnly(): com.bumptech.glide.RequestBuilder<java.io.File>;
public load(file: java.io.File): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public onStop(): void;
public load(param0: java.io.File): any;
public load(uri: globalAndroid.net.Uri): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public load(param0: androidNative.Array<number>): any;
public pauseRequestsRecursive(): void;
public load(param0: globalAndroid.graphics.drawable.Drawable): any;
public resumeRequestsRecursive(): void;
public download(model: any): com.bumptech.glide.RequestBuilder<java.io.File>;
public onConfigurationChanged(newConfig: globalAndroid.content.res.Configuration): void;
public clearOnStop(): com.bumptech.glide.RequestManager;
public load(model: androidNative.Array<number>): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public onLowMemory(): void;
public clear(view: globalAndroid.view.View): void;
public load(bitmap: globalAndroid.graphics.Bitmap): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public toString(): string;
public load(param0: string): any;
public clear(target: com.bumptech.glide.request.target.Target<any>): void;
public constructor(glide: com.bumptech.glide.Glide, lifecycle: com.bumptech.glide.manager.Lifecycle, treeNode: com.bumptech.glide.manager.RequestManagerTreeNode, context: globalAndroid.content.Context);
public load(string: string): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
public pauseAllRequests(): void;
public onStart(): void;
public pauseAllRequestsRecursive(): void;
public asFile(): com.bumptech.glide.RequestBuilder<java.io.File>;
public asBitmap(): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.Bitmap>;
public asGif(): com.bumptech.glide.RequestBuilder<com.bumptech.glide.load.resource.gif.GifDrawable>;
public load(param0: java.lang.Integer): any;
public resumeRequests(): void;
public load(model: any): com.bumptech.glide.RequestBuilder<globalAndroid.graphics.drawable.Drawable>;
/** @deprecated */
public load(param0: java.net.URL): any;
public onDestroy(): void;
public addDefaultRequestListener(requestListener: com.bumptech.glide.request.RequestListener<any>): com.bumptech.glide.RequestManager;
public isPaused(): boolean;
public pauseRequests(): void;
public load(param0: globalAndroid.net.Uri): any;
}
export namespace RequestManager {
export class ClearTarget extends com.bumptech.glide.request.target.CustomViewTarget<globalAndroid.view.View,any> {
public static class: java.lang.Class<com.bumptech.glide.RequestManager.ClearTarget>;
public onResourceCleared(placeholder: globalAndroid.graphics.drawable.Drawable): void;
public onLoadFailed(errorDrawable: globalAndroid.graphics.drawable.Drawable): void;
public getRequest(): com.bumptech.glide.request.Request;
public onResourceReady(param0: any, param1: com.bumptech.glide.request.transition.Transition<any>): void;
public setRequest(param0: com.bumptech.glide.request.Request): void;
public onLoadStarted(param0: globalAndroid.graphics.drawable.Drawable): void;
public onLoadFailed(param0: globalAndroid.graphics.drawable.Drawable): void;
public removeCallback(param0: com.bumptech.glide.request.target.SizeReadyCallback): void;
public onResourceReady(resource: any, transition: com.bumptech.glide.request.transition.Transition<any>): void;
public onLoadCleared(param0: globalAndroid.graphics.drawable.Drawable): void;
public getSize(param0: com.bumptech.glide.request.target.SizeReadyCallback): void;
}
export class RequestManagerConnectivityListener extends com.bumptech.glide.manager.ConnectivityMonitor.ConnectivityListener {
public static class: java.lang.Class<com.bumptech.glide.RequestManager.RequestManagerConnectivityListener>;
public onConnectivityChanged(isConnected: boolean): void;
public onConnectivityChanged(param0: boolean): void;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export abstract class TransitionOptions<CHILD, TranscodeType> extends java.lang.Cloneable {
public static class: java.lang.Class<com.bumptech.glide.TransitionOptions<any,any>>;
public equals(this_: any): boolean;
public hashCode(): number;
public transition(viewAnimationId: number): any;
public transition(transitionFactory: com.bumptech.glide.request.transition.TransitionFactory<any>): any;
public clone(): any;
public dontTransition(): any;
public transition(animator: com.bumptech.glide.request.transition.ViewPropertyTransition.Animator): any;
public constructor();
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class DataSource {
public static class: java.lang.Class<com.bumptech.glide.load.DataSource>;
public static LOCAL: com.bumptech.glide.load.DataSource;
public static REMOTE: com.bumptech.glide.load.DataSource;
public static DATA_DISK_CACHE: com.bumptech.glide.load.DataSource;
public static RESOURCE_DISK_CACHE: com.bumptech.glide.load.DataSource;
public static MEMORY_CACHE: com.bumptech.glide.load.DataSource;
public static valueOf(name: string): com.bumptech.glide.load.DataSource;
public static values(): androidNative.Array<com.bumptech.glide.load.DataSource>;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class DecodeFormat {
public static class: java.lang.Class<com.bumptech.glide.load.DecodeFormat>;
public static PREFER_ARGB_8888: com.bumptech.glide.load.DecodeFormat;
public static PREFER_RGB_565: com.bumptech.glide.load.DecodeFormat;
public static DEFAULT: com.bumptech.glide.load.DecodeFormat;
public static values(): androidNative.Array<com.bumptech.glide.load.DecodeFormat>;
public static valueOf(name: string): com.bumptech.glide.load.DecodeFormat;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class EncodeStrategy {
public static class: java.lang.Class<com.bumptech.glide.load.EncodeStrategy>;
public static SOURCE: com.bumptech.glide.load.EncodeStrategy;
public static TRANSFORMED: com.bumptech.glide.load.EncodeStrategy;
public static NONE: com.bumptech.glide.load.EncodeStrategy;
public static valueOf(name: string): com.bumptech.glide.load.EncodeStrategy;
public static values(): androidNative.Array<com.bumptech.glide.load.EncodeStrategy>;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class Encoder<T> extends java.lang.Object {
public static class: java.lang.Class<com.bumptech.glide.load.Encoder<any>>;
/**
* Constructs a new instance of the com.bumptech.glide.load.Encoder<any> interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
encode(param0: T, param1: java.io.File, param2: com.bumptech.glide.load.Options): boolean;
});
public constructor();
public encode(param0: T, param1: java.io.File, param2: com.bumptech.glide.load.Options): boolean;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class HttpException {
public static class: java.lang.Class<com.bumptech.glide.load.HttpException>;
/**
* -1
*/
public static UNKNOWN: number;
/** @deprecated */
public constructor(message: string);
public getStatusCode(): number;
public constructor(statusCode: number);
public constructor(message: string, statusCode: number, cause: java.lang.Throwable);
public constructor(message: string, statusCode: number);
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class ImageHeaderParser {
public static class: java.lang.Class<com.bumptech.glide.load.ImageHeaderParser>;
/**
* Constructs a new instance of the com.bumptech.glide.load.ImageHeaderParser interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
getType(param0: java.io.InputStream): com.bumptech.glide.load.ImageHeaderParser.ImageType;
getType(param0: java.nio.ByteBuffer): com.bumptech.glide.load.ImageHeaderParser.ImageType;
getOrientation(param0: java.io.InputStream, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): number;
getOrientation(param0: java.nio.ByteBuffer, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): number;
hasJpegMpf(param0: java.io.InputStream, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): boolean;
hasJpegMpf(param0: java.nio.ByteBuffer, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): boolean;
});
public constructor();
/**
* -1
*/
public static UNKNOWN_ORIENTATION: number;
public getOrientation(param0: java.io.InputStream, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): number;
public getType(param0: java.io.InputStream): com.bumptech.glide.load.ImageHeaderParser.ImageType;
public getOrientation(param0: java.nio.ByteBuffer, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): number;
public hasJpegMpf(param0: java.nio.ByteBuffer, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): boolean;
public hasJpegMpf(param0: java.io.InputStream, param1: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): boolean;
public getType(param0: java.nio.ByteBuffer): com.bumptech.glide.load.ImageHeaderParser.ImageType;
}
export namespace ImageHeaderParser {
export class ImageType {
public static class: java.lang.Class<com.bumptech.glide.load.ImageHeaderParser.ImageType>;
public static GIF: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static JPEG: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static RAW: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static PNG_A: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static PNG: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static WEBP_A: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static WEBP: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static ANIMATED_WEBP: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static AVIF: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static ANIMATED_AVIF: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static UNKNOWN: com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static valueOf(name: string): com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static values(): androidNative.Array<com.bumptech.glide.load.ImageHeaderParser.ImageType>;
public hasAlpha(): boolean;
public isWebp(): boolean;
}
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class ImageHeaderParserUtils {
public static class: java.lang.Class<com.bumptech.glide.load.ImageHeaderParserUtils>;
public static getType(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, parcelFileDescriptorRewinder: com.bumptech.glide.load.data.ParcelFileDescriptorRewinder, byteArrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static getOrientation(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, parcelFileDescriptorRewinder: com.bumptech.glide.load.data.ParcelFileDescriptorRewinder, byteArrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): number;
public static hasJpegMpf(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, buffer: java.nio.ByteBuffer, byteArrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): boolean;
public static getOrientation(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, is: java.io.InputStream, byteArrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): number;
public static hasJpegMpf(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, parcelFileDescriptorRewinder: com.bumptech.glide.load.data.ParcelFileDescriptorRewinder, byteArrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): boolean;
public static hasJpegMpf(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, is: java.io.InputStream, byteArrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): boolean;
public static getType(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, is: java.io.InputStream, byteArrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static getType(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, buffer: java.nio.ByteBuffer): com.bumptech.glide.load.ImageHeaderParser.ImageType;
public static getOrientation(parsers: java.util.List<com.bumptech.glide.load.ImageHeaderParser>, buffer: java.nio.ByteBuffer, arrayPool: com.bumptech.glide.load.engine.bitmap_recycle.ArrayPool): number;
}
export namespace ImageHeaderParserUtils {
export class JpegMpfReader {
public static class: java.lang.Class<com.bumptech.glide.load.ImageHeaderParserUtils.JpegMpfReader>;
/**
* Constructs a new instance of the com.bumptech.glide.load.ImageHeaderParserUtils$JpegMpfReader interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
getHasJpegMpfAndRewind(param0: com.bumptech.glide.load.ImageHeaderParser): boolean;
});
public constructor();
public getHasJpegMpfAndRewind(param0: com.bumptech.glide.load.ImageHeaderParser): boolean;
}
export class OrientationReader {
public static class: java.lang.Class<com.bumptech.glide.load.ImageHeaderParserUtils.OrientationReader>;
/**
* Constructs a new instance of the com.bumptech.glide.load.ImageHeaderParserUtils$OrientationReader interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
getOrientationAndRewind(param0: com.bumptech.glide.load.ImageHeaderParser): number;
});
public constructor();
public getOrientationAndRewind(param0: com.bumptech.glide.load.ImageHeaderParser): number;
}
export class TypeReader {
public static class: java.lang.Class<com.bumptech.glide.load.ImageHeaderParserUtils.TypeReader>;
/**
* Constructs a new instance of the com.bumptech.glide.load.ImageHeaderParserUtils$TypeReader interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
getTypeAndRewind(param0: com.bumptech.glide.load.ImageHeaderParser): com.bumptech.glide.load.ImageHeaderParser.ImageType;
});
public constructor();
public getTypeAndRewind(param0: com.bumptech.glide.load.ImageHeaderParser): com.bumptech.glide.load.ImageHeaderParser.ImageType;
}
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class Key {
public static class: java.lang.Class<com.bumptech.glide.load.Key>;
/**
* Constructs a new instance of the com.bumptech.glide.load.Key interface with the provided implementation.
* An empty constructor exists calling super().
*/
public constructor(implementation: {
updateDiskCacheKey(param0: java.security.MessageDigest): void;
equals(param0: any): boolean;
hashCode(): number;
"<clinit>"(): void;
});
public constructor();
/**
* "UTF-8"
*/
public static STRING_CHARSET_NAME: string;
public static CHARSET: java.nio.charset.Charset;
public equals(param0: any): boolean;
public hashCode(): number;
public updateDiskCacheKey(param0: java.security.MessageDigest): void;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class MultiTransformation<T> extends com.bumptech.glide.load.Transformation<any> {
public static class: java.lang.Class<com.bumptech.glide.load.MultiTransformation<any>>;
public equals(param0: any): boolean;
public transform(transformation: globalAndroid.content.Context, this_: com.bumptech.glide.load.engine.Resource<any>, context: number, resource: number): com.bumptech.glide.load.engine.Resource<any>;
public constructor(transformationList: java.util.Collection<any>);
public equals(this_: any): boolean;
public transform(param0: globalAndroid.content.Context, param1: com.bumptech.glide.load.engine.Resource<any>, param2: number, param3: number): com.bumptech.glide.load.engine.Resource<any>;
public hashCode(): number;
public constructor(transformations: androidNative.Array<com.bumptech.glide.load.Transformation<any>>);
public updateDiskCacheKey(this_: java.security.MessageDigest): void;
public updateDiskCacheKey(param0: java.security.MessageDigest): void;
}
}
}
}
}
declare namespace com {
export namespace bumptech {
export namespace glide {
export namespace load {
export class Option<T> extends java.lang.Object {
public static class: java.lang.Class<com.bumptech.glide.load.Option<any>>;
public static disk(key: string, cacheKeyUpdater: com.bumptech.glide.load.Option.CacheKeyUpdater<any>): com.bumptech.glide.load.Option<any>;
public static memory(key: string): com.bumptech.glide.load.Option<any>;
public update(value: T, messageDigest: java.security.MessageDigest): void;
public toString(): string;
public equals(this_: any): boolean;
public static memory(key: string, defaultValue: any): com.bumptech.glide.load.Option<any>;
public hashCode(): number;
public static disk(key: string, defaultValue: any, cacheKeyUpdater: com.bumptech.glide.load.Option.CacheKeyUpdater<any>): com.bumptech.glide.load.Option<any>;
public getDefaultValue(): T;
}
export namespace Option {
export class CacheKeyUpdater<T> extends java.lang.Object {
public static class: java.lang.Class<com.bumptech.glide.load.Option.CacheKeyUpdater<any>>;
/**
* Constructs a new instance of the com.bumpt