export class IgrAsyncCompletedEventArgs {
    /**
     * @hidden
     */
    get i() {
        return this._implementation;
    }
    constructor() {
    }
    _provideImplementation(i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
        if (this._initializeAdapters) {
            this._initializeAdapters();
        }
    }
    onImplementationCreated() {
    }
    get errorMessage() {
        if (this.i.error != null) {
            return this.i.error.message;
        }
        return null;
    }
    get cancelled() {
        return this.i.cancelled;
    }
    get userState() {
        return this.i.userState;
    }
}
