Contents

InsightEvaluation

The insight result that an evaluation request returns.

Declaration

final class InsightEvaluation<each InsightResult> where repeat each InsightResult : TrustInsight

Discussion

This is the object that requestEvaluation(context:)method returns. It includes the insight result, metadata about the ID and server timestamps you can use to track and match requests, as well as a signed payload which contains additional information about the evaluation.

There are two ways to access the information in the signedPayload. The most secure approach is to send the signedPayload to a server that’s making the access decision where the your service can validate the signature and read the results directly. The alternative, when making and on device decision, is to read from the insight property and incorporate that summary result into decision logic within your app.

However your decide to process the result, your app needs to call reportConsumption(_:insightsUsed:) to indicate how the app made use of the insights.

Topics

Evaluation properties

Providing feedback on insights

See Also

Requesting an evaluation