@hmscore/cordova-plugin-hms-ads
Version:
Cordova HMS Ads Plugin
599 lines (595 loc) • 143 kB
JavaScript
/*
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.
*/
import { __decorate, __extends } from "tslib";
import { Injectable } from "@angular/core";
import { AwesomeCordovaNativePlugin, cordova, cordovaPropertyGet, cordovaPropertySet } from "@awesome-cordova-plugins/core";
import * as i0 from "@angular/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 HMSAds = /** @class */ (function (_super) {
__extends(HMSAds, _super);
function HMSAds() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSAds.prototype.on = function (event, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); };
HMSAds.prototype.init = function () { return cordova(this, "init", { "otherPromise": true }, arguments); };
HMSAds.prototype.getSDKVersion = function () { return cordova(this, "getSDKVersion", { "otherPromise": true }, arguments); };
HMSAds.prototype.getRequestOptions = function () { return cordova(this, "getRequestOptions", { "otherPromise": true }, arguments); };
HMSAds.prototype.setRequestOptions = function (requestOptions) { return cordova(this, "setRequestOptions", { "otherPromise": true }, arguments); };
HMSAds.prototype.setConsent = function (consent) { return cordova(this, "setConsent", { "otherPromise": true }, arguments); };
HMSAds.prototype.getAppActivateStyle = function () { return cordova(this, "getAppActivateStyle", { "otherPromise": true }, arguments); };
HMSAds.prototype.setAppActivateStyle = function (style) { return cordova(this, "setAppActivateStyle", { "otherPromise": true }, arguments); };
HMSAds.prototype.setAppInstalledNotify = function (status) { return cordova(this, "setAppInstalledNotify", { "otherPromise": true }, arguments); };
HMSAds.prototype.isAppInstalledNotify = function () { return cordova(this, "isAppInstalledNotify", { "otherPromise": true }, arguments); };
HMSAds.prototype.enableLogger = function () { return cordova(this, "enableLogger", { "otherPromise": true }, arguments); };
HMSAds.prototype.disableLogger = function () { return cordova(this, "disableLogger", { "otherPromise": true }, arguments); };
HMSAds.prototype.addTestDeviceId = function (testDeviceId) { return cordova(this, "addTestDeviceId", { "otherPromise": true }, arguments); };
HMSAds.prototype.getTestDeviceId = function () { return cordova(this, "getTestDeviceId", { "otherPromise": true }, arguments); };
HMSAds.prototype.setUnderAgeOfPromise = function (underAgeOfPromise) { return cordova(this, "setUnderAgeOfPromise", { "otherPromise": true }, arguments); };
HMSAds.prototype.setConsentStatus = function (consentStatus) { return cordova(this, "setConsentStatus", { "otherPromise": true }, arguments); };
HMSAds.prototype.setDebugNeedConsent = function (debugNeedConsent) { return cordova(this, "setDebugNeedConsent", { "otherPromise": true }, arguments); };
HMSAds.prototype.requestConsentUpdate = function () { return cordova(this, "requestConsentUpdate", { "otherPromise": true }, arguments); };
HMSAds.prototype.verifyAdId = function (adId, isLimitAdTracking) { return cordova(this, "verifyAdId", { "otherPromise": true }, arguments); };
HMSAds.prototype.getAdvertisingIdInfo = function () { return cordova(this, "getAdvertisingIdInfo", { "otherPromise": true }, arguments); };
HMSAds.prototype.referrerClientStartConnection = function (isTest) { return cordova(this, "referrerClientStartConnection", { "otherPromise": true }, arguments); };
HMSAds.prototype.referrerClientEndConnection = function () { return cordova(this, "referrerClientEndConnection", { "otherPromise": true }, arguments); };
HMSAds.prototype.referrerClientIsReady = function () { return cordova(this, "referrerClientIsReady", { "otherPromise": true }, arguments); };
HMSAds.prototype.getInstallReferrer = function (installChannel) { return cordova(this, "getInstallReferrer", { "otherPromise": true }, arguments); };
HMSAds.prototype.initVast = function (vastSdkConfiguration) { return cordova(this, "initVast", { "otherPromise": true }, arguments); };
HMSAds.prototype.getVastSdkConfiguration = function () { return cordova(this, "getVastSdkConfiguration", { "otherPromise": true }, arguments); };
HMSAds.prototype.updateSdkServerConfig = function (slotId) { return cordova(this, "updateSdkServerConfig", { "otherPromise": true }, arguments); };
HMSAds.prototype.userAcceptAdLicense = function (isAcceptLicense) { return cordova(this, "userAcceptAdLicense", { "otherPromise": true }, arguments); };
HMSAds.prototype.getEventProcessor = function () { return cordova(this, "getEventProcessor", { "otherPromise": true }, arguments); };
Object.defineProperty(HMSAds.prototype, "HMSInterstitialAd", {
get: function () { return cordovaPropertyGet(this, "HMSInterstitialAd"); },
set: function (value) { cordovaPropertySet(this, "HMSInterstitialAd", value); },
enumerable: false,
configurable: true
});
Object.defineProperty(HMSAds.prototype, "HMSBannerAd", {
get: function () { return cordovaPropertyGet(this, "HMSBannerAd"); },
set: function (value) { cordovaPropertySet(this, "HMSBannerAd", value); },
enumerable: false,
configurable: true
});
Object.defineProperty(HMSAds.prototype, "HMSSplashAd", {
get: function () { return cordovaPropertyGet(this, "HMSSplashAd"); },
set: function (value) { cordovaPropertySet(this, "HMSSplashAd", value); },
enumerable: false,
configurable: true
});
Object.defineProperty(HMSAds.prototype, "HMSRewardAd", {
get: function () { return cordovaPropertyGet(this, "HMSRewardAd"); },
set: function (value) { cordovaPropertySet(this, "HMSRewardAd", value); },
enumerable: false,
configurable: true
});
Object.defineProperty(HMSAds.prototype, "HMSNativeAd", {
get: function () { return cordovaPropertyGet(this, "HMSNativeAd"); },
set: function (value) { cordovaPropertySet(this, "HMSNativeAd", value); },
enumerable: false,
configurable: true
});
Object.defineProperty(HMSAds.prototype, "HMSRollAd", {
get: function () { return cordovaPropertyGet(this, "HMSRollAd"); },
set: function (value) { cordovaPropertySet(this, "HMSRollAd", value); },
enumerable: false,
configurable: true
});
Object.defineProperty(HMSAds.prototype, "HMSVast", {
get: function () { return cordovaPropertyGet(this, "HMSVast"); },
set: function (value) { cordovaPropertySet(this, "HMSVast", value); },
enumerable: false,
configurable: true
});
HMSAds.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSAds, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
HMSAds.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, 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 = __decorate([], HMSAds);
return HMSAds;
}(AwesomeCordovaNativePlugin));
export { HMSAds };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSAds, decorators: [{
type: 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) {
__extends(HMSBannerAd, _super);
function HMSBannerAd() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSBannerAd.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.create = function (divId, bounds) { return cordova(this, "create", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.scroll = function () { return cordova(this, "scroll", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getAdId = function () { return cordova(this, "getAdId", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.setAdId = function (adId) { return cordova(this, "setAdId", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getBannerAdSize = function () { return cordova(this, "getBannerAdSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.setBannerAdSize = function (bannerAdSize) { return cordova(this, "setBannerAdSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.setBackgroundColor = function (bgColor) { return cordova(this, "setBackgroundColor", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.setBannerRefresh = function (bannerRefresh) { return cordova(this, "setBannerRefresh", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.setAdListener = function () { return cordova(this, "setAdListener", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.isLoading = function () { return cordova(this, "isLoading", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.loadAd = function (adParam) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.pause = function () { return cordova(this, "pause", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.resume = function () { return cordova(this, "resume", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.destroy = function () { return cordova(this, "destroy", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getHeight = function () { return cordova(this, "getHeight", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getHeightPx = function () { return cordova(this, "getHeightPx", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getWidth = function () { return cordova(this, "getWidth", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getWidthPx = function () { return cordova(this, "getWidthPx", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.isAutoHeightSize = function () { return cordova(this, "isAutoHeightSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.isDynamicSize = function () { return cordova(this, "isDynamicSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.isFullWidthSize = function () { return cordova(this, "isFullWidthSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getCurrentDirectionBannerSize = function (width) { return cordova(this, "getCurrentDirectionBannerSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getLandscapeBannerSize = function (width) { return cordova(this, "getLandscapeBannerSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getPortraitBannerSize = function (width) { return cordova(this, "getPortraitBannerSize", { "otherPromise": true }, arguments); };
HMSBannerAd.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); };
HMSBannerAd.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSBannerAd, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
HMSBannerAd.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, 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 = __decorate([], HMSBannerAd);
return HMSBannerAd;
}(AwesomeCordovaNativePlugin));
export { HMSBannerAd };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSBannerAd, decorators: [{
type: 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) {
__extends(HMSInterstitialAd, _super);
function HMSInterstitialAd() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSInterstitialAd.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.create = function (useActivity) { return cordova(this, "create", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.scroll = function () { return cordova(this, "scroll", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.show = function () { return cordova(this, "show", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.isLoaded = function () { return cordova(this, "isLoaded", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.isLoading = function () { return cordova(this, "isLoading", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.loadAd = function (adParam) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.setAdId = function (adId) { return cordova(this, "setAdId", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.getAdId = function () { return cordova(this, "getAdId", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.setAdListener = function () { return cordova(this, "setAdListener", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.setRewardAdListener = function () { return cordova(this, "setRewardAdListener", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorGetAspectRatio = function () { return cordova(this, "videoOperatorGetAspectRatio", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorHasVideo = function () { return cordova(this, "videoOperatorHasVideo", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorIsCustomizeOperateEnabled = function () { return cordova(this, "videoOperatorIsCustomizeOperateEnabled", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorIsMuted = function () { return cordova(this, "videoOperatorIsMuted", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorMute = function (mute) { return cordova(this, "videoOperatorMute", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorPause = function () { return cordova(this, "videoOperatorPause", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorPlay = function () { return cordova(this, "videoOperatorPlay", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.videoOperatorStop = function () { return cordova(this, "videoOperatorStop", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.setVideoConfiguration = function (videoConfiguration) { return cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); };
HMSInterstitialAd.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); };
HMSInterstitialAd.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSInterstitialAd, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
HMSInterstitialAd.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, 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 = __decorate([], HMSInterstitialAd);
return HMSInterstitialAd;
}(AwesomeCordovaNativePlugin));
export { HMSInterstitialAd };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSInterstitialAd, decorators: [{
type: 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) {
__extends(HMSNativeAd, _super);
function HMSNativeAd() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSNativeAd.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.create = function (options, bounds) { return cordova(this, "create", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.loadAd = function (options) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.show = function () { return cordova(this, "show", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.isLoading = function () { return cordova(this, "isLoading", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.destroy = function () { return cordova(this, "destroy", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.dislikeAd = function (dislikeReason) { return cordova(this, "dislikeAd", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.setAllowCustomClick = function () { return cordova(this, "setAllowCustomClick", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getAdSource = function () { return cordova(this, "getAdSource", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getDescription = function () { return cordova(this, "getDescription", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getCallToAction = function () { return cordova(this, "getCallToAction", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getDislikeAdReasons = function () { return cordova(this, "getDislikeAdReasons", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.isCustomClickAllowed = function () { return cordova(this, "isCustomClickAllowed", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.isCustomDislikeThisAdEnabled = function () { return cordova(this, "isCustomDislikeThisAdEnabled", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.recordClickEvent = function () { return cordova(this, "recordClickEvent", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.recordImpressionEvent = function (impressionData) { return cordova(this, "recordImpressionEvent", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getUniqueId = function () { return cordova(this, "getUniqueId", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.setDislikeAdListener = function () { return cordova(this, "setDislikeAdListener", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.gotoWhyThisAdPage = function (useView) { return cordova(this, "gotoWhyThisAdPage", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getAdSign = function () { return cordova(this, "getAdSign", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getTitle = function () { return cordova(this, "getTitle", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getWhyThisAd = function () { return cordova(this, "getWhyThisAd", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.recordShowStartEvent = function (showStartData) { return cordova(this, "recordShowStartEvent", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.onAdClose = function (keywords) { return cordova(this, "onAdClose", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getNativeAdConfiguration = function () { return cordova(this, "getNativeAdConfiguration", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.setOnDownloadStatusChangedListener = function () { return cordova(this, "setOnDownloadStatusChangedListener", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.setOnNonWifiDownloadListener = function () { return cordova(this, "setOnNonWifiDownloadListener", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.setShowPermissionDialog = function (show) { return cordova(this, "setShowPermissionDialog", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.setAllowedNonWifiNetwork = function (allowed) { return cordova(this, "setAllowedNonWifiNetwork", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.cancel = function () { return cordova(this, "cancel", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.continueDownload = function () { return cordova(this, "continueDownload", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.showAdvertiserInfoDialog = function () { return cordova(this, "showAdvertiserInfoDialog", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.hideAdvertiserInfoDialog = function () { return cordova(this, "hideAdvertiserInfoDialog", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.hasAdvertiserInfo = function () { return cordova(this, "hasAdvertiserInfo", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getAdvertiserInfo = function () { return cordova(this, "getAdvertiserInfo", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getAppInfo = function () { return cordova(this, "getAppInfo", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getPromoteInfo = function () { return cordova(this, "getPromoteInfo", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.showAppDetailPage = function () { return cordova(this, "showAppDetailPage", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.showPrivacyPolicy = function () { return cordova(this, "showPrivacyPolicy", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.showPermissionPage = function () { return cordova(this, "showPermissionPage", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.isTransparencyOpen = function () { return cordova(this, "isTransparencyOpen", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getTransparencyTplUrl = function () { return cordova(this, "getTransparencyTplUrl", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getInterActionType = function () { return cordova(this, "getInterActionType", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.setVideoConfiguration = function (videoConfiguration) { return cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); };
HMSNativeAd.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); };
HMSNativeAd.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSNativeAd, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
HMSNativeAd.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, 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 = __decorate([], HMSNativeAd);
return HMSNativeAd;
}(AwesomeCordovaNativePlugin));
export { HMSNativeAd };
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSNativeAd, decorators: [{
type: 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) {
__extends(HMSRewardAd, _super);
function HMSRewardAd() {
return _super !== null && _super.apply(this, arguments) || this;
}
HMSRewardAd.prototype.on = function (eventName, callback) { return cordova(this, "on", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.create = function (adId) { return cordova(this, "create", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.show = function (useActivity) { return cordova(this, "show", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.resume = function () { return cordova(this, "resume", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.pause = function () { return cordova(this, "pause", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.destroy = function () { return cordova(this, "destroy", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.loadAdWithAdId = function (adId, adParam) { return cordova(this, "loadAdWithAdId", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.loadAd = function (adParam) { return cordova(this, "loadAd", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.isLoaded = function () { return cordova(this, "isLoaded", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.getData = function () { return cordova(this, "getData", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.getUserId = function () { return cordova(this, "getUserId", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.getReward = function () { return cordova(this, "getReward", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setData = function (data) { return cordova(this, "setData", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setImmersive = function (immersive) { return cordova(this, "setImmersive", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setUserId = function (userId) { return cordova(this, "setUserId", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setRewardVerifyConfig = function (config) { return cordova(this, "setRewardVerifyConfig", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.getRewardVerifyConfig = function () { return cordova(this, "getRewardVerifyConfig", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setOnMetadataChangedListener = function () { return cordova(this, "setOnMetadataChangedListener", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setRewardAdListener = function () { return cordova(this, "setRewardAdListener", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setMobileDataAlertSwitch = function (alertSwitch) { return cordova(this, "setMobileDataAlertSwitch", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.setVideoConfiguration = function (videoConfiguration) { return cordova(this, "setVideoConfiguration", { "otherPromise": true }, arguments); };
HMSRewardAd.prototype.getBiddingInfo = function () { return cordova(this, "getBiddingInfo", { "otherPromise": true }, arguments); };
HMSRewardAd.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: HMSRewardAd, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
HMSRewardAd.ɵprov = i0.ɵɵngDeclareInje