RPPermissionResult
The result of requesting the OS permissions declared on the sections of a RPConsentDocument.
It holds one RPPermissionStatus per RPPermissionType which was asked for. A permission the participant denied is still recorded — the flow is never blocked by a denial, so the study needs the record to know what it may collect.
- Inheritance
-
- Object
- Serializable
- RPResult
- RPPermissionResult
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPPermissionResult.fromJson
RPPermissionResult
- required String identifier,
- Map<
RPPermissionType, RPPermissionStatus> ? statuses,
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
statuses
The status of each permission which was requested.
Methods
setStatus
- RPPermissionType type,
- RPPermissionStatus status
Record the status of type, replacing any previous status for it.
toJson
Return a JSON encoding of this object.
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.