Support for the legacy Fitbit Web API ends on September 30, 2026
Important: Support for the legacy Fitbit Web API ends on September 30, 2026. After this date the API will continue to operate, but Google will no longer fix bugs or provide API support. On October 30, 2026, the Fitbit Web API will be turned off and will no longer function or sync data to or from Fitbit users. To continue accessing data for your users after this date, migrate to the Google Health API.
Globals API
chevron down
 

Globals API

Variable: self

Type: [CompanionGlobalScope]

New in SDK 3.0.0

The self read-only property of the CompanionGlobalScope interface returns a reference to theCompanionGlobalScope itself.

Interface: CompanionGlobalScope

New in SDK 3.0.0

The CompanionGlobalScope interface is an interface representing the scope of any companion. Companions have no browsing context; this scope contains the information usually conveyed by Window objects

Properties

self

CompanionGlobalScope

Methods

clearInterval()

clearInterval(handle: number)

Returns: void

clearTimeout()

clearTimeout(handle: number)

Returns: void

setInterval()

setInterval(handler: (...args: any[]) => void, timeout: number, params: any[])

Returns: number

setTimeout()

setTimeout(handler: (...args: any[]) => void, timeout: number, params: any[])

Returns: number