Class Veery

userAgreedPurpose(PurposeVersion : Int, PurposeText : String, ApprovalButtonText : String, RejectionButtonText : String, Agreed : Bool)

Requires Veery for iOS version 1.3.0

Let Veery know if the user has agreed on a specific application purpose to collect geolocations

This is historized on the Veery Backend for GDPR compliance

Information on EU-GDPR

This is mandatory if your user is a European citizen.

1 - Show your own presentation screen or a popup explaining the reason of the geolocation collection

2 - Let the Veery Backend know what you presented to the user, and what the user answered

3 - Only if the user agreed on the presented purpose, call veery.activate

You should do this every time the purpose of the collection changes

Parameters

Param name Type Usage
PurposeVersion Int Positive number showing the version. This was designed to let your purpose evolve in the future
PurposeText String The message shown to the user to present the purpose
ApprovalButtonText String The text on the button for approval
RejectionButtonText String The text on the button for rejection
Agreed Bool true of the user has agreed (push on you approval button)

Returns

void

Usage / Example

let PurpVrs = 1
let PurpTxt = "We will collect your geolocations to adapt our booking services to your behavior"
let AppBtnTxt = "I accept"
let RejBtnTxt = "I refuse"
let Agreed = true

veery.userAgreedPurpose(PurposeVersion: PurpVrs, PurposeText: PurpTxt, ApprovalButtonText: AppBtnTxt, RejectionButtonText: RejBtnTxt, Agreed: Agreed)

User interaction

none

This function will not show any message to the user. It let you log the result of your own popup.

See also

userAgreement

Get the last purpose version agreed by the user

userAgreementAge

Get the number of seconds since the last call to Veery.userAgreedPurpose