MindfulMinutesPlugin class
The class for writing mindful minutes to Apple Health.
Constructors
- MindfulMinutesPlugin()
-
Creates a new instance of MindfulMinutesPlugin.
const
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
-
checkPermission(
) → Future< bool> - Checks if the app has permission to write mindful minutes to Apple Health. Returns a bool with the writing permission status. Returns false if the call was not successful.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission(
) → Future< bool> - Requests the permission for writing mindful minutes to Apple Health. Returns a bool whether the request was successful.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeMindfulMinutes(
DateTime startTime, DateTime endTime) → Future< bool> - Writes mindful minutes to Apple Health. Returns false if the call was not successful.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited