[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

api[tns8] 04 tns/toDo.st

"toDo.st"

self cancelFileIn!

declare module "data/virtual-array" {
    export class VirtualArray<T> extends observable.Observable {
        public static changeEvent: string;
        public static itemsLoadingEvent: string;
        constructor(arrayLength?: number);
        length: number;
        loadSize: number;
        getItem(index: number): T;
        setItem(index: number, value: T): void;
        load(index: number, items: T[]): void;
        on(eventNames: string, callback: (data: observable.EventData) => void, thisArg?: any);
        on(event: "itemsLoading", callback: (args: ItemsLoading) => void, thisArg?: any);
        on(event: "change", callback: (args: ChangedData<T>) => void, thisArg?: any);
    }
    export interface ItemsLoading extends observable.EventData {
        index: number;
        count: number;
    }
}
declare module "ui/core/weak-event-listener" {
    import observable = require("data/observable");
    export function addWeakEventListener(source: observable.Observable, eventName: string, handler: (eventData: observable.EventData) => void, target: any) : void;
    export function removeWeakEventListener(source: observable.Observable, eventName: string, handler: (eventData: observable.EventData) => void, target: any): void;
}
interface WeakMap<K, V> {
    clear(): void;
    delete(key: K): boolean;
    get(key: K): V;
    has(key: K): boolean;
    set(key: K, value: V): WeakMap<K, V>;
}
declare var WeakMap: {
    new <K, V>(): WeakMap<K, V>;
}
declare module "ui/web-view" {
    import view = require("ui/core/view");
    import dependencyObservable = require("ui/core/dependency-observable");
    import observable = require("data/observable");
    export class WebView extends view.View {
        public static loadStartedEvent: string;
        public static loadFinishedEvent: string;
        public static navigationTypes: string[];
        public static urlProperty: dependencyObservable.Property;
        android: any ;
        ios: any ;
        url: string;
        src: string;
        canGoBack: boolean;
        canGoForward: boolean;
        stopLoading(): void;
        goBack();
        goForward();
        reload();
        on(eventNames: string, callback: (data: observable.EventData) => void, thisArg?: any);
        on(event: "loadFinished", callback: (args: LoadEventData) => void, thisArg?: any);
        on(event: "loadStarted", callback: (args: LoadEventData) => void, thisArg?: any);
    }
    export interface LoadEventData extends observable.EventData {
        url: string;
        navigationType: string;
        error: string;
    }
}
declare module "ui/layouts/wrap-layout" {
    import {LayoutBase} from "ui/layouts/layout-base";
    import {Property} from "ui/core/dependency-observable";
    class WrapLayout extends LayoutBase {
        public static orientationProperty: Property;
        public static itemWidthProperty: Property;
        public static itemHeightProperty: Property;
        orientation: string;
        itemWidth: number;
        itemHeight: number;
    }
}
declare module "xml" {
    class ParserEventType {
        static StartElement: string;
        static EndElement: string;
        static Text: string;
        static CDATA: string;
        static Comment: string;
    }
    interface Position {
        line: number;
        column: number;
    }
    interface ParserEvent {
        eventType: string;
        position: Position;
        prefix?: string;
        namespace?: string;
        elementName?: string;
        attributes?: Object;
        data?: string;
        toString(): string;
    }
    class XmlParser {
        constructor(onEvent: (event: ParserEvent) => void, onError?: (error: Error, position: Position) => void, processNamespaces?: boolean, angularSyntax?: boolean);
        parse(xmlString: string): void;
    }
}


NativeScriptModule
  name: xxxxxxxxx api: #(
  #(classes
   #( XXXXX YYYYYY #(
     #(accessors aaaaa )
   ))
  )
 )!