MethodChannelOpenWearablesHealthSdk class
MethodChannel-based implementation of the OpenWearablesHealthSdk platform interface.
- Inheritance
-
- Object
- PlatformInterface
- OpenWearablesHealthSdkPlatform
- MethodChannelOpenWearablesHealthSdk
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearSyncSession(
) → Future< void> -
Clears any interrupted sync session without resuming.
override
-
configure(
{required String host}) → Future< bool> -
Configures the plugin with the host URL.
Returns true if sync was auto-restored (session + sync was active).
override
-
getAvailableProviders(
) → Future< List< Map< >String, dynamic> > -
Returns list of available health providers on the current device.
override
-
getStoredCredentials(
) → Future< Map< String, dynamic> > -
Returns stored credentials for debugging/display purposes.
override
-
getSyncStatus(
) → Future< Map< String, dynamic> > -
Returns the current sync session status.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestAuthorization(
{required List< String> types}) → Future<bool> -
Requests authorization from HealthKit/Health Connect.
override
-
resetAnchors(
) → Future< void> -
override
-
restoreSession(
) → Future< String?> -
Restores session from secure storage if available.
override
-
resumeSync(
) → Future< void> -
Manually resumes an interrupted sync session.
override
-
setLogLevel(
{required String level}) → Future< void> -
Sets the native SDK log level.
override
-
setProvider(
{required String providerId}) → Future< void> -
Sets the health data provider to use on Android.
override
-
setSyncNotification(
{String? title, String? text}) → Future< void> -
Customizes the foreground notification shown during background sync.
override
-
signIn(
{required String userId, String? accessToken, String? refreshToken, String? apiKey}) → Future< void> -
Signs in a user with the given credentials.
override
-
signOut(
) → Future< void> -
Signs out the current user and clears all tokens from secure storage.
override
-
startBackgroundSync(
{int? syncDaysBack}) → Future< bool> -
Starts background sync. Optionally set
syncDaysBackto control how many days of historical data to sync (from start of day, inclusive). Whennull(the default), syncs all available history (full sync).override -
stopBackgroundSync(
) → Future< void> -
override
-
syncNow(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTokens(
{required String accessToken, String? refreshToken}) → Future< void> -
Updates the access token (and optionally refresh token) for the current session.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited