BackgroundHttpClientPlatform class abstract

Abstract platform interface class for background_http_client

Inheritance
  • Object
  • PlatformInterface
  • BackgroundHttpClientPlatform
Implementers

Constructors

BackgroundHttpClientPlatform()
Platform interface constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Properties

instance BackgroundHttpClientPlatform
Default instance of BackgroundHttpClientPlatform
getter/setter pair