From d65e7ee64707985966b27b7bfc206a1f29630f58 Mon Sep 17 00:00:00 2001 From: Art Turanoff <89371470+turanofff@users.noreply.github.com> Date: Wed, 17 Apr 2024 19:26:27 +1000 Subject: [PATCH] feat(adjust): Add Remote Config missing functions (#4756) * Add missing functions * Revert changes to firebase * revert full stop * add callback functions * fix return types * fix callback function types * fix jsdoc --- .../plugins/firebase-x/index.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts index 9a7782244..f404b617b 100644 --- a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts +++ b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts @@ -797,6 +797,28 @@ export class FirebaseX extends AwesomeCordovaNativePlugin { return; } + /** + * Asynchronously fetches and then activates the fetched configs. + * + * @param {Function} success - callback function which will be passed a {boolean} argument indicating whether result the current call activated the fetched config. + * @param {Function} error - callback function which will be passed a {string} error message as an argument + */ + @Cordova() + fetchAndActivate(success: (activated: boolean) => void, error: (err: string) => void): void { + return; + } + + /** + * Returns a Map of Firebase Remote Config key value pairs. + * + * @param {Function} success - callback function which will be passed an {object} argument where key is the remote config key and value is the value as a string. If the expected key value is a different primitive type then cast it to the appropriate type. + * @param {Function} error - callback function which will be passed a {string} error message as an argument + */ + @Cordova() + getAll(success: (values: any) => void, error: (err: string) => void): void { + return; + } + /** * Retrieve a Remote Config value. *