Skip to content

Commit 46145b9

Browse files
committed
fix: gatherConsent missing options, remove js helpers from native module spec
1 parent 6c186c7 commit 46145b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/specs/modules/NativeConsentModule.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,10 @@ export interface AdsConsentInterface {
394394
/**
395395
* Helper method to call the UMP SDK methods to request consent information and load/present a
396396
* consent form if necessary.
397+
*
398+
* @param options An AdsConsentInfoOptions interface.
397399
*/
398-
gatherConsent(): Promise<AdsConsentInfo>;
400+
gatherConsent(options?: AdsConsentInfoOptions): Promise<AdsConsentInfo>;
399401

400402
/**
401403
* Returns the value stored under the `IABTCF_TCString` key
@@ -520,13 +522,10 @@ export interface Spec extends TurboModule {
520522
showPrivacyOptionsForm(): Promise<AdsConsentInfo>;
521523
loadAndShowConsentFormIfRequired(): Promise<AdsConsentInfo>;
522524
getConsentInfo(): Promise<AdsConsentInfo>;
523-
gatherConsent(): Promise<AdsConsentInfo>;
524525
getTCString(): Promise<string>;
525-
getTCModel(): Promise<TCModel>;
526526
getGdprApplies(): Promise<boolean>;
527527
getPurposeConsents(): Promise<string>;
528528
getPurposeLegitimateInterests(): Promise<string>;
529-
getUserChoices(): Promise<AdsConsentUserChoices>;
530529
reset(): void;
531530
}
532531

0 commit comments

Comments
 (0)