Skip to content

Commit

Permalink
fix: gatherConsent missing options, remove js helpers from native mod…
Browse files Browse the repository at this point in the history
…ule spec
  • Loading branch information
dylancom committed Dec 18, 2024
1 parent 6c186c7 commit 46145b9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/specs/modules/NativeConsentModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ export interface AdsConsentInterface {
/**
* Helper method to call the UMP SDK methods to request consent information and load/present a
* consent form if necessary.
*
* @param options An AdsConsentInfoOptions interface.
*/
gatherConsent(): Promise<AdsConsentInfo>;
gatherConsent(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;

/**
* Returns the value stored under the `IABTCF_TCString` key
Expand Down Expand Up @@ -520,13 +522,10 @@ export interface Spec extends TurboModule {
showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
getConsentInfo(): Promise<AdsConsentInfo>;
gatherConsent(): Promise<AdsConsentInfo>;
getTCString(): Promise<string>;
getTCModel(): Promise<TCModel>;
getGdprApplies(): Promise<boolean>;
getPurposeConsents(): Promise<string>;
getPurposeLegitimateInterests(): Promise<string>;
getUserChoices(): Promise<AdsConsentUserChoices>;
reset(): void;
}

Expand Down

0 comments on commit 46145b9

Please sign in to comment.