Support Home > SDK Integration > SDK – KochavaTracker > Class – KVAConsent > Function – DidPromptWithDidGrantBoolNumber

Function – DidPromptWithDidGrantBoolNumber

  • Function

    didPrompt(withDidGrantBoolNumber:)

    A function to be called when there has been a prompt for consent.


    Declaration

    Parameter(s)

    didGrantBoolNumber The response from the user, as a boolean wrapped in an NSNumber. A value of true means consent was granted. A value of false means consent was denied. A value of nil means the user did not provide a response, and this includes if the user may have dismissed the dialog without indicating one way or another.

    Discussion

    You should call this method following a prompt for consent, including when the user did not opt to respond. In the context of var didUpdateBlock, the method should be called against the provided instance of class KVAConsent. This instance will be an immutable copy of consent, and by using it you will ensure that the consent that is recorded will be for the specific configuration of consent with which the user was presented.

     

    Sample Code:


    See Also

    Related Symbols class KVAConsent

    The class KVAConsent provides a means of managing user consent in relationship to GDPR.

  • Instance Method

    didPromptWithDidGrantBoolNumber:

    A function to be called when there has been a prompt for consent.


    Declaration

    Parameter(s)

    didGrantBoolNumber The response from the user, as a boolean wrapped in an NSNumber. A value of true means consent was granted. A value of false means consent was denied. A value of nil means the user did not provide a response, and this includes if the user may have dismissed the dialog without indicating one way or another.

    Discussion

    You should call this method following a prompt for consent, including when the user did not opt to respond. In the context of property didUpdateBlock, the method should be called against the provided instance of class KVAConsent. This instance will be an immutable copy of consent, and by using it you will ensure that the consent that is recorded will be for the specific configuration of consent with which the user was presented.

     

    Sample Code:


    See Also

    Related Symbols class KVAConsent

    The class KVAConsent provides a means of managing user consent in relationship to GDPR.

 
 

Last Modified: Jul 12, 2018 at 11:34 am