PolarApiAccessor Class
Introduction
The PolarApiAccessor
class provides a way to access the Polar API. It serves as a factory for obtaining instances of the PolarApi interface.
Methods
access
public static Optional<PolarApi> access() throws PolarNotLoadedException;
Description:
This static method retrieves an instance of the PolarApi interface. If Polar is not loaded, a PolarNotLoadedException
is thrown.
Returns:
An Optional
containing the PolarApi instance, or an empty Optional
if Polar is not available.
Throws:
PolarNotLoadedException
- If Polar is not loaded in the current environment