quantactions_flutter_plugin
library
Classes
-
BasicInfo
-
Basic Info Model. Contains basic information about the user.
-
Cohort
-
Cohort Model. Contains information about a cohort.
-
JournalEntry
-
Journal Entry
-
JournalEvent
-
Journal Event
-
JournalEventEntity
-
Journal Event Entity fot DB
-
KeyboardSettings
-
iOS only
Keyboard settings
-
MetricType
-
Metric type, generic class for all metrics
-
PopulationRange
-
Range for the whole population
-
QAFlutterPlugin
-
Main QA entry point.
-
Questionnaire
-
Model for Questionnaire.
-
Range
-
Range for a metric
-
ScreenTimeAggregate
-
This data class holds information about total and social screen time.
-
SexRange
-
Range for all age groups for a specific sex group
-
SleepSummary
-
This data class hold detailed information about a sleep session (or sleep episode).
See also
com.quantactions.sdk.Metric.SLEEP_SUMMARY
for a Time series of these episodes (generally one per day/night).
-
Subscription
-
This object hold the information about a subscription. It returns the
subscriptionId, the list of deviceIds connected to this subscription and the cohortId relative to
the subscription.
-
SubscriptionWithQuestionnaires
-
Class containing the information about a cohort and all of its questionnaires.
-
TimeSeries<T>
-
Utility class to hold a pair of lists, one with the score values and one with the timestamps
@property timestamps timestamps relative to the score, are always normalized to the CURRENT local
time zone of the device
-
TimeSeriesObjectNan
-
an interface for the time series objects that allows to check if the object is nan
-
TrendHolder
-
Thi object contains 9 values. For each time resolution (short: 2 Weeks, medium: 6 Weeks,
long: 1 Year) the trend has 3 values: (difference: value of the change, statistic: p-value,
significance: significance of the change)
Enums
-
AuthorizationStatus
-
Status of the permissions
-
Gender
-
Gender, will be used to provide comparison with healthy peer groups.
-
Metric
-
Enumeration class that holds all of the info for the metrics
-
MetricInterval
-
Enum for metric interval, used to retrieval a certain backward time window
-
Trend
-
Enumeration class that holds all of the info for the trends relative to each metric
Functions
-
fillMissingDays(TimeSeries<double> timeSeries, int rewindDays)
→ TimeSeries<double>
-
Use this function to fill missing days (the function adds NaNs) both in the future and in the
past (up to the specified number of days in the past). Since the SDK does not return a value
for the score in a day where the confidence it too low, this function can be useful to fill
in blanks for UI/UX purposes.
timeSeries
the current TimeSeries
rewindDays
how many days to fill in in the past
-
fillMissingDaysScreenTimeAggregate(TimeSeries<ScreenTimeAggregate> timeSeries, int rewindDays)
→ TimeSeries<ScreenTimeAggregate>
-
Use this function to fill missing days (the function adds NaNs) both in the future and in the
past (up to the specified number of days in the past). Since the SDK does not return a value
for the score in a day where the confidence it too low, this function can be useful to fill
in blanks for UI/UX purposes.
timeSeries
the current TimeSeries
rewindDays
how many days to fill in in the past
-
fillMissingDaysSleepSummary(TimeSeries<SleepSummary> timeSeries, int rewindDays)
→ TimeSeries<SleepSummary>
-
Use this function to fill missing days (the function adds NaNs) both in the future and in the
past (up to the specified number of days in the past). Since the SDK does not return a value
for the score in a day where the confidence it too low, this function can be useful to fill
in blanks for UI/UX purposes.
timeSeries
the current TimeSeries
rewindDays
how many days to fill in in the past
-
fillMissingDaysTrendHolder(TimeSeries<TrendHolder> timeSeries, int rewindDays)
→ TimeSeries<TrendHolder>
-
Use this function to fill missing days (the function adds NaNs) both in the future and in the
past (up to the specified number of days in the past). Since the SDK does not return a value
for the score in a day where the confidence it too low, this function can be useful to fill
in blanks for UI/UX purposes.
timeSeries
the current TimeSeries
rewindDays
how many days to fill in in the past
-
findFirstDateOfTheWeek(DateTime dateTime)
→ DateTime
-
Extension methods for List objects with int values.
Find the date of the monday of the week
-
periodicMean(List<ZonedDateTime> dateTimes, List<ZonedDateTime> references, LocalDateTime reference)
→ ZonedDateTime
-
Calculates the mean for a series on date objects
Exceptions / Errors
-
QAError
-
QAError is a custom error class that is used to handle errors in the application.