UNPKG

@nativescript/google-mobile-ads

Version:
55 lines 2.43 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { ContainerView, ContentView, CSSType, Property } from '@nativescript/core'; let NativeAdViewBase = class NativeAdViewBase extends ContentView { }; NativeAdViewBase = __decorate([ CSSType('NativeAdView') ], NativeAdViewBase); export { NativeAdViewBase }; export const stretchProperty = new Property({ name: 'stretch', defaultValue: 'aspectFit', affectsLayout: global.isIOS, }); export const mediaContentProperty = new Property({ name: 'mediaContent', }); let MediaViewBase = class MediaViewBase extends ContainerView { }; MediaViewBase = __decorate([ CSSType('MediaView') ], MediaViewBase); export { MediaViewBase }; stretchProperty.register(MediaViewBase); mediaContentProperty.register(MediaViewBase); export var VideoStatus; (function (VideoStatus) { VideoStatus[VideoStatus["Unstarted"] = 0] = "Unstarted"; VideoStatus[VideoStatus["Playing"] = 1] = "Playing"; VideoStatus[VideoStatus["Paused"] = 2] = "Paused"; VideoStatus[VideoStatus["Ended"] = 3] = "Ended"; })(VideoStatus || (VideoStatus = {})); export var MediaAspectRatio; (function (MediaAspectRatio) { MediaAspectRatio["LANDSCAPE"] = "landscape"; MediaAspectRatio["PORTRAIT"] = "portrait"; MediaAspectRatio["SQUARE"] = "square"; MediaAspectRatio["ANY"] = "any"; })(MediaAspectRatio || (MediaAspectRatio = {})); export var AdChoicesPlacement; (function (AdChoicesPlacement) { AdChoicesPlacement["TOP_LEFT"] = "topLeft"; AdChoicesPlacement["TOP_RIGHT"] = "topRight"; AdChoicesPlacement["BOTTOM_RIGHT"] = "bottomRight"; AdChoicesPlacement["BOTTOM_LEFT"] = "bottomLeft"; })(AdChoicesPlacement || (AdChoicesPlacement = {})); export var NativeAdEventType; (function (NativeAdEventType) { NativeAdEventType["LOADED"] = "native_ad_loaded"; })(NativeAdEventType || (NativeAdEventType = {})); //# sourceMappingURL=common.js.map