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
This commit is contained in:
Art Turanoff 2024-04-17 19:26:27 +10:00 committed by GitHub
parent adb330aa63
commit d65e7ee647
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.
*