IAsyncOperation<TResult> class abstract interface

Represents an asynchronous operation, which returns a result upon completion. This is the return type for many Windows Runtime asynchronous methods that have results but don't report progress.

Implemented types
Available extensions

Constructors

IAsyncOperation.fromPtr(Pointer<COMObject> ptr, {TResult creator(Pointer<COMObject>)?, TResult enumCreator(int)?, DoubleType? doubleType, IntType? intType})
Creates an instance of IAsyncOperation from the given ptr.
factory

Properties

completed Pointer<COMObject>
Gets the method that handles the operation completed notification.
getter/setter pair
errorCode int
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id int
no setteroverride
ptr Pointer<COMObject>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status AsyncStatus
no setteroverride

Methods

addRef() int
Increments the reference count for an interface pointer to a COM object.
inherited
cancel() → void
override
cast<T extends IUnknown>(T creator(Pointer<COMObject>), String iid) → T

Available on IUnknown, provided by the IUnknownHelpers extension

Casts this COM object to an interface specified in iid.
close() → void
override
detach() → void
Detaches the object from the Finalizer.
inherited
getIids(Pointer<Uint32> iidCount, Pointer<Pointer<GUID>> iids) int
inherited
getResults() → TResult
Gets the result of the asynchronous operation.
getRuntimeClassName(Pointer<IntPtr> className) int
inherited
getTrustLevel(Pointer<Int32> trustLevel) int
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryInterface(Pointer<GUID> riid, Pointer<Pointer<NativeType>> ppvObject) int
Queries a COM object for a pointer to one of its interface; identifying the interface by a reference to its interface identifier (IID).
inherited
release() int
Decrements the reference count for an interface on a COM object.
inherited
toInterface(String iid) Pointer<COMObject>
Cast an existing COM object to a specified interface.
inherited
toString() String
A string representation of this object.
inherited
tryCast<T extends IUnknown>(T creator(Pointer<COMObject>), String iid) → T?

Available on IUnknown, provided by the IUnknownHelpers extension

Tries to cast this COM object to an interface specified in iid.

Operators

operator ==(Object other) bool
The equality operator.
inherited