BackgroundFetchRegistration.uploadTotal

The uploadTotal read-only property of the BackgroundFetchRegistration interface returns the total number of bytes to be sent to the server.

Syntax

let uploadTotal = BackgroundFetchRegistration.uploadTotal;

Value

A number.

Examples

Logging BackgroundFetchRegistration.uploadTotal to the console returns the uploadTotal.

console.log(bgFetch.uploadTotal);

Specifications

Specification Status Comment
Background Fetch
The definition of 'BackgroundFetchRegistration.uploadTotal' in that specification.
Draft Initial definition.

Browser compatibility

BCD tables only load in the browser