ValidicFitManager

object ValidicFitManager : AggregatorManager<DataType, Task<*>, DataReadResponse>

Main entry point for the Validic Mobile Aggregator platform to request authorization and collect health data on behalf of the end user.

Functions

currentSubscriptions
Link copied to clipboard
open override fun currentSubscriptions(): List<DataType>
disconnect
Link copied to clipboard
open override fun disconnect()
Disconnect from the aggregator platform.
fetchHistory
Link copied to clipboard
open fun fetchHistory(historyType: AggregatorManager.HistoryType)
Fetch 180 previous days of data for a dataType,
open override fun fetchHistory(historyType: AggregatorManager.HistoryType, from: LocalDate, to: LocalDate)
Fetch a custom date range of historical data for a HistoryType
handlePermissionResult
Link copied to clipboard
open fun handlePermissionResult(activity: Activity, requestCode: Int, resultCode: Int, intent: Intent?)
Handles responses for requests to authorize the Validic Aggregator to access data from the end user's device Place in the activity's Activity.onActivityResult
hasDataAccess
Link copied to clipboard
open override fun hasDataAccess(dataTypes: Set<DataType>): Map<DataType, Boolean>
Check if the Validic SDK has been granted permission by the end user to collect data for a set of data types
requestPermissions
Link copied to clipboard
open override fun requestPermissions(activity: Activity, dataTypes: Set<DataType>, listener: AggregatorManager.PermissionsHandler<DataType>)
Request authorization to the aggregator platform from the end user.
subscribe
Link copied to clipboard
open override fun subscribe(dataTypes: Set<DataType>)
Register to receive an updates when data changes for a data type.
unsubscribe
Link copied to clipboard
open override fun unsubscribe(dataType: DataType)
Unregister from receiving data change updates for a data type.

Properties

listener
Link copied to clipboard
open override var listener: AggregatorManager.AggregatorListener?
supportedDataTypes
Link copied to clipboard
open override val supportedDataTypes: Set<DataType>
List of DataType supported by the platform.