Variable – DidUpdateBlock

  • Variable

    didUpdateBlock

    A block which is called when there is an update to consent.


    Declaration

    Discussion

    This block can be used to prompt the user for consent and to enable and/or disable functionality.

    This block will be called by the SDK at certain times when consent has been updated. Updates include, but are not limited to, when the user travels into or out of an area requiring consent, when new partners are added, and when conditions indicate a need to retry prompting the user.

    At the present time, an update is not generated when consent status is changed following a call to func didPrompt(withDidGrantBoolNumber:). It is also not necessarily called following a new launch. If you have functionality which should be enabled and/or disabled depending on consent, it is your responsibility to check consent status under these circumstances and make similar adjustments as needed.

     

    Sample Code:


    See Also

    Related Symbols func mayCalculateBool() -> Bool

    Returns a boolean indicating if the app may calculate (or gather) data which may be subject to consent.

    func mayKeepBool() -> Bool

    Returns a boolean indicating if the app may keep (or retain in memory) data which may be subject to consent.

    func mayPersistBool() -> Bool

    Returns a boolean indicating if the app may persist (or retain in persistent storage) data which may be subject to consent.

    func mayShareBool() -> Bool

    Returns a boolean indicating if the app may share (or export) data which may be subject to consent.

    func shouldPromptBool() -> Bool

    Returns a boolean indicating if a prompt for consent should be made.

    class KVAConsent

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

  • Property

    didUpdateBlock

    A block which is called when there is an update to consent.


    Declaration

    Discussion

    This block can be used to prompt the user for consent and to enable and/or disable functionality.

    This block will be called by the SDK at certain times when consent has been updated. Updates include, but are not limited to, when the user travels into or out of an area requiring consent, when new partners are added, and when conditions indicate a need to retry prompting the user.

    At the present time, an update is not generated when consent status is changed following a call to instance method didPromptWithDidGrantBoolNumber:. It is also not necessarily called following a new launch. If you have functionality which should be enabled and/or disabled depending on consent, it is your responsibility to check consent status under these circumstances and make similar adjustments as needed.

     

    Sample Code:


    See Also

    Related Symbols – (BOOL)mayCalculateBool

    Returns a boolean indicating if the app may calculate (or gather) data which may be subject to consent.

    – (BOOL)mayKeepBool

    Returns a boolean indicating if the app may keep (or retain in memory) data which may be subject to consent.

    – (BOOL)mayPersistBool

    Returns a boolean indicating if the app may persist (or retain in persistent storage) data which may be subject to consent.

    – (BOOL)mayShareBool

    Returns a boolean indicating if the app may share (or export) data which may be subject to consent.

    – (BOOL)shouldPromptBool

    Returns a boolean indicating if a prompt for consent should be made.

    class KVAConsent

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

 
 

Last Modified: Jul 12, 2018 at 2:08 pm