CrashConsent

public class CrashConsent

Undocumented

  • Read-only access to current consent value.

    Declaration

    Swift

    private(set) public var userConsent: Bool { get }
  • Unique identifier created during onboarding process.

    Declaration

    Swift

    private(set) public var userID: String? { get }
  • Returns a shared singleton CrashConsent object.

    Declaration

    Swift

    public class var shared: CrashConsent { get }
  • Record consent value for specfied user.

    Declaration

    Swift

    public func consentForUser(_ userID: UUID, given consent: Bool = false)

    Parameters

    userID

    specified user.

    consent

    value to record.

  • Obtain consent value for specified user.

    Declaration

    Swift

    public func hasConsentForUser(_ userID: UUID) -> Bool

    Parameters

    userID

    whom to query consent for.

    Return Value

    associated consent value.