UNPKG

@nativescript-community/ui-image

Version:

Advanced and efficient image display plugin which uses Fresco (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.

1,125 lines (1,077 loc) 862 kB
/* eslint-disable @typescript-eslint/unified-signatures */ /* eslint-disable @typescript-eslint/adjacent-overload-signatures */ /* eslint-disable no-redeclare */ /// <reference path="android-declarations.d.ts"/> declare module com { export module facebook { export module common { export module activitylistener { export class ActivityListener { public static class: java.lang.Class<com.facebook.common.activitylistener.ActivityListener>; /** * Constructs a new instance of the com.facebook.common.activitylistener.ActivityListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { onActivityCreate(param0: globalAndroid.app.Activity): void; onStart(param0: globalAndroid.app.Activity): void; onResume(param0: globalAndroid.app.Activity): void; onPause(param0: globalAndroid.app.Activity): void; onStop(param0: globalAndroid.app.Activity): void; onDestroy(param0: globalAndroid.app.Activity): void; getPriority(): number; }); public constructor(); public static MIN_PRIORITY: number = 1; public static MAX_PRIORITY: number = 10; public getPriority(): number; public onStop(param0: globalAndroid.app.Activity): void; public onResume(param0: globalAndroid.app.Activity): void; public onActivityCreate(param0: globalAndroid.app.Activity): void; public onStart(param0: globalAndroid.app.Activity): void; public onDestroy(param0: globalAndroid.app.Activity): void; public onPause(param0: globalAndroid.app.Activity): void; } } } } } declare module com { export module facebook { export module common { export module activitylistener { export class ActivityListenerManager { public static class: java.lang.Class<com.facebook.common.activitylistener.ActivityListenerManager>; public constructor(); public static register(listener: com.facebook.common.activitylistener.ActivityListener, activityListener: globalAndroid.content.Context): void; public static getListenableActivity(context: globalAndroid.content.Context): com.facebook.common.activitylistener.ListenableActivity; } export module ActivityListenerManager { export class Listener extends com.facebook.common.activitylistener.BaseActivityListener { public static class: java.lang.Class<com.facebook.common.activitylistener.ActivityListenerManager.Listener>; public constructor(); public onResume(activity: globalAndroid.app.Activity): void; public onStart(param0: globalAndroid.app.Activity): void; public onDestroy(param0: globalAndroid.app.Activity): void; public onActivityCreate(param0: globalAndroid.app.Activity): void; public onDestroy(activity: globalAndroid.app.Activity): void; public onResume(param0: globalAndroid.app.Activity): void; public onStop(param0: globalAndroid.app.Activity): void; public constructor(activityListener: com.facebook.common.activitylistener.ActivityListener); public onStart(activity: globalAndroid.app.Activity): void; public getPriority(): number; public onActivityCreate(activity: globalAndroid.app.Activity): void; public onPause(param0: globalAndroid.app.Activity): void; public onStop(activity: globalAndroid.app.Activity): void; public onPause(activity: globalAndroid.app.Activity): void; } } } } } } declare module com { export module facebook { export module common { export module activitylistener { export class BaseActivityListener extends com.facebook.common.activitylistener.ActivityListener { public static class: java.lang.Class<com.facebook.common.activitylistener.BaseActivityListener>; public getPriority(): number; public onResume(param0: globalAndroid.app.Activity): void; public onActivityCreate(param0: globalAndroid.app.Activity): void; public onStart(activity: globalAndroid.app.Activity): void; public onDestroy(param0: globalAndroid.app.Activity): void; public onActivityCreate(activity: globalAndroid.app.Activity): void; public onPause(param0: globalAndroid.app.Activity): void; public onStop(param0: globalAndroid.app.Activity): void; public onDestroy(activity: globalAndroid.app.Activity): void; public constructor(); public onStart(param0: globalAndroid.app.Activity): void; public onPause(activity: globalAndroid.app.Activity): void; public onResume(activity: globalAndroid.app.Activity): void; public onStop(activity: globalAndroid.app.Activity): void; } } } } } declare module com { export module facebook { export module common { export module activitylistener { export class ListenableActivity { public static class: java.lang.Class<com.facebook.common.activitylistener.ListenableActivity>; /** * Constructs a new instance of the com.facebook.common.activitylistener.ListenableActivity interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { addActivityListener(param0: com.facebook.common.activitylistener.ActivityListener): void; removeActivityListener(param0: com.facebook.common.activitylistener.ActivityListener): void; }); public constructor(); public addActivityListener(param0: com.facebook.common.activitylistener.ActivityListener): void; public removeActivityListener(param0: com.facebook.common.activitylistener.ActivityListener): void; } } } } } declare module com { export module facebook { export module common { export module callercontext { export class ContextChain { public static class: java.lang.Class<com.facebook.common.callercontext.ContextChain>; public static TAG_PRODUCT: string = "p"; public static TAG_INFRA: string = "i"; public static TAG_PRODUCT_AND_INFRA: string = "pi"; public static CREATOR: globalAndroid.os.Parcelable.Creator<com.facebook.common.callercontext.ContextChain>; public toStringArray(): androidNative.Array<string>; public equals(obj: any): boolean; public getRootContextChain(): com.facebook.common.callercontext.ContextChain; public putObjectExtra(key: string, value: any): void; public describeContents(): number; public getNodeString(): string; public constructor(in_: globalAndroid.os.Parcel); public constructor(tag: string, name: string, extraData: java.util.Map<string,string>, parent: com.facebook.common.callercontext.ContextChain); public getTag(): string; public constructor(serializedNodeString: string, parent: com.facebook.common.callercontext.ContextChain); public getStringExtra(key: string): string; public getExtraData(): java.util.Map<string,any>; public toString(): string; public constructor(tag: string, name: string, parent: com.facebook.common.callercontext.ContextChain); public getParent(): com.facebook.common.callercontext.ContextChain; public getName(): string; public constructor(serializedNodeString: string, extraData: java.util.Map<string,any>, parent: com.facebook.common.callercontext.ContextChain); public writeToParcel(dest: globalAndroid.os.Parcel, flags: number): void; public static setUseConcurrentHashMap(useConcurrentHashMap: boolean): void; public hashCode(): number; } } } } } declare module com { export module facebook { export module common { export module callercontext { export class ImageAttribution { public static class: java.lang.Class<com.facebook.common.callercontext.ImageAttribution>; /** * Constructs a new instance of the com.facebook.common.callercontext.ImageAttribution interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { getCallingClassName(): string; getContextChain(): com.facebook.common.callercontext.ContextChain; }); public constructor(); public getCallingClassName(): string; public getContextChain(): com.facebook.common.callercontext.ContextChain; } } } } } declare module com { export module facebook { export module common { export module closeables { export class AutoCleanupDelegate<T> extends any { public static class: java.lang.Class<com.facebook.common.closeables.AutoCleanupDelegate<any>>; public constructor(currentValue: any, cleanupFunction: any); public setValue(this_: any, thisRef: any, property: any): void; public getValue(thisRef: any, property: any): any; } } } } } declare module com { export module facebook { export module common { export module closeables { export class AutoCloseableDelegate<T> extends com.facebook.common.closeables.AutoCleanupDelegate<any> { public static class: java.lang.Class<com.facebook.common.closeables.AutoCloseableDelegate<any>>; public constructor(currentValue: any, cleanupFunction: any); public constructor(initialValue: any); public constructor(); } } } } } declare module com { export module facebook { export module common { export module disk { export class DiskTrimmable { public static class: java.lang.Class<com.facebook.common.disk.DiskTrimmable>; /** * Constructs a new instance of the com.facebook.common.disk.DiskTrimmable interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { trimToMinimum(): void; trimToNothing(): void; }); public constructor(); public trimToMinimum(): void; public trimToNothing(): void; } } } } } declare module com { export module facebook { export module common { export module disk { export class DiskTrimmableRegistry { public static class: java.lang.Class<com.facebook.common.disk.DiskTrimmableRegistry>; /** * Constructs a new instance of the com.facebook.common.disk.DiskTrimmableRegistry interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { registerDiskTrimmable(param0: com.facebook.common.disk.DiskTrimmable): void; unregisterDiskTrimmable(param0: com.facebook.common.disk.DiskTrimmable): void; }); public constructor(); public unregisterDiskTrimmable(param0: com.facebook.common.disk.DiskTrimmable): void; public registerDiskTrimmable(param0: com.facebook.common.disk.DiskTrimmable): void; } } } } } declare module com { export module facebook { export module common { export module disk { export class NoOpDiskTrimmableRegistry extends com.facebook.common.disk.DiskTrimmableRegistry { public static class: java.lang.Class<com.facebook.common.disk.NoOpDiskTrimmableRegistry>; public unregisterDiskTrimmable(param0: com.facebook.common.disk.DiskTrimmable): void; public registerDiskTrimmable(trimmable: com.facebook.common.disk.DiskTrimmable): void; public static getInstance(): com.facebook.common.disk.NoOpDiskTrimmableRegistry; public registerDiskTrimmable(param0: com.facebook.common.disk.DiskTrimmable): void; public unregisterDiskTrimmable(trimmable: com.facebook.common.disk.DiskTrimmable): void; } } } } } declare module com { export module facebook { export module common { export module executors { export class CallerThreadExecutor extends java.util.concurrent.Executor { public static class: java.lang.Class<com.facebook.common.executors.CallerThreadExecutor>; public isTerminated(): boolean; public shutdown(): void; public execute(command: java.lang.Runnable): void; public static getInstance(): com.facebook.common.executors.CallerThreadExecutor; public isShutdown(): boolean; public shutdownNow(): java.util.List<java.lang.Runnable>; public awaitTermination(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; } } } } } declare module com { export module facebook { export module common { export module executors { export class ConstrainedExecutorService { public static class: java.lang.Class<com.facebook.common.executors.ConstrainedExecutorService>; public isTerminated(): boolean; public shutdown(): void; public isIdle(): boolean; public constructor(name: string, maxConcurrency: number, executor: java.util.concurrent.Executor, workQueue: java.util.concurrent.BlockingQueue<java.lang.Runnable>); public static newConstrainedExecutor(name: string, maxConcurrency: number, queueSize: number, executor: java.util.concurrent.Executor): com.facebook.common.executors.ConstrainedExecutorService; public execute(runnable: java.lang.Runnable): void; public isShutdown(): boolean; public shutdownNow(): java.util.List<java.lang.Runnable>; public awaitTermination(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; } export module ConstrainedExecutorService { export class Worker { public static class: java.lang.Class<com.facebook.common.executors.ConstrainedExecutorService.Worker>; public run(): void; } } } } } } declare module com { export module facebook { export module common { export module executors { export class DefaultSerialExecutorService extends com.facebook.common.executors.ConstrainedExecutorService implements com.facebook.common.executors.SerialExecutorService { public static class: java.lang.Class<com.facebook.common.executors.DefaultSerialExecutorService>; public constructor(executor: java.util.concurrent.Executor); public constructor(name: string, maxConcurrency: number, executor: java.util.concurrent.Executor, workQueue: java.util.concurrent.BlockingQueue<java.lang.Runnable>); public execute(runnable: java.lang.Runnable): void; } } } } } declare module com { export module facebook { export module common { export module executors { export class HandlerExecutorService { public static class: java.lang.Class<com.facebook.common.executors.HandlerExecutorService>; /** * Constructs a new instance of the com.facebook.common.executors.HandlerExecutorService interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { quit(): void; isHandlerThread(): boolean; }); public constructor(); public isHandlerThread(): boolean; public quit(): void; } } } } } declare module com { export module facebook { export module common { export module executors { export class HandlerExecutorServiceImpl implements com.facebook.common.executors.HandlerExecutorService { public static class: java.lang.Class<com.facebook.common.executors.HandlerExecutorServiceImpl>; public isTerminated(): boolean; public newTaskFor(callable: java.util.concurrent.Callable<any>): com.facebook.common.executors.ScheduledFutureImpl<any>; public scheduleAtFixedRate(command: java.lang.Runnable, initialDelay: number, period: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture<any>; public schedule(command: java.lang.Runnable, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture<any>; public isHandlerThread(): boolean; public submit(task: java.lang.Runnable): java.util.concurrent.ScheduledFuture<any>; public isShutdown(): boolean; public constructor(handler: globalAndroid.os.Handler); public shutdownNow(): java.util.List<java.lang.Runnable>; public schedule(callable: java.util.concurrent.Callable<any>, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture<any>; public shutdown(): void; public submit(task: java.util.concurrent.Callable<any>): java.util.concurrent.ScheduledFuture<any>; public scheduleWithFixedDelay(command: java.lang.Runnable, initialDelay: number, delay: number, unit: java.util.concurrent.TimeUnit): java.util.concurrent.ScheduledFuture<any>; public execute(command: java.lang.Runnable): void; public submit(task: java.lang.Runnable, result: any): java.util.concurrent.ScheduledFuture<any>; public quit(): void; public awaitTermination(timeout: number, unit: java.util.concurrent.TimeUnit): boolean; public newTaskFor(runnable: java.lang.Runnable, value: any): com.facebook.common.executors.ScheduledFutureImpl<any>; } } } } } declare module com { export module facebook { export module common { export module executors { export class ScheduledFutureImpl<V> extends java.lang.Object { public static class: java.lang.Class<com.facebook.common.executors.ScheduledFutureImpl<any>>; public constructor(handler: globalAndroid.os.Handler, runnable: java.lang.Runnable, result: V); public compareTo(other: java.util.concurrent.Delayed): number; public get(timeout: number, unit: java.util.concurrent.TimeUnit): V; public isDone(): boolean; public run(): void; public isCancelled(): boolean; public getDelay(unit: java.util.concurrent.TimeUnit): number; public constructor(handler: globalAndroid.os.Handler, callable: java.util.concurrent.Callable<V>); public cancel(mayInterruptIfRunning: boolean): boolean; public get(): V; } } } } } declare module com { export module facebook { export module common { export module executors { export class SerialExecutorService { public static class: java.lang.Class<com.facebook.common.executors.SerialExecutorService>; /** * Constructs a new instance of the com.facebook.common.executors.SerialExecutorService interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { }); public constructor(); } } } } } declare module com { export module facebook { export module common { export module executors { export abstract class StatefulRunnable<T> extends java.lang.Runnable { public static class: java.lang.Class<com.facebook.common.executors.StatefulRunnable<any>>; public static STATE_CREATED: number = 0; public static STATE_STARTED: number = 1; public static STATE_CANCELLED: number = 2; public static STATE_FINISHED: number = 3; public static STATE_FAILED: number = 4; public mState: java.util.concurrent.atomic.AtomicInteger; public onSuccess(result: any): void; public disposeResult(result: any): void; public onCancellation(): void; public constructor(); public run(): void; public cancel(): void; public onFailure(e: java.lang.Exception): void; public getResult(): any; } } } } } declare module com { export module facebook { export module common { export module executors { export class UiThreadImmediateExecutorService extends com.facebook.common.executors.HandlerExecutorServiceImpl { public static class: java.lang.Class<com.facebook.common.executors.UiThreadImmediateExecutorService>; public static getInstance(): com.facebook.common.executors.UiThreadImmediateExecutorService; public isHandlerThread(): boolean; public execute(command: java.lang.Runnable): void; public quit(): void; } } } } } declare module com { export module facebook { export module common { export module file { export class FileTree { public static class: java.lang.Class<com.facebook.common.file.FileTree>; public static walkFileTree(file: java.io.File, directory: com.facebook.common.file.FileTreeVisitor): void; public constructor(); public static deleteRecursively(file: java.io.File): boolean; public static deleteContents(file: java.io.File): boolean; } } } } } declare module com { export module facebook { export module common { export module file { export class FileTreeVisitor { public static class: java.lang.Class<com.facebook.common.file.FileTreeVisitor>; /** * Constructs a new instance of the com.facebook.common.file.FileTreeVisitor interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { preVisitDirectory(param0: java.io.File): void; visitFile(param0: java.io.File): void; postVisitDirectory(param0: java.io.File): void; }); public constructor(); public preVisitDirectory(param0: java.io.File): void; public postVisitDirectory(param0: java.io.File): void; public visitFile(param0: java.io.File): void; } } } } } declare module com { export module facebook { export module common { export module file { export class FileUtils { public static class: java.lang.Class<com.facebook.common.file.FileUtils>; public static rename(source: java.io.File, target: java.io.File): void; public constructor(); public static mkdirs(directory: java.io.File): void; } export module FileUtils { export class CreateDirectoryException { public static class: java.lang.Class<com.facebook.common.file.FileUtils.CreateDirectoryException>; public constructor(message: string); public constructor(message: string, innerException: java.lang.Throwable); } export class FileDeleteException { public static class: java.lang.Class<com.facebook.common.file.FileUtils.FileDeleteException>; public constructor(message: string); } export class ParentDirNotFoundException { public static class: java.lang.Class<com.facebook.common.file.FileUtils.ParentDirNotFoundException>; public constructor(message: string); } export class RenameException { public static class: java.lang.Class<com.facebook.common.file.FileUtils.RenameException>; public constructor(message: string); public constructor(message: string, innerException: java.lang.Throwable); } } } } } } declare module com { export module facebook { export module common { export module internal { export class AndroidPredicates { public static class: java.lang.Class<com.facebook.common.internal.AndroidPredicates>; public static False(): com.facebook.common.internal.Predicate<any>; public static True(): com.facebook.common.internal.Predicate<any>; } } } } } declare module com { export module facebook { export module common { export module internal { export class ByteStreams { public static class: java.lang.Class<com.facebook.common.internal.ByteStreams>; public static toByteArray(in_: java.io.InputStream): androidNative.Array<number>; public static copy(r: java.io.InputStream, from: java.io.OutputStream): number; public static toByteArray(off: java.io.InputStream, read: number): androidNative.Array<number>; public static read(result: java.io.InputStream, in_: androidNative.Array<number>, b: number, off: number): number; public static readFully(in_: java.io.InputStream, b: androidNative.Array<number>, off: number, len: number): void; } export module ByteStreams { export class FastByteArrayOutputStream { public static class: java.lang.Class<com.facebook.common.internal.ByteStreams.FastByteArrayOutputStream>; } } } } } } declare module com { export module facebook { export module common { export module internal { export class Closeables { public static class: java.lang.Class<com.facebook.common.internal.Closeables>; public static closeQuietly(impossible: java.io.Reader): void; public static closeQuietly(impossible: java.io.InputStream): void; public static close(e: java.io.Closeable, closeable: boolean): void; } } } } } declare module com { export module facebook { export module common { export module internal { export class CountingOutputStream { public static class: java.lang.Class<com.facebook.common.internal.CountingOutputStream>; public getCount(): number; public write(b: number): void; public close(): void; public write(b: androidNative.Array<number>, off: number, len: number): void; public constructor(out: java.io.OutputStream); } } } } } declare module com { export module facebook { export module common { export module internal { export class DoNotStrip { public static class: java.lang.Class<com.facebook.common.internal.DoNotStrip>; /** * Constructs a new instance of the com.facebook.common.internal.DoNotStrip interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { }); public constructor(); } } } } } declare module com { export module facebook { export module common { export module internal { export class Files { public static class: java.lang.Class<com.facebook.common.internal.Files>; public static toByteArray(file: java.io.File): androidNative.Array<number>; } } } } } declare module com { export module facebook { export module common { export module internal { export class Fn<A, R> extends java.lang.Object { public static class: java.lang.Class<com.facebook.common.internal.Fn<any,any>>; /** * Constructs a new instance of the com.facebook.common.internal.Fn<any,any> interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { apply(param0: A): R; }); public constructor(); public apply(param0: A): R; } } } } } declare module com { export module facebook { export module common { export module internal { export class ImmutableList<E> extends java.util.ArrayList<any> { public static class: java.lang.Class<com.facebook.common.internal.ImmutableList<any>>; public static copyOf(list: java.util.List<any>): com.facebook.common.internal.ImmutableList<any>; public static of(elements: androidNative.Array<any>): com.facebook.common.internal.ImmutableList<any>; } } } } } declare module com { export module facebook { export module common { export module internal { export class ImmutableMap<K, V> extends java.util.HashMap<any,any> { public static class: java.lang.Class<com.facebook.common.internal.ImmutableMap<any,any>>; public static of(k1: any, v1: any, k2: any, v2: any): java.util.Map<any,any>; public static of(k1: any, v1: any, k2: any, v2: any, k3: any, v3: any, k4: any, v4: any, k5: any, v5: any, k6: any, v6: any): java.util.Map<any,any>; public static copyOf(map: java.util.Map<any,any>): com.facebook.common.internal.ImmutableMap<any,any>; public static of(k1: any, v1: any, k2: any, v2: any, k3: any, v3: any, k4: any, v4: any, k5: any, v5: any): java.util.Map<any,any>; public static of(): java.util.Map<any,any>; public static of(k1: any, v1: any, k2: any, v2: any, k3: any, v3: any): java.util.Map<any,any>; public static of(k1: any, v1: any, k2: any, v2: any, k3: any, v3: any, k4: any, v4: any): java.util.Map<any,any>; public static of(k1: any, v1: any): java.util.Map<any,any>; } } } } } declare module com { export module facebook { export module common { export module internal { export class ImmutableSet<E> extends java.util.HashSet<any> { public static class: java.lang.Class<com.facebook.common.internal.ImmutableSet<any>>; public static of(elements: androidNative.Array<any>): com.facebook.common.internal.ImmutableSet<any>; public static copyOf(set: java.util.Set<any>): com.facebook.common.internal.ImmutableSet<any>; } } } } } declare module com { export module facebook { export module common { export module internal { export class Objects { public static class: java.lang.Class<com.facebook.common.internal.Objects>; public static toStringHelper(self: any): com.facebook.common.internal.Objects.ToStringHelper; public static toStringHelper(clazz: java.lang.Class<any>): com.facebook.common.internal.Objects.ToStringHelper; public static equal(a: any, b: any): boolean; public static firstNonNull(first: any, second: any): any; public static hashCode(objects: androidNative.Array<any>): number; public static toStringHelper(className: string): com.facebook.common.internal.Objects.ToStringHelper; } export module Objects { export class ToStringHelper { public static class: java.lang.Class<com.facebook.common.internal.Objects.ToStringHelper>; public omitNullValues(): com.facebook.common.internal.Objects.ToStringHelper; public add(name: string, value: any): com.facebook.common.internal.Objects.ToStringHelper; public add(name: string, value: boolean): com.facebook.common.internal.Objects.ToStringHelper; public add(name: string, value: string): com.facebook.common.internal.Objects.ToStringHelper; public addValue(value: number): com.facebook.common.internal.Objects.ToStringHelper; public addValue(value: any): com.facebook.common.internal.Objects.ToStringHelper; public add(name: string, value: number): com.facebook.common.internal.Objects.ToStringHelper; public addValue(value: boolean): com.facebook.common.internal.Objects.ToStringHelper; public addValue(value: string): com.facebook.common.internal.Objects.ToStringHelper; public toString(): string; } export module ToStringHelper { export class ValueHolder { public static class: java.lang.Class<com.facebook.common.internal.Objects.ToStringHelper.ValueHolder>; } } } } } } } declare module com { export module facebook { export module common { export module internal { export class Preconditions { public static class: java.lang.Class<com.facebook.common.internal.Preconditions>; public static checkNotNull(reference: any, errorMessage: any): any; public static checkArgument(expression: java.lang.Boolean): void; public static checkState(expression: boolean, errorMessageTemplate: string, errorMessageArgs: androidNative.Array<any>): void; public static checkArgument(expression: boolean, errorMessageTemplate: string, errorMessageArgs: androidNative.Array<any>): void; public static checkState(expression: boolean, errorMessage: any): void; public static checkElementIndex(index: number, size: number, desc: string): number; public static checkPositionIndex(index: number, size: number): number; public static checkState(expression: boolean): void; public static checkNotNull(reference: any, errorMessageTemplate: string, errorMessageArgs: androidNative.Array<any>): any; public static checkArgument(expression: boolean, errorMessage: any): void; public static checkElementIndex(index: number, size: number): number; public static checkPositionIndex(index: number, size: number, desc: string): number; public static checkPositionIndexes(start: number, end: number, size: number): void; public static checkNotNull(reference: any): any; } } } } } declare module com { export module facebook { export module common { export module internal { export class Predicate<T> extends java.lang.Object { public static class: java.lang.Class<com.facebook.common.internal.Predicate<any>>; /** * Constructs a new instance of the com.facebook.common.internal.Predicate<any> interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { apply(param0: T): boolean; }); public constructor(); public apply(param0: T): boolean; } } } } } declare module com { export module facebook { export module common { export module internal { export class Sets { public static class: java.lang.Class<com.facebook.common.internal.Sets>; public static newHashSet(): java.util.HashSet<any>; public static newIdentityHashSet(): java.util.Set<any>; public static newSetFromMap(map: java.util.Map<any,any>): java.util.Set<any>; public static newHashSetWithCapacity(capacity: number): java.util.HashSet<any>; public static newHashSet(elements: androidNative.Array<any>): java.util.HashSet<any>; public static newCopyOnWriteArraySet(): java.util.concurrent.CopyOnWriteArraySet<any>; public static newLinkedHashSet(): java.util.LinkedHashSet<any>; public static newHashSet(elements: java.lang.Iterable<any>): java.util.HashSet<any>; public static newHashSet(elements: java.util.Iterator<any>): java.util.HashSet<any>; } } } } } declare module com { export module facebook { export module common { export module internal { export class Supplier<T> extends java.lang.Object { public static class: java.lang.Class<com.facebook.common.internal.Supplier<any>>; /** * Constructs a new instance of the com.facebook.common.internal.Supplier<any> interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { get(): T; }); public constructor(); public get(): T; } } } } } declare module com { export module facebook { export module common { export module internal { export class Suppliers { public static class: java.lang.Class<com.facebook.common.internal.Suppliers>; public static BOOLEAN_TRUE: com.facebook.common.internal.Supplier<java.lang.Boolean>; public static BOOLEAN_FALSE: com.facebook.common.internal.Supplier<java.lang.Boolean>; public static STRING_EMPTY: com.facebook.common.internal.Supplier<string>; public constructor(); public static of(instance: any): com.facebook.common.internal.Supplier<any>; } } } } } declare module com { export module facebook { export module common { export module internal { export class Throwables { public static class: java.lang.Class<com.facebook.common.internal.Throwables>; public static getCausalChain(throwable: java.lang.Throwable): java.util.List<java.lang.Throwable>; public static propagateIfInstanceOf(throwable: java.lang.Throwable, declaredType: java.lang.Class<any>): void; public static propagate(throwable: java.lang.Throwable): java.lang.RuntimeException; public static getStackTraceAsString(throwable: java.lang.Throwable): string; public static propagateIfPossible(throwable: java.lang.Throwable, declaredType: java.lang.Class<any>): void; public static getRootCause(throwable: java.lang.Throwable): java.lang.Throwable; public static propagateIfPossible(throwable: java.lang.Throwable): void; public static propagateIfPossible(throwable: java.lang.Throwable, declaredType1: java.lang.Class<any>, declaredType2: java.lang.Class<any>): void; } } } } } declare module com { export module facebook { export module common { export module lifecycle { export class AttachDetachListener { public static class: java.lang.Class<com.facebook.common.lifecycle.AttachDetachListener>; /** * Constructs a new instance of the com.facebook.common.lifecycle.AttachDetachListener interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { onAttachToView(param0: globalAndroid.view.View): void; onDetachFromView(param0: globalAndroid.view.View): void; }); public constructor(); public onAttachToView(param0: globalAndroid.view.View): void; public onDetachFromView(param0: globalAndroid.view.View): void; } } } } } declare module com { export module facebook { export module common { export module logging { export class FLog { public static class: java.lang.Class<com.facebook.common.logging.FLog>; public static VERBOSE: number = 2; public static DEBUG: number = 3; public static INFO: number = 4; public static WARN: number = 5; public static ERROR: number = 6; public static ASSERT: number = 7; public static v(tag: string, msg: string, args: androidNative.Array<any>): void; public static w(tag: string, msg: string): void; public static v(tag: string, msg: string): void; public static v(cls: java.lang.Class<any>, msg: string, arg1: any): void; public static i(tag: string, msg: string): void; public static v(tag: string, msg: string, arg1: any): void; public static d(cls: java.lang.Class<any>, msg: string): void; public static i(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any, arg3: any, arg4: any): void; public static getMinimumLoggingLevel(): number; public static i(tag: string, msg: string, arg1: any, arg2: any): void; public static v(cls: java.lang.Class<any>, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static i(cls: java.lang.Class<any>, msg: string, arg1: any): void; public static v(cls: java.lang.Class<any>, msg: string, args: androidNative.Array<any>): void; public static w(tag: string, msg: string, tr: java.lang.Throwable): void; public constructor(); public static v(cls: java.lang.Class<any>, msg: string, tr: java.lang.Throwable): void; public static w(cls: java.lang.Class<any>, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static e(tag: string, msg: string): void; public static d(tag: string, msg: string): void; public static v(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any): void; public static w(cls: java.lang.Class<any>, msg: string): void; public static wtf(tag: string, msg: string, tr: java.lang.Throwable): void; public static i(tag: string, msg: string, arg1: any): void; public static i(cls: java.lang.Class<any>, msg: string): void; public static e(cls: java.lang.Class<any>, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static setLoggingDelegate(delegate: com.facebook.common.logging.LoggingDelegate): void; public static e(cls: java.lang.Class<any>, msg: string): void; public static wtf(cls: java.lang.Class<any>, msg: string, args: androidNative.Array<any>): void; public static e(tag: string, msg: string, args: androidNative.Array<any>): void; public static w(cls: java.lang.Class<any>, msg: string, tr: java.lang.Throwable): void; public static e(cls: java.lang.Class<any>, msg: string, tr: java.lang.Throwable): void; public static d(cls: java.lang.Class<any>, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static v(tag: string, msg: string, arg1: any, arg2: any, arg3: any, arg4: any): void; public static d(tag: string, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static v(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any, arg3: any): void; public static i(tag: string, msg: string, arg1: any, arg2: any, arg3: any, arg4: any): void; public static d(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any, arg3: any, arg4: any): void; public static v(tag: string, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static w(tag: string, msg: string, args: androidNative.Array<any>): void; public static i(tag: string, msg: string, arg1: any, arg2: any, arg3: any): void; public static d(tag: string, msg: string, arg1: any, arg2: any, arg3: any): void; public static i(tag: string, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static w(cls: java.lang.Class<any>, msg: string, args: androidNative.Array<any>): void; public static i(cls: java.lang.Class<any>, msg: string, args: androidNative.Array<any>): void; public static d(cls: java.lang.Class<any>, msg: string, arg1: any): void; public static d(cls: java.lang.Class<any>, msg: string, tr: java.lang.Throwable): void; public static wtf(cls: java.lang.Class<any>, msg: string, tr: java.lang.Throwable): void; public static d(tag: string, msg: string, arg1: any, arg2: any): void; public static w(tag: string, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static e(cls: java.lang.Class<any>, msg: string, args: androidNative.Array<any>): void; public static wtf(tag: string, msg: string): void; public static i(tag: string, msg: string, tr: java.lang.Throwable): void; public static e(tag: string, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static wtf(tag: string, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static isLoggable(level: number): boolean; public static d(tag: string, msg: string, args: androidNative.Array<any>): void; public static i(cls: java.lang.Class<any>, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static d(cls: java.lang.Class<any>, msg: string, args: androidNative.Array<any>): void; public static setMinimumLoggingLevel(level: number): void; public static v(tag: string, msg: string, arg1: any, arg2: any): void; public static v(tag: string, msg: string, tr: java.lang.Throwable): void; public static d(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any, arg3: any): void; public static v(tag: string, msg: string, arg1: any, arg2: any, arg3: any): void; public static d(tag: string, msg: string, tr: java.lang.Throwable): void; public static d(tag: string, msg: string, arg1: any, arg2: any, arg3: any, arg4: any): void; public static v(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any, arg3: any, arg4: any): void; public static i(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any): void; public static wtf(tag: string, msg: string, args: androidNative.Array<any>): void; public static wtf(cls: java.lang.Class<any>, msg: string): void; public static d(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any): void; public static i(tag: string, msg: string, args: androidNative.Array<any>): void; public static wtf(cls: java.lang.Class<any>, tr: java.lang.Throwable, msg: string, args: androidNative.Array<any>): void; public static d(tag: string, msg: string, arg1: any): void; public static i(cls: java.lang.Class<any>, msg: string, arg1: any, arg2: any, arg3: any): void; public static v(cls: java.lang.Class<any>, msg: string): void; public static e(tag: string, msg: string, tr: java.lang.Throwable): void; public static i(cls: java.lang.Class<any>, msg: string, tr: java.lang.Throwable): void; } } } } } declare module com { export module facebook { export module common { export module logging { export class FLogDefaultLoggingDelegate extends com.facebook.common.logging.LoggingDelegate { public static class: java.lang.Class<com.facebook.common.logging.FLogDefaultLoggingDelegate>; public static sInstance: com.facebook.common.logging.FLogDefaultLoggingDelegate; public d(tag: string, msg: string, tr: java.lang.Throwable): void; public setMinimumLoggingLevel(level: number): void; public getMinimumLoggingLevel(): number; public wtf(tag: string, msg: string): void; public v(param0: string, param1: string, param2: java.lang.Throwable): void; public wtf(param0: string, param1: string): void; public wtf(tag: string, msg: string, tr: java.lang.Throwable): void; public setApplicationTag(tag: string): void; public d(param0: string, param1: string): void; public e(param0: string, param1: string): void; public v(tag: string, msg: string, tr: java.lang.Throwable): void; public isLoggable(param0: number): boolean; public w(tag: string, msg: string, tr: java.lang.Throwable): void; public w(param0: string, param1: string): void; public i(tag: string, msg: string, tr: java.lang.Throwable): void; public v(param0: string, param1: string): void; public d(param0: string, param1: string, param2: java.lang.Throwable): void; public log(param0: number, param1: string, param2: string): void; public d(tag: string, msg: string): void; public e(tag: string, msg: string): void; public i(param0: string, param1: string, param2: java.lang.Throwable): void; public i(tag: string, msg: string): void; public log(priority: number, tag: string, msg: string): void; public e(param0: string, param1: string, param2: java.lang.Throwable): void; public v(tag: string, msg: string): void; public w(tag: string, msg: string): void; public e(tag: string, msg: string, tr: java.lang.Throwable): void; public setMinimumLoggingLevel(param0: number): void; public i(param0: string, param1: string): void; public wtf(param0: string, param1: string, param2: java.lang.Throwable): void; public static getInstance(): com.facebook.common.logging.FLogDefaultLoggingDelegate; public isLoggable(level: number): boolean; public w(param0: string, param1: string, param2: java.lang.Throwable): void; } } } } } declare module com { export module facebook { export module common { export module logging { export class LoggingDelegate { public static class: java.lang.Class<com.facebook.common.logging.LoggingDelegate>; /** * Constructs a new instance of the com.facebook.common.logging.LoggingDelegate interface with the provided implementation. An empty constructor exists calling super() when extending the interface class. */ public constructor(implementation: { setMinimumLoggingLevel(param0: number): void; getMinimumLoggingLevel(): number; isLoggable(param0: number): boolean; v(param0: string, param1: string): void; v(param0: string, param1: string, param2: java.lang.Throwable): void; d(param0: string, param1: string): void; d(param0: string, param1: string, param2: java.lang.Throwable): void; i(param0: string, param1: string): void; i(param0: string, param1: string, param2: java.lang.Throwable): void; w(param0: string, param1: string): void; w(param0: string, param1: string, param2: java.lang.Throwable): void; e(param0: string, param1: string): void; e(param0: string, param1: string, param2: java.lang.Throwable): void; wtf(param0: string, param1: string): void; wtf(param0: string, param1: string, param2: java.lang.Throwable): void; log(param0: number, param1: string, param2: string): void; }); public constructor(); public i(param0: string, param1: string, param2: java.lang.Throwable): void; public getMinimumLoggingLevel(): number; public v(param0: string, param1: string, param2: java.lang.Throwable): void; public e(param0: string, param1: string, param2: java.lang.Throwable): void; public wtf(param0: string, param1: string): void; public d(param0: string, param1: string): void; public e(param0: string, param1: string): void; public setMinimumLoggingLevel(param0: number): void; public isLoggable(param0: number): boolean; public i(param0: string, param1: string): void; public wtf(param0: string, param1: string, param2: java.lang.Throwable): void; public w(param0: string, param1: string): void; public v(param0: string, param1: string): void; public d(param0: string, param1: string, param2: java.lang.Throwable): void; public w(param0: string, param1: string, param2: java.lang.Throwable): void; public log(param0: number, param1: string, param2: string): void; } } } } } declare module com { export module facebook { export module common { export module media { export class MediaUtils { public static class: java.lang.Class<com.facebook.common.media.MediaUtils>; public static INSTANCE: com.facebook.common.media.MediaUtils; public static ADDITIONAL_ALLOWED_MIME_TYPES: java.util.Map<string,string>; public static isThreeD(mimeType: string): boolean; public static isNonNativeSupportedMimeType(mimeType: string): boolean; public static isVideo(mimeType: string): boolean; public static isPhoto(mimeType: string): boolean; public static extractMime(extension: string): string; } } } } } declare module com { export module facebook { export module common { export module media { export class MimeTypeMapWrapper { public static class: java.lang.Class<com.facebook.common.media.MimeTypeMapWrapper>; public constructor(); public static hasMimeType(mimeType: string): boolean; public static hasExtension(extension: string): boolean; public static getMimeTypeFromExtension(extension: string): string; public static getExtensionFromMimeType(mimeType: string): string; } } } } } declare module com { export module facebook { export module common { export module memory { export class ByteArrayPool extends com.