UNPKG

@hmscore/cordova-plugin-hms-ads

Version:
601 lines (593 loc) 67.1 kB
/* Copyright 2020-2024. Huawei Technologies Co., Ltd. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ 'use strict'; var tslib = require('tslib'); var i0 = require('@angular/core'); var core = require('@awesome-cordova-plugins/core'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { Object.keys(e).forEach(function (k) { if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, get: function () { return e[k]; } }); } }); } n.default = e; return Object.freeze(n); } var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0); /////////////////////////////////////////////////////////////// // Constants /////////////////////////////////////////////////////////////// exports.AdParamErrorCodes = void 0; (function (AdParamErrorCodes) { AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_INNER"] = 0] = "AD_PARAM_INNER"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_INVALID_REQUEST"] = 1] = "AD_PARAM_INVALID_REQUEST"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_NETWORK_ERROR"] = 2] = "AD_PARAM_NETWORK_ERROR"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_NO_AD"] = 3] = "AD_PARAM_NO_AD"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_AD_LOADING"] = 4] = "AD_PARAM_AD_LOADING"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_LOW_API"] = 5] = "AD_PARAM_LOW_API"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_BANNER_AD_EXPIRE"] = 6] = "AD_PARAM_BANNER_AD_EXPIRE"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_BANNER_AD_CANCEL"] = 7] = "AD_PARAM_BANNER_AD_CANCEL"; AdParamErrorCodes[AdParamErrorCodes["AD_PARAM_HMS_NOT_SUPPORT_SET_APP"] = 8] = "AD_PARAM_HMS_NOT_SUPPORT_SET_APP"; })(exports.AdParamErrorCodes || (exports.AdParamErrorCodes = {})); exports.RewardAdStatusErrorCodes = void 0; (function (RewardAdStatusErrorCodes) { RewardAdStatusErrorCodes[RewardAdStatusErrorCodes["REWARD_AD_STATUS_INTERNAL"] = 0] = "REWARD_AD_STATUS_INTERNAL"; RewardAdStatusErrorCodes[RewardAdStatusErrorCodes["REWARD_AD_STATUS_REUSED"] = 1] = "REWARD_AD_STATUS_REUSED"; RewardAdStatusErrorCodes[RewardAdStatusErrorCodes["REWARD_AD_STATUS_NOT_LOADED"] = 2] = "REWARD_AD_STATUS_NOT_LOADED"; RewardAdStatusErrorCodes[RewardAdStatusErrorCodes["REWARD_AD_STATUS_BACKGROUND"] = 3] = "REWARD_AD_STATUS_BACKGROUND"; })(exports.RewardAdStatusErrorCodes || (exports.RewardAdStatusErrorCodes = {})); exports.AdContentClassification = void 0; (function (AdContentClassification) { AdContentClassification["AD_CONTENT_CLASSIFICATION_A"] = "A"; AdContentClassification["AD_CONTENT_CLASSIFICATION_PI"] = "PI"; AdContentClassification["AD_CONTENT_CLASSIFICATION_UNKNOWN"] = ""; AdContentClassification["AD_CONTENT_CLASSIFICATION_J"] = "J"; AdContentClassification["AD_CONTENT_CLASSIFICATION_W"] = "W"; })(exports.AdContentClassification || (exports.AdContentClassification = {})); exports.Gender = void 0; (function (Gender) { Gender[Gender["FEMALE"] = 2] = "FEMALE"; Gender[Gender["MALE"] = 1] = "MALE"; Gender[Gender["UNKNOWN"] = 0] = "UNKNOWN"; })(exports.Gender || (exports.Gender = {})); exports.NonPersonalizedAd = void 0; (function (NonPersonalizedAd) { NonPersonalizedAd[NonPersonalizedAd["ALLOW_ALL"] = 0] = "ALLOW_ALL"; NonPersonalizedAd[NonPersonalizedAd["ALLOW_NON_PERSONALIZED"] = 1] = "ALLOW_NON_PERSONALIZED"; })(exports.NonPersonalizedAd || (exports.NonPersonalizedAd = {})); exports.ChildProtection = void 0; (function (ChildProtection) { ChildProtection[ChildProtection["TAG_FOR_CHILD_PROTECTION_UNSPECIFIED"] = -1] = "TAG_FOR_CHILD_PROTECTION_UNSPECIFIED"; ChildProtection[ChildProtection["TAG_FOR_CHILD_PROTECTION_FALSE"] = 0] = "TAG_FOR_CHILD_PROTECTION_FALSE"; ChildProtection[ChildProtection["TAG_FOR_CHILD_PROTECTION_TRUE"] = 1] = "TAG_FOR_CHILD_PROTECTION_TRUE"; })(exports.ChildProtection || (exports.ChildProtection = {})); exports.UnderAgeOfPromise = void 0; (function (UnderAgeOfPromise) { UnderAgeOfPromise[UnderAgeOfPromise["PROMISE_UNSPECIFIED"] = -1] = "PROMISE_UNSPECIFIED"; UnderAgeOfPromise[UnderAgeOfPromise["PROMISE_FALSE"] = 0] = "PROMISE_FALSE"; UnderAgeOfPromise[UnderAgeOfPromise["PROMISE_TRUE"] = 1] = "PROMISE_TRUE"; })(exports.UnderAgeOfPromise || (exports.UnderAgeOfPromise = {})); exports.BannerAdSize = void 0; (function (BannerAdSize) { BannerAdSize["BANNER_SIZE_360_57"] = "BANNER_SIZE_360_57"; BannerAdSize["BANNER_SIZE_360_144"] = "BANNER_SIZE_360_144"; BannerAdSize["BANNER_SIZE_160_600"] = "BANNER_SIZE_160_600"; BannerAdSize["BANNER_SIZE_300_250"] = "BANNER_SIZE_300_250"; BannerAdSize["BANNER_SIZE_320_100"] = "BANNER_SIZE_320_100"; BannerAdSize["BANNER_SIZE_320_50"] = "BANNER_SIZE_320_50"; BannerAdSize["BANNER_SIZE_468_60"] = "BANNER_SIZE_468_60"; BannerAdSize["BANNER_SIZE_728_90"] = "BANNER_SIZE_728_90"; BannerAdSize["BANNER_SIZE_DYNAMIC"] = "BANNER_SIZE_DYNAMIC"; BannerAdSize["BANNER_SIZE_INVALID"] = "BANNER_SIZE_INVALID"; BannerAdSize["BANNER_SIZE_SMART"] = "BANNER_SIZE_SMART"; BannerAdSize["BANNER_SIZE_ADVANCED"] = "BANNER_SIZE_ADVANCED"; })(exports.BannerAdSize || (exports.BannerAdSize = {})); exports.HMSScreenOrientation = void 0; (function (HMSScreenOrientation) { HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_LANDSCAPE"] = 0] = "SCREEN_ORIENTATION_LANDSCAPE"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_UNSPECIFIED"] = -1] = "SCREEN_ORIENTATION_UNSPECIFIED"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_PORTRAIT"] = 1] = "SCREEN_ORIENTATION_PORTRAIT"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_USER"] = 2] = "SCREEN_ORIENTATION_USER"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_BEHIND"] = 3] = "SCREEN_ORIENTATION_BEHIND"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_SENSOR"] = 4] = "SCREEN_ORIENTATION_SENSOR"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_NOSENSOR"] = 5] = "SCREEN_ORIENTATION_NOSENSOR"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_SENSOR_LANDSCAPE"] = 6] = "SCREEN_ORIENTATION_SENSOR_LANDSCAPE"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_SENSOR_PORTRAIT"] = 7] = "SCREEN_ORIENTATION_SENSOR_PORTRAIT"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_REVERSE_LANDSCAPE"] = 8] = "SCREEN_ORIENTATION_REVERSE_LANDSCAPE"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_REVERSE_PORTRAIT"] = 9] = "SCREEN_ORIENTATION_REVERSE_PORTRAIT"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_FULL_SENSOR"] = 10] = "SCREEN_ORIENTATION_FULL_SENSOR"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_USER_LANDSCAPE"] = 11] = "SCREEN_ORIENTATION_USER_LANDSCAPE"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_USER_PORTRAIT"] = 12] = "SCREEN_ORIENTATION_USER_PORTRAIT"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_FULL_USER"] = 13] = "SCREEN_ORIENTATION_FULL_USER"; HMSScreenOrientation[HMSScreenOrientation["SCREEN_ORIENTATION_LOCKED"] = 14] = "SCREEN_ORIENTATION_LOCKED"; })(exports.HMSScreenOrientation || (exports.HMSScreenOrientation = {})); exports.DebugNeedConsent = void 0; (function (DebugNeedConsent) { DebugNeedConsent[DebugNeedConsent["CONSENT_DEBUG_DISABLED"] = 0] = "CONSENT_DEBUG_DISABLED"; DebugNeedConsent[DebugNeedConsent["CONSENT_DEBUG_NEED_CONSENT"] = 1] = "CONSENT_DEBUG_NEED_CONSENT"; DebugNeedConsent[DebugNeedConsent["CONSENT_DEBUG_NOT_NEED_CONSENT"] = 2] = "CONSENT_DEBUG_NOT_NEED_CONSENT"; })(exports.DebugNeedConsent || (exports.DebugNeedConsent = {})); exports.ConsentStatus = void 0; (function (ConsentStatus) { ConsentStatus[ConsentStatus["CONSENT_PERSONALIZED"] = 0] = "CONSENT_PERSONALIZED"; ConsentStatus[ConsentStatus["CONSENT_NON_PERSONALIZED"] = 1] = "CONSENT_NON_PERSONALIZED"; ConsentStatus[ConsentStatus["CONSENT_UNKNOWN"] = 2] = "CONSENT_UNKNOWN"; })(exports.ConsentStatus || (exports.ConsentStatus = {})); exports.AudioFocusType = void 0; (function (AudioFocusType) { AudioFocusType[AudioFocusType["GAIN_AUDIO_FOCUS_ALL"] = 0] = "GAIN_AUDIO_FOCUS_ALL"; AudioFocusType[AudioFocusType["NOT_GAIN_AUDIO_FOCUS_WHEN_MUTE"] = 1] = "NOT_GAIN_AUDIO_FOCUS_WHEN_MUTE"; AudioFocusType[AudioFocusType["NOT_GAIN_AUDIO_FOCUS_ALL"] = 2] = "NOT_GAIN_AUDIO_FOCUS_ALL"; })(exports.AudioFocusType || (exports.AudioFocusType = {})); exports.MediaAspect = void 0; (function (MediaAspect) { MediaAspect[MediaAspect["ASPECT_ANY"] = 1] = "ASPECT_ANY"; MediaAspect[MediaAspect["ASPECT_CUSTOM_SIZE"] = -1] = "ASPECT_CUSTOM_SIZE"; MediaAspect[MediaAspect["ASPECT_LANDSCAPE"] = 2] = "ASPECT_LANDSCAPE"; MediaAspect[MediaAspect["ASPECT_PORTRAIT"] = 3] = "ASPECT_PORTRAIT"; MediaAspect[MediaAspect["ASPECT_SQUARE"] = 4] = "ASPECT_SQUARE"; MediaAspect[MediaAspect["ASPECT_UNKNOWN"] = 0] = "ASPECT_UNKNOWN"; })(exports.MediaAspect || (exports.MediaAspect = {})); exports.ChoicesPosition = void 0; (function (ChoicesPosition) { ChoicesPosition[ChoicesPosition["BOTTOM_LEFT"] = 3] = "BOTTOM_LEFT"; ChoicesPosition[ChoicesPosition["BOTTOM_RIGHT"] = 2] = "BOTTOM_RIGHT"; ChoicesPosition[ChoicesPosition["INVISIBLE"] = 4] = "INVISIBLE"; ChoicesPosition[ChoicesPosition["TOP_LEFT"] = 0] = "TOP_LEFT"; ChoicesPosition[ChoicesPosition["TOP_RIGHT"] = 1] = "TOP_RIGHT"; })(exports.ChoicesPosition || (exports.ChoicesPosition = {})); exports.MediaDirection = void 0; (function (MediaDirection) { MediaDirection[MediaDirection["ANY"] = 0] = "ANY"; MediaDirection[MediaDirection["LANDSCAPE"] = 2] = "LANDSCAPE"; MediaDirection[MediaDirection["PORTRAIT"] = 1] = "PORTRAIT"; })(exports.MediaDirection || (exports.MediaDirection = {})); exports.NativeAdTemplate = void 0; (function (NativeAdTemplate) { NativeAdTemplate["NATIVE_AD_SMALL_TEMPLATE"] = "NATIVE_AD_SMALL_TEMPLATE"; NativeAdTemplate["NATIVE_AD_FULL_TEMPLATE"] = "NATIVE_AD_FULL_TEMPLATE"; NativeAdTemplate["NATIVE_AD_BANNER_TEMPLATE"] = "NATIVE_AD_BANNER_TEMPLATE"; NativeAdTemplate["NATIVE_AD_VIDEO_TEMPLATE"] = "NATIVE_AD_VIDEO_TEMPLATE"; NativeAdTemplate["NATIVE_AD_WITH_APP_DOWNLOAD_BTN_TEMPLATE"] = "NATIVE_AD_WITH_APP_DOWNLOAD_BTN_TEMPLATE"; })(exports.NativeAdTemplate || (exports.NativeAdTemplate = {})); exports.Color = void 0; (function (Color) { Color["RED"] = "RED"; Color["DKGRAY"] = "DKGRAY"; Color["GRAY"] = "GRAY"; Color["WHITE"] = "WHITE"; Color["BLUE"] = "BLUE"; Color["BLACK"] = "BLACK"; Color["LTGRAY"] = "LTGRAY"; Color["MAGENTA"] = "MAGENTA"; Color["YELLOW"] = "YELLOW"; Color["CYAN"] = "CYAN"; Color["GREEN"] = "GREEN"; Color["TRANSPARENT"] = "TRANSPARENT"; })(exports.Color || (exports.Color = {})); exports.InstallReferrerResponses = void 0; (function (InstallReferrerResponses) { InstallReferrerResponses[InstallReferrerResponses["SERVICE_DISCONNECTED"] = -1] = "SERVICE_DISCONNECTED"; InstallReferrerResponses[InstallReferrerResponses["DEVELOPER_ERROR"] = 3] = "DEVELOPER_ERROR"; InstallReferrerResponses[InstallReferrerResponses["SERVICE_UNAVAILABLE"] = 1] = "SERVICE_UNAVAILABLE"; InstallReferrerResponses[InstallReferrerResponses["OK"] = 0] = "OK"; InstallReferrerResponses[InstallReferrerResponses["FEATURE_NOT_SUPPORTED"] = 2] = "FEATURE_NOT_SUPPORTED"; })(exports.InstallReferrerResponses || (exports.InstallReferrerResponses = {})); exports.Anchor = void 0; (function (Anchor) { Anchor["TOP"] = "top"; Anchor["BOTTOM"] = "bottom"; Anchor["INVISIBLE"] = "invisible"; })(exports.Anchor || (exports.Anchor = {})); exports.BannerAdEvents = void 0; (function (BannerAdEvents) { BannerAdEvents["BANNER_AD_CLOSED"] = "banner_ad_closed"; BannerAdEvents["BANNER_AD_FAILED"] = "banner_ad_failed"; BannerAdEvents["BANNER_AD_LEAVE"] = "banner_ad_leave"; BannerAdEvents["BANNER_AD_OPENED"] = "banner_ad_opened"; BannerAdEvents["BANNER_AD_LOADED"] = "banner_ad_loaded"; BannerAdEvents["BANNER_AD_CLICKED"] = "banner_ad_clicked"; BannerAdEvents["BANNER_AD_IMPRESSION"] = "banner_ad_impression"; })(exports.BannerAdEvents || (exports.BannerAdEvents = {})); exports.InterstitialAdEvents = void 0; (function (InterstitialAdEvents) { InterstitialAdEvents["INTERSTITIAL_AD_CLOSED"] = "interstitial_ad_closed"; InterstitialAdEvents["INTERSTITIAL_AD_FAILED"] = "interstitial_ad_failed"; InterstitialAdEvents["INTERSTITIAL_AD_LEAVE"] = "interstitial_ad_leave"; InterstitialAdEvents["INTERSTITIAL_AD_OPENED"] = "interstitial_ad_opened"; InterstitialAdEvents["INTERSTITIAL_AD_LOADED"] = "interstitial_ad_loaded"; InterstitialAdEvents["INTERSTITIAL_AD_CLICKED"] = "interstitial_ad_clicked"; InterstitialAdEvents["INTERSTITIAL_AD_IMPRESSION"] = "interstitial_ad_impression"; InterstitialAdEvents["INTERSTITIAL_AD_REWARDED"] = "interstitial_ad_rewarded"; InterstitialAdEvents["INTERSTITIAL_REWARD_AD_CLOSED"] = "interstitial_reward_ad_closed"; InterstitialAdEvents["INTERSTITIAL_REWARD_AD_FAILED_TO_LOAD"] = "interstitial_reward_ad_failed_to_load"; InterstitialAdEvents["INTERSTITIAL_REWARD_AD_LEFT_APP"] = "interstitial_reward_ad_left_app"; InterstitialAdEvents["INTERSTITIAL_REWARD_AD_LOADED"] = "interstitial_reward_ad_loaded"; InterstitialAdEvents["INTERSTITIAL_REWARD_AD_OPENED"] = "interstitial_reward_ad_opened"; InterstitialAdEvents["INTERSTITIAL_REWARD_AD_COMPLETED"] = "interstitial_reward_ad_completed"; InterstitialAdEvents["INTERSTITIAL_REWARD_AD_STARTED"] = "interstitial_reward_ad_started"; })(exports.InterstitialAdEvents || (exports.InterstitialAdEvents = {})); exports.SplashAdEvents = void 0; (function (SplashAdEvents) { SplashAdEvents["SPLASH_AD_FAILED_TO_LOAD"] = "splash_ad_failed_to_load"; SplashAdEvents["SPLASH_AD_LOADED"] = "splash_ad_loaded"; SplashAdEvents["SPLASH_AD_DISMISSED"] = "splash_ad_dismissed"; SplashAdEvents["SPLASH_AD_SHOWED"] = "splash_ad_showed"; SplashAdEvents["SPLASH_AD_CLICK"] = "splash_ad_click"; })(exports.SplashAdEvents || (exports.SplashAdEvents = {})); exports.RollAdEvents = void 0; (function (RollAdEvents) { RollAdEvents["ROLL_AD_LOAD_FAILED"] = "roll_ad_load_failed"; RollAdEvents["ROLL_AD_LOADED"] = "roll_ad_loaded"; RollAdEvents["ROLL_AD_MEDIA_CHANGED"] = "roll_ad_media_changed"; RollAdEvents["ROLL_AD_CLICKED"] = "roll_ad_clicked"; RollAdEvents["ROLL_AD_MEDIA_PROGRESS"] = "roll_ad_media_progress"; RollAdEvents["ROLL_AD_MEDIA_START"] = "roll_ad_media_start"; RollAdEvents["ROLL_AD_MEDIA_PAUSE"] = "roll_ad_media_pause"; RollAdEvents["ROLL_AD_MEDIA_STOP"] = "roll_ad_media_stop"; RollAdEvents["ROLL_AD_MEDIA_COMPLETION"] = "roll_ad_media_completion"; RollAdEvents["ROLL_AD_MEDIA_ERROR"] = "roll_ad_media_error"; RollAdEvents["ROLL_AD_MEDIA_UNMUTE"] = "roll_ad_media_unmute"; RollAdEvents["ROLL_AD_MEDIA_MUTE"] = "roll_ad_media_mute"; RollAdEvents["ROLL_AD_WHY_THIS_AD"] = "roll_ad_why_this_ad"; })(exports.RollAdEvents || (exports.RollAdEvents = {})); exports.RewardAdEvents = void 0; (function (RewardAdEvents) { RewardAdEvents["REWARD_METADATA_CHANGED"] = "reward_metadata_changed"; RewardAdEvents["REWARD_AD_FAILED_TO_LOAD_LOAD"] = "reward_ad_failed_to_load_load"; RewardAdEvents["REWARDED_LOADED"] = "rewarded_loaded"; RewardAdEvents["REWARDED_STATUS"] = "rewarded_status"; RewardAdEvents["REWARD_AD_CLOSED_STATUS"] = "reward_ad_closed_status"; RewardAdEvents["REWARD_AD_OPENED_STATUS"] = "reward_ad_opened_status"; RewardAdEvents["REWARD_AD_FAILED_TO_SHOW"] = "reward_ad_failed_to_show"; RewardAdEvents["REWARDED"] = "rewarded"; RewardAdEvents["REWARD_AD_CLOSED"] = "reward_ad_closed"; RewardAdEvents["REWARD_AD_FAILED_TO_LOAD"] = "reward_ad_failed_to_load"; RewardAdEvents["REWARD_AD_LOADED"] = "reward_ad_loaded"; RewardAdEvents["REWARD_AD_OPENED"] = "reward_ad_opened"; })(exports.RewardAdEvents || (exports.RewardAdEvents = {})); exports.DetailedCreativeType = void 0; (function (DetailedCreativeType) { DetailedCreativeType[DetailedCreativeType["BIG_IMG"] = 901] = "BIG_IMG"; DetailedCreativeType[DetailedCreativeType["VIDEO"] = 903] = "VIDEO"; DetailedCreativeType[DetailedCreativeType["THREE_IMG"] = 904] = "THREE_IMG"; DetailedCreativeType[DetailedCreativeType["SMALL_IMG"] = 905] = "SMALL_IMG"; DetailedCreativeType[DetailedCreativeType["SINGLE_IMG"] = 909] = "SINGLE_IMG"; DetailedCreativeType[DetailedCreativeType["SHORT_TEXT"] = 913] = "SHORT_TEXT"; DetailedCreativeType[DetailedCreativeType["LONG_TEXT"] = 914] = "LONG_TEXT"; })(exports.DetailedCreativeType || (exports.DetailedCreativeType = {})); exports.NativeAdEvents = void 0; (function (NativeAdEvents) { NativeAdEvents["NATIVE_AD_DISLIKED"] = "native_ad_disliked"; NativeAdEvents["NATIVE_AD_LOADED_LOAD"] = "native_ad_loaded_load"; NativeAdEvents["NATIVE_AD_CLOSED"] = "native_ad_closed"; NativeAdEvents["NATIVE_AD_FAILED"] = "native_ad_failed"; NativeAdEvents["NATIVE_AD_LEAVE"] = "native_ad_leave"; NativeAdEvents["NATIVE_AD_OPENED"] = "native_ad_opened"; NativeAdEvents["NATIVE_AD_LOADED"] = "native_ad_loaded"; NativeAdEvents["NATIVE_AD_CLICKED"] = "native_ad_clicked"; NativeAdEvents["NATIVE_AD_IMPRESSION"] = "native_ad_impression"; NativeAdEvents["VIDEO_OPERATOR_VIDEO_START"] = "video_operator_video_start"; NativeAdEvents["VIDEO_OPERATOR_VIDEO_PLAY"] = "video_operator_video_play"; NativeAdEvents["VIDEO_OPERATOR_VIDEO_PAUSE"] = "video_operator_video_pause"; NativeAdEvents["VIDEO_OPERATOR_VIDEO_END"] = "video_operator_video_end"; NativeAdEvents["VIDEO_OPERATOR_VIDEO_MUTE"] = "video_operator_video_mute"; NativeAdEvents["APP_DOWNLOAD_STATUS_CHANGED"] = "app_download_status_changed"; NativeAdEvents["APP_DOWNLOAD_NON_WIFI_DOWNLOAD"] = "app_download_non_wifi_download"; })(exports.NativeAdEvents || (exports.NativeAdEvents = {})); exports.VastEvents = void 0; (function (VastEvents) { VastEvents["VAST_LOAD_SUCCESS"] = "vast_load_success"; VastEvents["VAST_LOAD_FAILED"] = "vast_load_failed"; VastEvents["VAST_PLAY_STATE_CHANGED"] = "vast_play_state_changed"; VastEvents["VAST_VOLUME_CHANGED"] = "vast_volume_changed"; VastEvents["VAST_SCREEN_VIEW_CHANGED"] = "vast_screen_view_changed"; VastEvents["VAST_PROGRESS_CHANGED"] = "vast_progress_changed"; VastEvents["VAST_ON_SUCCESS"] = "vast_on_success"; VastEvents["VAST_ON_FAILED"] = "vast_on_failed"; VastEvents["VAST_AD_READY"] = "vast_ad_ready"; VastEvents["VAST_AD_FINISH"] = "vast_ad_finish"; VastEvents["VAST_BUFFER_START"] = "vast_buffer_start"; VastEvents["VAST_BUFFER_END"] = "vast_buffer_end"; })(exports.VastEvents || (exports.VastEvents = {})); exports.ActivateStyle = void 0; (function (ActivateStyle) { ActivateStyle[ActivateStyle["BOTTOM_BANNER"] = 1] = "BOTTOM_BANNER"; ActivateStyle[ActivateStyle["CONFIRM_DIALOG"] = 2] = "CONFIRM_DIALOG"; })(exports.ActivateStyle || (exports.ActivateStyle = {})); exports.CreativeMatchType = void 0; (function (CreativeMatchType) { CreativeMatchType[CreativeMatchType["EXACT"] = 0] = "EXACT"; CreativeMatchType[CreativeMatchType["SMART"] = 1] = "SMART"; CreativeMatchType[CreativeMatchType["UNKNOWN"] = 2] = "UNKNOWN"; CreativeMatchType[CreativeMatchType["ANY"] = 3] = "ANY"; CreativeMatchType[CreativeMatchType["LANDSCAPE"] = 4] = "LANDSCAPE"; CreativeMatchType[CreativeMatchType["PORTRAIT"] = 5] = "PORTRAIT"; CreativeMatchType[CreativeMatchType["SQUARE"] = 6] = "SQUARE"; })(exports.CreativeMatchType || (exports.CreativeMatchType = {})); exports.AppDownloadStatus = void 0; (function (AppDownloadStatus) { AppDownloadStatus["DOWNLOAD"] = "DOWNLOAD"; AppDownloadStatus["WAITING_FOR_WIFI"] = "WAITING_FOR_WIFI"; AppDownloadStatus["WAITING"] = "WAITING"; AppDownloadStatus["DOWNLOADING"] = "DOWNLOADING"; AppDownloadStatus["PAUSE"] = "PAUSE"; AppDownloadStatus["RESUME"] = "RESUME"; AppDownloadStatus["DOWNLOADED"] = "DOWNLOADED"; AppDownloadStatus["DOWNLOADFAILED"] = "DOWNLOADFAILED"; AppDownloadStatus["INSTALLING"] = "INSTALLING"; AppDownloadStatus["INSTALL"] = "INSTALL"; AppDownloadStatus["INSTALLED"] = "INSTALLED"; })(exports.AppDownloadStatus || (exports.AppDownloadStatus = {})); exports.AutoPlayNetType = void 0; (function (AutoPlayNetType) { AutoPlayNetType[AutoPlayNetType["WIFI_ONLY"] = 0] = "WIFI_ONLY"; AutoPlayNetType[AutoPlayNetType["BOTH_WIFI_AND_DATA"] = 1] = "BOTH_WIFI_AND_DATA"; AutoPlayNetType[AutoPlayNetType["FORBID_AUTO_PLAY"] = 2] = "FORBID_AUTO_PLAY"; })(exports.AutoPlayNetType || (exports.AutoPlayNetType = {})); var HMSAds = /** @class */ (function (_super) { tslib.__extends(HMSAds, _super); function HMSAds() { return _super !== null && _super.apply(this, arguments) || this; } HMSAds.prototype.on = function (event, callback) { return core.cordova(this, "on", { "otherPromise": true }, arguments); }; HMSAds.prototype.init = function () { return core.cordova(this, "init", { "otherPromise": true }, arguments); }; HMSAds.prototype.getSDKVersion = function () { return core.cordova(this, "getSDKVersion", { "otherPromise": true }, arguments); }; HMSAds.prototype.getRequestOptions = function () { return core.cordova(this, "getRequestOptions", { "otherPromise": true }, arguments); }; HMSAds.prototype.setRequestOptions = function (requestOptions) { return core.cordova(this, "setRequestOptions", { "otherPromise": true }, arguments); }; HMSAds.prototype.setConsent = function (consent) { return core.cordova(this, "setConsent", { "otherPromise": true }, arguments); }; HMSAds.prototype.getAppActivateStyle = function () { return core.cordova(this, "getAppActivateStyle", { "otherPromise": true }, arguments); }; HMSAds.prototype.setAppActivateStyle = function (style) { return core.cordova(this, "setAppActivateStyle", { "otherPromise": true }, arguments); }; HMSAds.prototype.setAppInstalledNotify = function (status) { return core.cordova(this, "setAppInstalledNotify", { "otherPromise": true }, arguments); }; HMSAds.prototype.isAppInstalledNotify = function () { return core.cordova(this, "isAppInstalledNotify", { "otherPromise": true }, arguments); }; HMSAds.prototype.enableLogger = function () { return core.cordova(this, "enableLogger", { "otherPromise": true }, arguments); }; HMSAds.prototype.disableLogger = function () { return core.cordova(this, "disableLogger", { "otherPromise": true }, arguments); }; HMSAds.prototype.addTestDeviceId = function (testDeviceId) { return core.cordova(this, "addTestDeviceId", { "otherPromise": true }, arguments); }; HMSAds.prototype.getTestDeviceId = function () { return core.cordova(this, "getTestDeviceId", { "otherPromise": true }, arguments); }; HMSAds.prototype.setUnderAgeOfPromise = function (underAgeOfPromise) { return core.cordova(this, "setUnderAgeOfPromise", { "otherPromise": true }, arguments); }; HMSAds.prototype.setConsentStatus = function (consentStatus) { return core.cordova(this, "setConsentStatus", { "otherPromise": true }, arguments); }; HMSAds.prototype.setDebugNeedConsent = function (debugNeedConsent) { return core.cordova(this, "setDebugNeedConsent", { "otherPromise": true }, arguments); }; HMSAds.prototype.requestConsentUpdate = function () { return core.cordova(this, "requestConsentUpdate", { "otherPromise": true }, arguments); }; HMSAds.prototype.verifyAdId = function (adId, isLimitAdTracking) { return core.cordova(this, "verifyAdId", { "otherPromise": true }, arguments); }; HMSAds.prototype.getAdvertisingIdInfo = function () { return core.cordova(this, "getAdvertisingIdInfo", { "otherPromise": true }, arguments); }; HMSAds.prototype.referrerClientStartConnection = function (isTest) { return core.cordova(this, "referrerClientStartConnection", { "otherPromise": true }, arguments); }; HMSAds.prototype.referrerClientEndConnection = function () { return core.cordova(this, "referrerClientEndConnection", { "otherPromise": true }, arguments); }; HMSAds.prototype.referrerClientIsReady = function () { return core.cordova(this, "referrerClientIsReady", { "otherPromise": true }, arguments); }; HMSAds.prototype.getInstallReferrer = function (installChannel) { return core.cordova(this, "getInstallReferrer", { "otherPromise": true }, arguments); }; HMSAds.prototype.initVast = function (vastSdkConfiguration) { return core.cordova(this, "initVast", { "otherPromise": true }, arguments); }; HMSAds.prototype.getVastSdkConfiguration = function () { return core.cordova(this, "getVastSdkConfiguration", { "otherPromise": true }, arguments); }; HMSAds.prototype.updateSdkServerConfig = function (slotId) { return core.cordova(this, "updateSdkServerConfig", { "otherPromise": true }, arguments); }; HMSAds.prototype.userAcceptAdLicense = function (isAcceptLicense) { return core.cordova(this, "userAcceptAdLicense", { "otherPromise": true }, arguments); }; HMSAds.prototype.getEventProcessor = function () { return core.cordova(this, "getEventProcessor", { "otherPromise": true }, arguments); }; Object.defineProperty(HMSAds.prototype, "HMSInterstitialAd", { get: function () { return core.cordovaPropertyGet(this, "HMSInterstitialAd"); }, set: function (value) { core.cordovaPropertySet(this, "HMSInterstitialAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAds.prototype, "HMSBannerAd", { get: function () { return core.cordovaPropertyGet(this, "HMSBannerAd"); }, set: function (value) { core.cordovaPropertySet(this, "HMSBannerAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAds.prototype, "HMSSplashAd", { get: function () { return core.cordovaPropertyGet(this, "HMSSplashAd"); }, set: function (value) { core.cordovaPropertySet(this, "HMSSplashAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAds.prototype, "HMSRewardAd", { get: function () { return core.cordovaPropertyGet(this, "HMSRewardAd"); }, set: function (value) { core.cordovaPropertySet(this, "HMSRewardAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAds.prototype, "HMSNativeAd", { get: function () { return core.cordovaPropertyGet(this, "HMSNativeAd"); }, set: function (value) { core.cordovaPropertySet(this, "HMSNativeAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAds.prototype, "HMSRollAd", { get: function () { return core.cordovaPropertyGet(this, "HMSRollAd"); }, set: function (value) { core.cordovaPropertySet(this, "HMSRollAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAds.prototype, "HMSVast", { get: function () { return core.cordovaPropertyGet(this, "HMSVast"); }, set: function (value) { core.cordovaPropertySet(this, "HMSVast", value); }, enumerable: false, configurable: true }); HMSAds.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSAds, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable }); HMSAds.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSAds }); HMSAds.pluginName = "HMSAds"; HMSAds.plugin = "cordova-plugin-hms-ads"; HMSAds.pluginRef = "HMSAds"; HMSAds.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSAds.platforms = ["Android"]; HMSAds = tslib.__decorate([], HMSAds); return HMSAds; }(core.AwesomeCordovaNativePlugin)); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSAds, decorators: [{ type: i0.Injectable }], propDecorators: { HMSInterstitialAd: [], HMSBannerAd: [], HMSSplashAd: [], HMSRewardAd: [], HMSNativeAd: [], HMSRollAd: [], HMSVast: [], on: [], init: [], getSDKVersion: [], getRequestOptions: [], setRequestOptions: [], setConsent: [], getAppActivateStyle: [], setAppActivateStyle: [], setAppInstalledNotify: [], isAppInstalledNotify: [], enableLogger: [], disableLogger: [], addTestDeviceId: [], getTestDeviceId: [], setUnderAgeOfPromise: [], setConsentStatus: [], setDebugNeedConsent: [], requestConsentUpdate: [], verifyAdId: [], getAdvertisingIdInfo: [], referrerClientStartConnection: [], referrerClientEndConnection: [], referrerClientIsReady: [], getInstallReferrer: [], initVast: [], getVastSdkConfiguration: [], updateSdkServerConfig: [], userAcceptAdLicense: [], getEventProcessor: [] } }); var HMSBannerAd = /** @class */ (function (_super) { tslib.__extends(HMSBannerAd, _super); function HMSBannerAd() { return _super !== null && _super.apply(this, arguments) || this; } HMSBannerAd.prototype.on = function (eventName, callback) { return core.cordova(this, "on", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.create = function (divId, bounds) { return core.cordova(this, "create", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.scroll = function () { return core.cordova(this, "scroll", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getAdId = function () { return core.cordova(this, "getAdId", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.setAdId = function (adId) { return core.cordova(this, "setAdId", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getBannerAdSize = function () { return core.cordova(this, "getBannerAdSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.setBannerAdSize = function (bannerAdSize) { return core.cordova(this, "setBannerAdSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.setBackgroundColor = function (bgColor) { return core.cordova(this, "setBackgroundColor", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.setBannerRefresh = function (bannerRefresh) { return core.cordova(this, "setBannerRefresh", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.setAdListener = function () { return core.cordova(this, "setAdListener", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.isLoading = function () { return core.cordova(this, "isLoading", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.loadAd = function (adParam) { return core.cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.pause = function () { return core.cordova(this, "pause", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.resume = function () { return core.cordova(this, "resume", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.destroy = function () { return core.cordova(this, "destroy", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getHeight = function () { return core.cordova(this, "getHeight", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getHeightPx = function () { return core.cordova(this, "getHeightPx", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getWidth = function () { return core.cordova(this, "getWidth", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getWidthPx = function () { return core.cordova(this, "getWidthPx", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.isAutoHeightSize = function () { return core.cordova(this, "isAutoHeightSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.isDynamicSize = function () { return core.cordova(this, "isDynamicSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.isFullWidthSize = function () { return core.cordova(this, "isFullWidthSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getCurrentDirectionBannerSize = function (width) { return core.cordova(this, "getCurrentDirectionBannerSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getLandscapeBannerSize = function (width) { return core.cordova(this, "getLandscapeBannerSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getPortraitBannerSize = function (width) { return core.cordova(this, "getPortraitBannerSize", { "otherPromise": true }, arguments); }; HMSBannerAd.prototype.getBiddingInfo = function () { return core.cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); }; HMSBannerAd.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSBannerAd, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable }); HMSBannerAd.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSBannerAd }); HMSBannerAd.pluginName = "HMSAds"; HMSBannerAd.plugin = "cordova-plugin-hms-ads"; HMSBannerAd.pluginRef = "HMSAds.HMSBannerAd"; HMSBannerAd.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSBannerAd.platforms = ["Android"]; HMSBannerAd = tslib.__decorate([], HMSBannerAd); return HMSBannerAd; }(core.AwesomeCordovaNativePlugin)); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSBannerAd, decorators: [{ type: i0.Injectable }], propDecorators: { on: [], create: [], scroll: [], getAdId: [], setAdId: [], getBannerAdSize: [], setBannerAdSize: [], setBackgroundColor: [], setBannerRefresh: [], setAdListener: [], isLoading: [], loadAd: [], pause: [], resume: [], destroy: [], getHeight: [], getHeightPx: [], getWidth: [], getWidthPx: [], isAutoHeightSize: [], isDynamicSize: [], isFullWidthSize: [], getCurrentDirectionBannerSize: [], getLandscapeBannerSize: [], getPortraitBannerSize: [], getBiddingInfo: [] } }); var HMSInterstitialAd = /** @class */ (function (_super) { tslib.__extends(HMSInterstitialAd, _super); function HMSInterstitialAd() { return _super !== null && _super.apply(this, arguments) || this; } HMSInterstitialAd.prototype.on = function (eventName, callback) { return core.cordova(this, "on", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.create = function (useActivity) { return core.cordova(this, "create", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.scroll = function () { return core.cordova(this, "scroll", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.show = function () { return core.cordova(this, "show", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.isLoaded = function () { return core.cordova(this, "isLoaded", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.isLoading = function () { return core.cordova(this, "isLoading", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.loadAd = function (adParam) { return core.cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.setAdId = function (adId) { return core.cordova(this, "setAdId", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.getAdId = function () { return core.cordova(this, "getAdId", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.setAdListener = function () { return core.cordova(this, "setAdListener", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.setRewardAdListener = function () { return core.cordova(this, "setRewardAdListener", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorGetAspectRatio = function () { return core.cordova(this, "videoOperatorGetAspectRatio", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorHasVideo = function () { return core.cordova(this, "videoOperatorHasVideo", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorIsCustomizeOperateEnabled = function () { return core.cordova(this, "videoOperatorIsCustomizeOperateEnabled", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorIsMuted = function () { return core.cordova(this, "videoOperatorIsMuted", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorMute = function (mute) { return core.cordova(this, "videoOperatorMute", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorPause = function () { return core.cordova(this, "videoOperatorPause", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorPlay = function () { return core.cordova(this, "videoOperatorPlay", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.videoOperatorStop = function () { return core.cordova(this, "videoOperatorStop", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.setVideoConfiguration = function (videoConfiguration) { return core.cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); }; HMSInterstitialAd.prototype.getBiddingInfo = function () { return core.cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); }; HMSInterstitialAd.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSInterstitialAd, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable }); HMSInterstitialAd.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSInterstitialAd }); HMSInterstitialAd.pluginName = "HMSAds"; HMSInterstitialAd.plugin = "cordova-plugin-hms-ads"; HMSInterstitialAd.pluginRef = "HMSAds.HMSInterstitialAd"; HMSInterstitialAd.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSInterstitialAd.platforms = ["Android"]; HMSInterstitialAd = tslib.__decorate([], HMSInterstitialAd); return HMSInterstitialAd; }(core.AwesomeCordovaNativePlugin)); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSInterstitialAd, decorators: [{ type: i0.Injectable }], propDecorators: { on: [], create: [], scroll: [], show: [], isLoaded: [], isLoading: [], loadAd: [], setAdId: [], getAdId: [], setAdListener: [], setRewardAdListener: [], videoOperatorGetAspectRatio: [], videoOperatorHasVideo: [], videoOperatorIsCustomizeOperateEnabled: [], videoOperatorIsMuted: [], videoOperatorMute: [], videoOperatorPause: [], videoOperatorPlay: [], videoOperatorStop: [], setVideoConfiguration: [], getBiddingInfo: [] } }); var HMSNativeAd = /** @class */ (function (_super) { tslib.__extends(HMSNativeAd, _super); function HMSNativeAd() { return _super !== null && _super.apply(this, arguments) || this; } HMSNativeAd.prototype.on = function (eventName, callback) { return core.cordova(this, "on", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.create = function (options, bounds) { return core.cordova(this, "create", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.loadAd = function (options) { return core.cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.show = function () { return core.cordova(this, "show", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.isLoading = function () { return core.cordova(this, "isLoading", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.destroy = function () { return core.cordova(this, "destroy", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.dislikeAd = function (dislikeReason) { return core.cordova(this, "dislikeAd", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.setAllowCustomClick = function () { return core.cordova(this, "setAllowCustomClick", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getAdSource = function () { return core.cordova(this, "getAdSource", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getDescription = function () { return core.cordova(this, "getDescription", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getCallToAction = function () { return core.cordova(this, "getCallToAction", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getDislikeAdReasons = function () { return core.cordova(this, "getDislikeAdReasons", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.isCustomClickAllowed = function () { return core.cordova(this, "isCustomClickAllowed", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.isCustomDislikeThisAdEnabled = function () { return core.cordova(this, "isCustomDislikeThisAdEnabled", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.recordClickEvent = function () { return core.cordova(this, "recordClickEvent", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.recordImpressionEvent = function (impressionData) { return core.cordova(this, "recordImpressionEvent", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getUniqueId = function () { return core.cordova(this, "getUniqueId", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.setDislikeAdListener = function () { return core.cordova(this, "setDislikeAdListener", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.gotoWhyThisAdPage = function (useView) { return core.cordova(this, "gotoWhyThisAdPage", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getAdSign = function () { return core.cordova(this, "getAdSign", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getTitle = function () { return core.cordova(this, "getTitle", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getWhyThisAd = function () { return core.cordova(this, "getWhyThisAd", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.recordShowStartEvent = function (showStartData) { return core.cordova(this, "recordShowStartEvent", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.onAdClose = function (keywords) { return core.cordova(this, "onAdClose", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getNativeAdConfiguration = function () { return core.cordova(this, "getNativeAdConfiguration", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.setOnDownloadStatusChangedListener = function () { return core.cordova(this, "setOnDownloadStatusChangedListener", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.setOnNonWifiDownloadListener = function () { return core.cordova(this, "setOnNonWifiDownloadListener", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.setShowPermissionDialog = function (show) { return core.cordova(this, "setShowPermissionDialog", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.setAllowedNonWifiNetwork = function (allowed) { return core.cordova(this, "setAllowedNonWifiNetwork", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.cancel = function () { return core.cordova(this, "cancel", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.continueDownload = function () { return core.cordova(this, "continueDownload", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.showAdvertiserInfoDialog = function () { return core.cordova(this, "showAdvertiserInfoDialog", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.hideAdvertiserInfoDialog = function () { return core.cordova(this, "hideAdvertiserInfoDialog", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.hasAdvertiserInfo = function () { return core.cordova(this, "hasAdvertiserInfo", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getAdvertiserInfo = function () { return core.cordova(this, "getAdvertiserInfo", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getAppInfo = function () { return core.cordova(this, "getAppInfo", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getPromoteInfo = function () { return core.cordova(this, "getPromoteInfo", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.showAppDetailPage = function () { return core.cordova(this, "showAppDetailPage", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.showPrivacyPolicy = function () { return core.cordova(this, "showPrivacyPolicy", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.showPermissionPage = function () { return core.cordova(this, "showPermissionPage", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.isTransparencyOpen = function () { return core.cordova(this, "isTransparencyOpen", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getTransparencyTplUrl = function () { return core.cordova(this, "getTransparencyTplUrl", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getInterActionType = function () { return core.cordova(this, "getInterActionType", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.setVideoConfiguration = function (videoConfiguration) { return core.cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); }; HMSNativeAd.prototype.getBiddingInfo = function () { return core.cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); }; HMSNativeAd.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSNativeAd, deps: null, target: i0__namespace.ɵɵFactoryTarget.Injectable }); HMSNativeAd.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSNativeAd }); HMSNativeAd.pluginName = "HMSAds"; HMSNativeAd.plugin = "cordova-plugin-hms-ads"; HMSNativeAd.pluginRef = "HMSAds.HMSNativeAd"; HMSNativeAd.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSNativeAd.platforms = ["Android"]; HMSNativeAd = tslib.__decorate([], HMSNativeAd); return HMSNativeAd; }(core.AwesomeCordovaNativePlugin)); i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: HMSNativeAd, decorators: [{ type: i0.Injectable }], propDecorators: { on: [], create: [], loadAd: [], show: [], isLoading: [], destroy: [], dislikeAd: [], setAllowCustomClick: [], getAdSource: [], getDescription: [], getCallToAction: [], getDislikeAdReasons: [], isCustomClickAllowed: [], isCustomDislikeThisAdEnabled: [], recordClickEvent: [], recordImpressionEvent: [], getUniqueId: [], setDislikeAdListener: [], gotoWhyThisAdPage: [], getAdSign: [], getTitle: [], getWhyThisAd: [], recordShowStartEvent: [], onAdClose: [], getNativeAdConfiguration: [], setOnDownloadStatusChangedListener: [], setOnNonWifiDownloadListener: [], setShowPermissionDialog: [], setAllowedNonWifiNetwork: [], cancel: [], continueDownload: [], showAdvertiserInfoDialog: [], hideAdvertiserInfoDialog: [], hasAdvertiserInfo: [], getAdvertiserInfo: [], getAppInfo: [], getPromoteInfo: [], showAppDetailPage: [], showPrivacyPolicy: [], showPermissionPage: [], isTransparencyOpen: [], getTransparencyTplUrl: [], getInterActionType: [], setVideoConfiguration: [], getBiddingInfo: [] } }); var HMSRewardAd = /** @class */ (function (_super) { tslib.__extends(HMSRewardAd, _super); function HMSRewardAd() { return _super !== null && _super.apply(this, arguments) || this; } HMSRewardAd.prototype.on = function (eventName, callback) { return core.cordova(this, "on", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.create = function (adId) { return core.cordova(this, "create", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.show = function (useActivity) { return core.cordova(this, "show", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.resume = function () { return core.cordova(this, "resume", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.pause = function () { return core.cordova(this, "pause", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.destroy = function () { return core.cordova(this, "destroy", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.loadAdWithAdId = function (adId, adParam) { return core.cordova(this, "loadAdWithAdId", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.loadAd = function (adParam) { return core.cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSRewardAd.prototype.isLoaded = function () { return core.cordova(this, "isLoaded", { "oth