MethodChannelBackgroundHttpClient class

BackgroundHttpClientPlatform implementation using method channels

Inheritance

Properties

eventChannel EventChannel
Event channel for receiving events about completed tasks
final
hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
Method channel for interaction with the native platform
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelAllTasks() Future<int>
Cancels all tasks
override
cancelRequest(String requestId) Future<bool?>
Cancels a task by ID
override
createRequest(Map<String, dynamic> requestJson) Future<Map<String, dynamic>>
Creates an HTTP request in the native HTTP service
override
deleteRequest(String requestId) Future<bool?>
Deletes a task and all related files by ID
override
getCompletedTasksStream() Stream<String>
Gets a stream with IDs of completed tasks
override
getPendingTasks() Future<List<Map<String, dynamic>>>
Gets a list of pending tasks with registration dates
override
getQueueStats() Future<Map<String, dynamic>>
Gets task queue statistics
override
getRequestStatus(String requestId) Future<Map<String, dynamic>?>
Gets task status by ID
override
getResponse(String requestId) Future<Map<String, dynamic>?>
Gets server response by task ID
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processQueue() Future<bool>
Forces queue processing
override
setMaxConcurrentTasks(int count) Future<bool>
Sets the maximum number of concurrent tasks
override
setMaxQueueSize(int size) Future<bool>
Sets the maximum queue size
override
syncQueueState() Future<bool>
Synchronizes the queue state with the actual task state
override
toString() String
A string representation of this object.
inherited

Operators

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