mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
184 lines
6.6 KiB
TypeScript
184 lines
6.6 KiB
TypeScript
/// <reference path="./global-types.d.ts" />
|
|
/**
|
|
* IMPORTANT: this is not generated automatically due to this issue:
|
|
* https://github.com/microsoft/TypeScript/issues/36763
|
|
* the reference path above will get rewritten and break on compilation unless kept here
|
|
* Once issue is resolve we can remove this index.d.ts from repo and go back to auto generation on tsc
|
|
*/
|
|
export type { NativeScriptConfig } from './config';
|
|
|
|
export { iOSApplication, AndroidApplication } from './application';
|
|
export type {
|
|
ApplicationEventData,
|
|
LaunchEventData,
|
|
OrientationChangedEventData,
|
|
UnhandledErrorEventData,
|
|
DiscardedErrorEventData,
|
|
CssChangedEventData,
|
|
LoadAppCSSEventData,
|
|
AndroidActivityEventData,
|
|
AndroidActivityBundleEventData,
|
|
AndroidActivityRequestPermissionsEventData,
|
|
AndroidActivityResultEventData,
|
|
AndroidActivityNewIntentEventData,
|
|
AndroidActivityBackPressedEventData,
|
|
SystemAppearanceChangedEventData,
|
|
} from './application';
|
|
|
|
// export * as Application from './application';
|
|
export * from './application';
|
|
|
|
// import { AndroidApplication, iOSApplication, systemAppearanceChanged, getMainEntry, getRootView, _resetRootView, getResources, setResources, setCssFileName, getCssFileName, loadAppCss, addCss, on, off, notify, hasListeners, run, orientation, getNativeApplication, hasLaunched, systemAppearance, setAutoSystemAppearanceChanged, setMaxRefreshRate } from './application';
|
|
// export declare const Application: {
|
|
// launchEvent: string;
|
|
// displayedEvent: string;
|
|
// uncaughtErrorEvent: string;
|
|
// discardedErrorEvent: string;
|
|
// suspendEvent: string;
|
|
// resumeEvent: string;
|
|
// exitEvent: string;
|
|
// foregroundEvent: string;
|
|
// backgroundEvent: string;
|
|
// lowMemoryEvent: string;
|
|
// orientationChangedEvent: string;
|
|
// systemAppearanceChangedEvent: string;
|
|
// fontScaleChangedEvent: string;
|
|
// systemAppearanceChanged: typeof systemAppearanceChanged;
|
|
// setMaxRefreshRate: typeof setMaxRefreshRate;
|
|
// getMainEntry: typeof getMainEntry;
|
|
// getRootView: typeof getRootView;
|
|
// resetRootView: typeof _resetRootView;
|
|
// getResources: typeof getResources;
|
|
// setResources: typeof setResources;
|
|
// setCssFileName: typeof setCssFileName;
|
|
// getCssFileName: typeof getCssFileName;
|
|
// loadAppCss: typeof loadAppCss;
|
|
// addCss: typeof addCss;
|
|
// on: typeof on;
|
|
// off: typeof off;
|
|
// notify: typeof notify;
|
|
// hasListeners: typeof hasListeners;
|
|
// run: typeof run;
|
|
// orientation: typeof orientation;
|
|
// getNativeApplication: typeof getNativeApplication;
|
|
// hasLaunched: typeof hasLaunched;
|
|
// systemAppearance: typeof systemAppearance;
|
|
// setAutoSystemAppearanceChanged: typeof setAutoSystemAppearanceChanged;
|
|
// android: AndroidApplication;
|
|
// ios: iOSApplication;
|
|
// suspended: boolean;
|
|
// inBackground: boolean;
|
|
// };
|
|
|
|
export * as ApplicationSettings from './application-settings';
|
|
// import { setString, getString, clear, flush, getAllKeys, getBoolean, getNumber, hasKey, remove, setBoolean, setNumber } from './application-settings';
|
|
// export declare const ApplicationSettings: {
|
|
// clear: typeof clear;
|
|
// flush: typeof flush;
|
|
// hasKey: typeof hasKey;
|
|
// remove: typeof remove;
|
|
// setString: typeof setString;
|
|
// getString: typeof getString;
|
|
// getAllKeys: typeof getAllKeys;
|
|
// getBoolean: typeof getBoolean;
|
|
// setBoolean: typeof setBoolean;
|
|
// getNumber: typeof getNumber;
|
|
// setNumber: typeof setNumber;
|
|
// };
|
|
// export declare const AccessibilityEvents: {
|
|
// accessibilityBlurEvent: string;
|
|
// accessibilityFocusEvent: string;
|
|
// accessibilityFocusChangedEvent: string;
|
|
// };
|
|
import * as Accessibility from './accessibility';
|
|
export namespace AccessibilityEvents {
|
|
export const accessibilityBlurEvent = Accessibility.accessibilityBlurEvent;
|
|
export const accessibilityFocusEvent = Accessibility.accessibilityFocusEvent;
|
|
export const accessibilityFocusChangedEvent =
|
|
Accessibility.accessibilityFocusChangedEvent;
|
|
export const accessibilityPerformEscapeEvent =
|
|
Accessibility.accessibilityPerformEscapeEvent;
|
|
}
|
|
export {
|
|
AccessibilityLiveRegion,
|
|
AccessibilityRole,
|
|
AccessibilityState,
|
|
AccessibilityTrait,
|
|
FontScaleCategory,
|
|
} from './accessibility';
|
|
export { Color } from './color';
|
|
export * as Connectivity from './connectivity';
|
|
// import { connectionType, getConnectionType, startMonitoring, stopMonitoring } from './connectivity';
|
|
// export declare const Connectivity: {
|
|
// connectionType: typeof connectionType;
|
|
// getConnectionType: typeof getConnectionType;
|
|
// startMonitoring: typeof startMonitoring;
|
|
// stopMonitoring: typeof stopMonitoring;
|
|
// };
|
|
export * from './core-types';
|
|
export { CSSUtils } from './css/system-classes';
|
|
export { ObservableArray, ChangeType } from './data/observable-array';
|
|
export type { ChangedData } from './data/observable-array';
|
|
export {
|
|
Observable,
|
|
WrappedValue,
|
|
fromObject,
|
|
fromObjectRecursive,
|
|
} from './data/observable';
|
|
export type { PropertyChangeData, EventData } from './data/observable';
|
|
export { VirtualArray } from './data/virtual-array';
|
|
export type { ItemsLoading } from './data/virtual-array';
|
|
export {
|
|
File,
|
|
FileSystemEntity,
|
|
Folder,
|
|
knownFolders,
|
|
path,
|
|
getFileAccess,
|
|
AndroidDirectory,
|
|
} from './file-system';
|
|
export type {
|
|
HttpRequestOptions,
|
|
HttpResponse,
|
|
Headers,
|
|
HttpResponseEncoding,
|
|
HttpContent,
|
|
} from './http';
|
|
export * as Http from './http';
|
|
// import { getFile, getImage, getJSON, getString as httpGetString } from './http';
|
|
// export declare const Http: {
|
|
// getFile: typeof getFile;
|
|
// getImage: typeof getImage;
|
|
// getJSON: typeof getJSON;
|
|
// getString: typeof httpGetString;
|
|
// request: (options: import('./http').HttpRequestOptions) => Promise<import('./http').HttpResponse>;
|
|
// };
|
|
export { ImageAsset } from './image-asset';
|
|
export type { ImageAssetOptions } from './image-asset';
|
|
export { ImageSource } from './image-source';
|
|
export { ModuleNameResolver, _setResolver } from './module-name-resolver';
|
|
export type { ModuleListProvider, PlatformContext } from './module-name-resolver';
|
|
export { isAndroid, isIOS, Screen, Device, platformNames } from './platform';
|
|
export type { IDevice } from './platform';
|
|
export {
|
|
profile,
|
|
enable as profilingEnable,
|
|
disable as profilingDisable,
|
|
time as profilingTime,
|
|
uptime as profilingUptime,
|
|
start as profilingStart,
|
|
stop as profilingStop,
|
|
isRunning as profilingIsRunning,
|
|
dumpProfiles as profilingDumpProfiles,
|
|
resetProfiles as profilingResetProfiles,
|
|
startCPUProfile as profilingStartCPU,
|
|
stopCPUProfile as profilingStopCPU,
|
|
} from './profiling';
|
|
export type { InstrumentationMode, TimerInfo } from './profiling';
|
|
export { encoding } from './text';
|
|
export * from './trace';
|
|
export * from './ui';
|
|
export * as Utils from './utils';
|
|
|
|
export { XmlParser, ParserEventType, ParserEvent } from './xml';
|