Function getServiceSelection
- getServiceSelection(__namedParameters): {
isManagerActive: boolean;
iterateServices: ((callback) => Promise<void>);
selectedGroups: DecisionConsentGroups;
} Returns {
isManagerActive: boolean;
iterateServices: ((callback) => Promise<void>);
selectedGroups: DecisionConsentGroups;
}
isManagerActive: boolean
iterateServices: ((callback) => Promise<void>)
- (callback): Promise<void>
Parameters
- callback: ((group, service, isOptIn, setCookiesViaManager) => void | Promise<void>)
- (group, service, isOptIn, setCookiesViaManager): void | Promise<void>
Parameters
- group: ServiceGroup
- service: Service
- isOptIn: boolean
- setCookiesViaManager: {
expectedManagerPresetId: "gtm" | "mtm";
features: ManagerFeatures;
getDataLayer: (() => any[]);
managerLabel: string;
serviceIsManager: boolean;
useManager: ServiceTagManager;
}expectedManagerPresetId: "gtm" | "mtm"
features: ManagerFeatures
getDataLayer: (() => any[])
managerLabel: string
serviceIsManager: boolean
Returns void | Promise<void>
Returns Promise<void>
Read the selected groups + services depending on the passed type.