Class ConsentStorage
Helper class with methods to store an retrieve user consent to and from the persistent storage.
Inheritance
System.Object
ConsentStorage
Namespace: EasyMobile
Assembly: cs.temp.dll.dll
Syntax
public static class ConsentStorage
Fields
GrantedConsentStoredValue
Declaration
public const int GrantedConsentStoredValue = 1
Field Value
Type | Description |
---|---|
System.Int32 |
RevokedConsentStoredValue
Declaration
public const int RevokedConsentStoredValue = 0
Field Value
Type | Description |
---|---|
System.Int32 |
UnknownConsentStoredValue
Declaration
public const int UnknownConsentStoredValue = -1
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
ReadConsent(String)
Reads the consent status with given key from the persistent storage.
Returns ConsentStatus.Unknown
if no saved value found.
Declaration
public static ConsentStatus ReadConsent(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key. |
Returns
Type | Description |
---|---|
ConsentStatus | The consent status. |
SaveConsent(String, ConsentStatus)
Saves the consent status with the given key into the persistent storage.
Declaration
public static void SaveConsent(string key, ConsentStatus consent)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key. |
ConsentStatus | consent | Consent. |