Modernizing the Fitbit Developer Experience.
The Fitbit Web APIs are moving to a new, scalable infrastructure. We will be deprecating the legacy Fitbit Web API in September 2026. To ensure uninterrupted data continuity for your users, you will need to migrate your applications. Detailed migration guides are live on the Google Health API developer site.
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