Skip to content

Commit

Permalink
chore: jsdoc update
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-MikeS committed Oct 1, 2024
1 parent 7333208 commit 07eac4c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions www/FirebaseAnalytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,11 @@ module.exports = {
* @param {function} [error] - Error callback function.
*
* @example
* setConsent({
* AD_STORAGE: 'GRANTED',
* ANALYTICS_STORAGE: 'DENIED'
* },
* function() {
* console.log('Consent settings updated successfully');
* },
* function(error) {
* console.error('Error updating consent settings:', error);
* });
* const consentSettings = {
* AD_STORAGE: 'GRANTED',
* ANALYTICS_STORAGE: 'GRANTED',
* };
* FirebaseAnalytics.setConsent(JSON.stringify(consentSettings));
*/
setConsent: function (consentSettings, success, error) {
exec(success, error, PLUGIN_NAME, 'setConsent', [consentSettings]);
Expand Down

0 comments on commit 07eac4c

Please sign in to comment.