Interface IAsyncActionWithProgress

Hierarchy

Index

Properties

Methods

Properties

public completed: AsyncActionWithProgressCompletedHandler

public errorCode: number

public id: number

public progress: AsyncActionProgressHandler

public status: AsyncStatus

Methods

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

Parameters

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

public cancel()

public close()

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

public getResults()

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