Interface IPromise

Hierarchy

Index

Methods

Methods

optional public addEventListener(type: string, listener: Function, capture?: boolean)

Parameters

  • type: string
  • listener: Function
  • capture?: boolean optional

public cancel()

optional public dispatchEvent(type: string, details: any): boolean

Parameters

  • type: string
  • details: any

Returns

boolean

optional public done(success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void)

Parameters

  • success?: (value: T) => any optional
  • error?: (error: any) => any optional
  • progress?: (progress: any) => void optional

optional public onerror(eventInfo: CustomEvent)

Parameters

  • eventInfo: CustomEvent

optional public removeEventListener(eventType: string, listener: Function, capture?: boolean)

Parameters

  • eventType: string
  • listener: Function
  • capture?: boolean optional

public then(success?: (value: T) => Windows.Foundation.IPromise<U>, error?: (error: any) => Windows.Foundation.IPromise<U>, progress?: (progress: any) => void): IPromise

Parameters

  • success?: (value: T) => Windows.Foundation.IPromise<U> optional
  • error?: (error: any) => Windows.Foundation.IPromise<U> optional
  • progress?: (progress: any) => void optional

Returns

IPromise

public then(success?: (value: T) => Windows.Foundation.IPromise<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise

Parameters

  • success?: (value: T) => Windows.Foundation.IPromise<U> optional
  • error?: (error: any) => U optional
  • progress?: (progress: any) => void optional

Returns

IPromise

public then(success?: (value: T) => U, error?: (error: any) => Windows.Foundation.IPromise<U>, progress?: (progress: any) => void): IPromise

Parameters

  • success?: (value: T) => U optional
  • error?: (error: any) => Windows.Foundation.IPromise<U> optional
  • progress?: (progress: any) => void optional

Returns

IPromise

public then(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise

Parameters

  • success?: (value: T) => U optional
  • error?: (error: any) => U optional
  • progress?: (progress: any) => void optional

Returns

IPromise