BackgroundFetchRegistration class
The interface of the Background Fetch API represents an
individual background fetch.
A instance is returned by the BackgroundFetchManager.fetch()
or BackgroundFetchManager.get()
methods, and therefore there
has no constructor.
EventTarget
BackgroundFetchRegistration
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- BackgroundFetchRegistration()
-
factory
Properties
- downloaded → int
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter - downloadTotal → int
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter - failureReason → BackgroundFetchFailureReason
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter -
onprogress
↔ EventHandlerNonNull<
Event> ? -
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
getter/setter pair - recordsAvailable → bool
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter - result → BackgroundFetchResult
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uploaded → int
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter - uploadTotal → int
-
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
no setter
Methods
-
abort(
) → Future< bool> -
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
match(
dynamic request, [CacheQueryOptions? options]) → Future< BackgroundFetchRecord> -
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
-
matchAll(
[dynamic request, CacheQueryOptions? options]) → Future< Iterable< BackgroundFetchRecord> > -
Available on BackgroundFetchRegistration, provided by the PropsBackgroundFetchRegistration extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited