getHealthService()

Use this factory function to get an instance of HealthService.

Syntax 

1import { getHealthService } from 'lightning/mobileCapabilities';
2getHealthService(): HealthService

Parameters 

None

Returns 

An instance of HealthService.

Usage 

There are no parameters or options when creating an instance. Use the instance to perform health data operations.

See Also