UNPKG

@hmscore/cordova-plugin-hms-ads

Version:
619 lines (615 loc) 133 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. */ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { AwesomeCordovaNativePlugin, cordova, cordovaPropertyGet, cordovaPropertySet } from "@awesome-cordova-plugins/core"; /////////////////////////////////////////////////////////////// // Constants /////////////////////////////////////////////////////////////// export var AdParamErrorCodes; (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"; })(AdParamErrorCodes || (AdParamErrorCodes = {})); export var RewardAdStatusErrorCodes; (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"; })(RewardAdStatusErrorCodes || (RewardAdStatusErrorCodes = {})); export var AdContentClassification; (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"; })(AdContentClassification || (AdContentClassification = {})); export var Gender; (function (Gender) { Gender[Gender["FEMALE"] = 2] = "FEMALE"; Gender[Gender["MALE"] = 1] = "MALE"; Gender[Gender["UNKNOWN"] = 0] = "UNKNOWN"; })(Gender || (Gender = {})); export var NonPersonalizedAd; (function (NonPersonalizedAd) { NonPersonalizedAd[NonPersonalizedAd["ALLOW_ALL"] = 0] = "ALLOW_ALL"; NonPersonalizedAd[NonPersonalizedAd["ALLOW_NON_PERSONALIZED"] = 1] = "ALLOW_NON_PERSONALIZED"; })(NonPersonalizedAd || (NonPersonalizedAd = {})); export var ChildProtection; (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"; })(ChildProtection || (ChildProtection = {})); export var UnderAgeOfPromise; (function (UnderAgeOfPromise) { UnderAgeOfPromise[UnderAgeOfPromise["PROMISE_UNSPECIFIED"] = -1] = "PROMISE_UNSPECIFIED"; UnderAgeOfPromise[UnderAgeOfPromise["PROMISE_FALSE"] = 0] = "PROMISE_FALSE"; UnderAgeOfPromise[UnderAgeOfPromise["PROMISE_TRUE"] = 1] = "PROMISE_TRUE"; })(UnderAgeOfPromise || (UnderAgeOfPromise = {})); export var BannerAdSize; (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"; })(BannerAdSize || (BannerAdSize = {})); export var HMSScreenOrientation; (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"; })(HMSScreenOrientation || (HMSScreenOrientation = {})); export var DebugNeedConsent; (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"; })(DebugNeedConsent || (DebugNeedConsent = {})); export var ConsentStatus; (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"; })(ConsentStatus || (ConsentStatus = {})); export var AudioFocusType; (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"; })(AudioFocusType || (AudioFocusType = {})); export var MediaAspect; (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"; })(MediaAspect || (MediaAspect = {})); export var ChoicesPosition; (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"; })(ChoicesPosition || (ChoicesPosition = {})); export var MediaDirection; (function (MediaDirection) { MediaDirection[MediaDirection["ANY"] = 0] = "ANY"; MediaDirection[MediaDirection["LANDSCAPE"] = 2] = "LANDSCAPE"; MediaDirection[MediaDirection["PORTRAIT"] = 1] = "PORTRAIT"; })(MediaDirection || (MediaDirection = {})); export var NativeAdTemplate; (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"; })(NativeAdTemplate || (NativeAdTemplate = {})); export var Color; (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"; })(Color || (Color = {})); export var InstallReferrerResponses; (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"; })(InstallReferrerResponses || (InstallReferrerResponses = {})); export var Anchor; (function (Anchor) { Anchor["TOP"] = "top"; Anchor["BOTTOM"] = "bottom"; Anchor["INVISIBLE"] = "invisible"; })(Anchor || (Anchor = {})); export var BannerAdEvents; (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"; })(BannerAdEvents || (BannerAdEvents = {})); export var InterstitialAdEvents; (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"; })(InterstitialAdEvents || (InterstitialAdEvents = {})); export var SplashAdEvents; (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"; })(SplashAdEvents || (SplashAdEvents = {})); export var RollAdEvents; (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"; })(RollAdEvents || (RollAdEvents = {})); export var RewardAdEvents; (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"; })(RewardAdEvents || (RewardAdEvents = {})); export var DetailedCreativeType; (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"; })(DetailedCreativeType || (DetailedCreativeType = {})); export var NativeAdEvents; (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"; })(NativeAdEvents || (NativeAdEvents = {})); export var VastEvents; (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"; })(VastEvents || (VastEvents = {})); export var ActivateStyle; (function (ActivateStyle) { ActivateStyle[ActivateStyle["BOTTOM_BANNER"] = 1] = "BOTTOM_BANNER"; ActivateStyle[ActivateStyle["CONFIRM_DIALOG"] = 2] = "CONFIRM_DIALOG"; })(ActivateStyle || (ActivateStyle = {})); export var CreativeMatchType; (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"; })(CreativeMatchType || (CreativeMatchType = {})); export var AppDownloadStatus; (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"; })(AppDownloadStatus || (AppDownloadStatus = {})); export var AutoPlayNetType; (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"; })(AutoPlayNetType || (AutoPlayNetType = {})); var HMSAdsOriginal = /** @class */ (function (_super) { __extends(HMSAdsOriginal, _super); function HMSAdsOriginal() { return _super !== null && _super.apply(this, arguments) || this; } HMSAdsOriginal.prototype.on = function (event, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.init = function () { return cordova(this, "init", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getSDKVersion = function () { return cordova(this, "getSDKVersion", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getRequestOptions = function () { return cordova(this, "getRequestOptions", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.setRequestOptions = function (requestOptions) { return cordova(this, "setRequestOptions", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.setConsent = function (consent) { return cordova(this, "setConsent", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getAppActivateStyle = function () { return cordova(this, "getAppActivateStyle", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.setAppActivateStyle = function (style) { return cordova(this, "setAppActivateStyle", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.setAppInstalledNotify = function (status) { return cordova(this, "setAppInstalledNotify", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.isAppInstalledNotify = function () { return cordova(this, "isAppInstalledNotify", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.enableLogger = function () { return cordova(this, "enableLogger", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.disableLogger = function () { return cordova(this, "disableLogger", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.addTestDeviceId = function (testDeviceId) { return cordova(this, "addTestDeviceId", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getTestDeviceId = function () { return cordova(this, "getTestDeviceId", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.setUnderAgeOfPromise = function (underAgeOfPromise) { return cordova(this, "setUnderAgeOfPromise", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.setConsentStatus = function (consentStatus) { return cordova(this, "setConsentStatus", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.setDebugNeedConsent = function (debugNeedConsent) { return cordova(this, "setDebugNeedConsent", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.requestConsentUpdate = function () { return cordova(this, "requestConsentUpdate", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.verifyAdId = function (adId, isLimitAdTracking) { return cordova(this, "verifyAdId", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getAdvertisingIdInfo = function () { return cordova(this, "getAdvertisingIdInfo", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.referrerClientStartConnection = function (isTest) { return cordova(this, "referrerClientStartConnection", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.referrerClientEndConnection = function () { return cordova(this, "referrerClientEndConnection", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.referrerClientIsReady = function () { return cordova(this, "referrerClientIsReady", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getInstallReferrer = function (installChannel) { return cordova(this, "getInstallReferrer", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.initVast = function (vastSdkConfiguration) { return cordova(this, "initVast", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getVastSdkConfiguration = function () { return cordova(this, "getVastSdkConfiguration", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.updateSdkServerConfig = function (slotId) { return cordova(this, "updateSdkServerConfig", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.userAcceptAdLicense = function (isAcceptLicense) { return cordova(this, "userAcceptAdLicense", { "otherPromise": true }, arguments); }; HMSAdsOriginal.prototype.getEventProcessor = function () { return cordova(this, "getEventProcessor", { "otherPromise": true }, arguments); }; Object.defineProperty(HMSAdsOriginal.prototype, "HMSInterstitialAd", { get: function () { return cordovaPropertyGet(this, "HMSInterstitialAd"); }, set: function (value) { cordovaPropertySet(this, "HMSInterstitialAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAdsOriginal.prototype, "HMSBannerAd", { get: function () { return cordovaPropertyGet(this, "HMSBannerAd"); }, set: function (value) { cordovaPropertySet(this, "HMSBannerAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAdsOriginal.prototype, "HMSSplashAd", { get: function () { return cordovaPropertyGet(this, "HMSSplashAd"); }, set: function (value) { cordovaPropertySet(this, "HMSSplashAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAdsOriginal.prototype, "HMSRewardAd", { get: function () { return cordovaPropertyGet(this, "HMSRewardAd"); }, set: function (value) { cordovaPropertySet(this, "HMSRewardAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAdsOriginal.prototype, "HMSNativeAd", { get: function () { return cordovaPropertyGet(this, "HMSNativeAd"); }, set: function (value) { cordovaPropertySet(this, "HMSNativeAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAdsOriginal.prototype, "HMSRollAd", { get: function () { return cordovaPropertyGet(this, "HMSRollAd"); }, set: function (value) { cordovaPropertySet(this, "HMSRollAd", value); }, enumerable: false, configurable: true }); Object.defineProperty(HMSAdsOriginal.prototype, "HMSVast", { get: function () { return cordovaPropertyGet(this, "HMSVast"); }, set: function (value) { cordovaPropertySet(this, "HMSVast", value); }, enumerable: false, configurable: true }); HMSAdsOriginal.pluginName = "HMSAds"; HMSAdsOriginal.plugin = "cordova-plugin-hms-ads"; HMSAdsOriginal.pluginRef = "HMSAds"; HMSAdsOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSAdsOriginal.platforms = ["Android"]; return HMSAdsOriginal; }(AwesomeCordovaNativePlugin)); var HMSAds = new HMSAdsOriginal(); export { HMSAds }; var HMSBannerAdOriginal = /** @class */ (function (_super) { __extends(HMSBannerAdOriginal, _super); function HMSBannerAdOriginal() { return _super !== null && _super.apply(this, arguments) || this; } HMSBannerAdOriginal.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.create = function (divId, bounds) { return cordova(this, "create", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.scroll = function () { return cordova(this, "scroll", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getAdId = function () { return cordova(this, "getAdId", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.setAdId = function (adId) { return cordova(this, "setAdId", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getBannerAdSize = function () { return cordova(this, "getBannerAdSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.setBannerAdSize = function (bannerAdSize) { return cordova(this, "setBannerAdSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.setBackgroundColor = function (bgColor) { return cordova(this, "setBackgroundColor", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.setBannerRefresh = function (bannerRefresh) { return cordova(this, "setBannerRefresh", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.setAdListener = function () { return cordova(this, "setAdListener", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.isLoading = function () { return cordova(this, "isLoading", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.loadAd = function (adParam) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.pause = function () { return cordova(this, "pause", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.resume = function () { return cordova(this, "resume", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.destroy = function () { return cordova(this, "destroy", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getHeight = function () { return cordova(this, "getHeight", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getHeightPx = function () { return cordova(this, "getHeightPx", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getWidth = function () { return cordova(this, "getWidth", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getWidthPx = function () { return cordova(this, "getWidthPx", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.isAutoHeightSize = function () { return cordova(this, "isAutoHeightSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.isDynamicSize = function () { return cordova(this, "isDynamicSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.isFullWidthSize = function () { return cordova(this, "isFullWidthSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getCurrentDirectionBannerSize = function (width) { return cordova(this, "getCurrentDirectionBannerSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getLandscapeBannerSize = function (width) { return cordova(this, "getLandscapeBannerSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getPortraitBannerSize = function (width) { return cordova(this, "getPortraitBannerSize", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); }; HMSBannerAdOriginal.pluginName = "HMSAds"; HMSBannerAdOriginal.plugin = "cordova-plugin-hms-ads"; HMSBannerAdOriginal.pluginRef = "HMSAds.HMSBannerAd"; HMSBannerAdOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSBannerAdOriginal.platforms = ["Android"]; return HMSBannerAdOriginal; }(AwesomeCordovaNativePlugin)); var HMSBannerAd = new HMSBannerAdOriginal(); export { HMSBannerAd }; var HMSInterstitialAdOriginal = /** @class */ (function (_super) { __extends(HMSInterstitialAdOriginal, _super); function HMSInterstitialAdOriginal() { return _super !== null && _super.apply(this, arguments) || this; } HMSInterstitialAdOriginal.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.create = function (useActivity) { return cordova(this, "create", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.scroll = function () { return cordova(this, "scroll", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.show = function () { return cordova(this, "show", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.isLoaded = function () { return cordova(this, "isLoaded", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.isLoading = function () { return cordova(this, "isLoading", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.loadAd = function (adParam) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.setAdId = function (adId) { return cordova(this, "setAdId", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.getAdId = function () { return cordova(this, "getAdId", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.setAdListener = function () { return cordova(this, "setAdListener", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.setRewardAdListener = function () { return cordova(this, "setRewardAdListener", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorGetAspectRatio = function () { return cordova(this, "videoOperatorGetAspectRatio", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorHasVideo = function () { return cordova(this, "videoOperatorHasVideo", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorIsCustomizeOperateEnabled = function () { return cordova(this, "videoOperatorIsCustomizeOperateEnabled", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorIsMuted = function () { return cordova(this, "videoOperatorIsMuted", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorMute = function (mute) { return cordova(this, "videoOperatorMute", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorPause = function () { return cordova(this, "videoOperatorPause", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorPlay = function () { return cordova(this, "videoOperatorPlay", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.videoOperatorStop = function () { return cordova(this, "videoOperatorStop", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.setVideoConfiguration = function (videoConfiguration) { return cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); }; HMSInterstitialAdOriginal.pluginName = "HMSAds"; HMSInterstitialAdOriginal.plugin = "cordova-plugin-hms-ads"; HMSInterstitialAdOriginal.pluginRef = "HMSAds.HMSInterstitialAd"; HMSInterstitialAdOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSInterstitialAdOriginal.platforms = ["Android"]; return HMSInterstitialAdOriginal; }(AwesomeCordovaNativePlugin)); var HMSInterstitialAd = new HMSInterstitialAdOriginal(); export { HMSInterstitialAd }; var HMSNativeAdOriginal = /** @class */ (function (_super) { __extends(HMSNativeAdOriginal, _super); function HMSNativeAdOriginal() { return _super !== null && _super.apply(this, arguments) || this; } HMSNativeAdOriginal.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.create = function (options, bounds) { return cordova(this, "create", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.loadAd = function (options) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.show = function () { return cordova(this, "show", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.isLoading = function () { return cordova(this, "isLoading", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.destroy = function () { return cordova(this, "destroy", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.dislikeAd = function (dislikeReason) { return cordova(this, "dislikeAd", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.setAllowCustomClick = function () { return cordova(this, "setAllowCustomClick", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getAdSource = function () { return cordova(this, "getAdSource", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getDescription = function () { return cordova(this, "getDescription", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getCallToAction = function () { return cordova(this, "getCallToAction", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getDislikeAdReasons = function () { return cordova(this, "getDislikeAdReasons", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.isCustomClickAllowed = function () { return cordova(this, "isCustomClickAllowed", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.isCustomDislikeThisAdEnabled = function () { return cordova(this, "isCustomDislikeThisAdEnabled", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.recordClickEvent = function () { return cordova(this, "recordClickEvent", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.recordImpressionEvent = function (impressionData) { return cordova(this, "recordImpressionEvent", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getUniqueId = function () { return cordova(this, "getUniqueId", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.setDislikeAdListener = function () { return cordova(this, "setDislikeAdListener", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.gotoWhyThisAdPage = function (useView) { return cordova(this, "gotoWhyThisAdPage", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getAdSign = function () { return cordova(this, "getAdSign", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getTitle = function () { return cordova(this, "getTitle", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getWhyThisAd = function () { return cordova(this, "getWhyThisAd", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.recordShowStartEvent = function (showStartData) { return cordova(this, "recordShowStartEvent", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.onAdClose = function (keywords) { return cordova(this, "onAdClose", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getNativeAdConfiguration = function () { return cordova(this, "getNativeAdConfiguration", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.setOnDownloadStatusChangedListener = function () { return cordova(this, "setOnDownloadStatusChangedListener", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.setOnNonWifiDownloadListener = function () { return cordova(this, "setOnNonWifiDownloadListener", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.setShowPermissionDialog = function (show) { return cordova(this, "setShowPermissionDialog", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.setAllowedNonWifiNetwork = function (allowed) { return cordova(this, "setAllowedNonWifiNetwork", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.cancel = function () { return cordova(this, "cancel", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.continueDownload = function () { return cordova(this, "continueDownload", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.showAdvertiserInfoDialog = function () { return cordova(this, "showAdvertiserInfoDialog", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.hideAdvertiserInfoDialog = function () { return cordova(this, "hideAdvertiserInfoDialog", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.hasAdvertiserInfo = function () { return cordova(this, "hasAdvertiserInfo", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getAdvertiserInfo = function () { return cordova(this, "getAdvertiserInfo", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getAppInfo = function () { return cordova(this, "getAppInfo", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getPromoteInfo = function () { return cordova(this, "getPromoteInfo", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.showAppDetailPage = function () { return cordova(this, "showAppDetailPage", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.showPrivacyPolicy = function () { return cordova(this, "showPrivacyPolicy", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.showPermissionPage = function () { return cordova(this, "showPermissionPage", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.isTransparencyOpen = function () { return cordova(this, "isTransparencyOpen", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getTransparencyTplUrl = function () { return cordova(this, "getTransparencyTplUrl", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getInterActionType = function () { return cordova(this, "getInterActionType", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.setVideoConfiguration = function (videoConfiguration) { return cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); }; HMSNativeAdOriginal.pluginName = "HMSAds"; HMSNativeAdOriginal.plugin = "cordova-plugin-hms-ads"; HMSNativeAdOriginal.pluginRef = "HMSAds.HMSNativeAd"; HMSNativeAdOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSNativeAdOriginal.platforms = ["Android"]; return HMSNativeAdOriginal; }(AwesomeCordovaNativePlugin)); var HMSNativeAd = new HMSNativeAdOriginal(); export { HMSNativeAd }; var HMSRewardAdOriginal = /** @class */ (function (_super) { __extends(HMSRewardAdOriginal, _super); function HMSRewardAdOriginal() { return _super !== null && _super.apply(this, arguments) || this; } HMSRewardAdOriginal.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.create = function (adId) { return cordova(this, "create", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.show = function (useActivity) { return cordova(this, "show", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.resume = function () { return cordova(this, "resume", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.pause = function () { return cordova(this, "pause", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.destroy = function () { return cordova(this, "destroy", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.loadAdWithAdId = function (adId, adParam) { return cordova(this, "loadAdWithAdId", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.loadAd = function (adParam) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.isLoaded = function () { return cordova(this, "isLoaded", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.getData = function () { return cordova(this, "getData", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.getUserId = function () { return cordova(this, "getUserId", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.getReward = function () { return cordova(this, "getReward", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setData = function (data) { return cordova(this, "setData", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setImmersive = function (immersive) { return cordova(this, "setImmersive", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setUserId = function (userId) { return cordova(this, "setUserId", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setRewardVerifyConfig = function (config) { return cordova(this, "setRewardVerifyConfig", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.getRewardVerifyConfig = function () { return cordova(this, "getRewardVerifyConfig", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setOnMetadataChangedListener = function () { return cordova(this, "setOnMetadataChangedListener", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setRewardAdListener = function () { return cordova(this, "setRewardAdListener", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setMobileDataAlertSwitch = function (alertSwitch) { return cordova(this, "setMobileDataAlertSwitch", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.setVideoConfiguration = function (videoConfiguration) { return cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); }; HMSRewardAdOriginal.pluginName = "HMSAds"; HMSRewardAdOriginal.plugin = "cordova-plugin-hms-ads"; HMSRewardAdOriginal.pluginRef = "HMSAds.HMSRewardAd"; HMSRewardAdOriginal.repo = "https://github.com/HMS-Core/hms-cordova-plugin"; HMSRewardAdOriginal.platforms = ["Android"]; return HMSRewardAdOriginal; }(AwesomeCordovaNativePlugin)); var HMSRewardAd = new HMSRewardAdOriginal(); export { HMSRewardAd }; var HMSRollAdOriginal = /** @class */ (function (_super) { __extends(HMSRollAdOriginal, _super); function HMSRollAdOriginal() { return _super !== null && _super.apply(this, arguments) || this; } HMSRollAdOriginal.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.create = function (params, divId, bounds) { return cordova(this, "create", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.scroll = function () { return cordova(this, "scroll", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.loadAd = function (options) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.isLoading = function () { return cordova(this, "isLoading", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.destroy = function () { return cordova(this, "destroy", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.pause = function () { return cordova(this, "pause", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.isPlaying = function () { return cordova(this, "isPlaying", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.mute = function () { return cordova(this, "mute", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.unmute = function () { return cordova(this, "unmute", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.onClose = function () { return cordova(this, "onClose", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.play = function () { return cordova(this, "play", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.stop = function () { return cordova(this, "stop", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.removeInstreamMediaChangeListener = function () { return cordova(this, "removeInstreamMediaChangeListener", { "otherPromise": true }, arguments); }; HMSRollAdOriginal.prototype.removeMediaMuteListener = function () { return cordova(this, "removeMediaMuteListener", { "otherPromise": true }, arguments); }; HMSRollAdO