SDK List Helpers

OneTrust SDK Public Methods for First Party SDKs

Existing

Get latest consent associated with the first party SDK

Retrieves the latest consent value for specified SDK identifier.

Parameter:

  • sdkId: The SDK identifier represented as a string, for which value has to be return.
OTPublishersHeadlessSDK.shared.getConsentStatus(forSDKId:) -> Int8

Returns:

  • Returns the consent status of the passed in SDK identifier.

New (starting 202504.1.0)

Get list of all first party SDKs present in OneTrust SDK

Retrieves all the first party SDKs associated with all the purpose groups that get displayed in Preference Center UI.

OTPublishersHeadlessSDK.shared.getAllFirstPartyCookies() -> [FirstPartyCookiesData]

Note: This list contains all the first party SDKs including the ones that are associated with the children of parent purpose groups.