MediaTransferHandle

Asynchronous media transfer handle.

Keep it to have the completion status called. To cancel the transfer when the handle is closed, call setAutoCancel(true). You can close the handle by closing the handle.

The transfer is also cancelled when the handle is set to auto cancel and it is garbage-collected. Because garbage collection is not deterministic, you should not rely on it and always close it when you want to stop it.

Functions

Link copied to clipboard
Unsupported.
Link copied to clipboard
open fun close()
Close the native pointer.
abstract fun close()
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Check if the pointer is equal to another one.
Link copied to clipboard
open fun hashCode(): Int
Get hash code.
Link copied to clipboard
open fun isAutoCancel(): Boolean
Set whether the handle should cancel the transfer on close.
Link copied to clipboard
open fun isClosed(): Boolean
Check if the native pointer is closed.
Link copied to clipboard
open fun isMutable(): Boolean
Check if the native pointer is mutable.
Link copied to clipboard
open fun isSamePointer(@NonNull other: Pointer): Boolean
Check if the pointer is the same as in another pointer.
Link copied to clipboard
open fun setAutoCancel(autoCancel: Boolean)
Check whether the handle should cancel the transfer on close.
Link copied to clipboard
open fun toString(): String
Report string describing this pointer.