UNPKG

@netcreaties/ngx-smart-banner

Version:

Angular service for the imlementation of a smart banner to notify your users about your available app.

31 lines (30 loc) 1.21 kB
import { Platform } from '@angular/cdk/platform'; import { ComponentFactoryResolver, EventEmitter } from '@angular/core'; import { NgxSmartBannerSettings } from './settings.interface'; import { CookieService } from './utils/cookie-service'; import * as i0 from "@angular/core"; export declare class NgxSmartBannerService { private readonly platform; private readonly componentResolver; private readonly platformId; private readonly cookieService; private readonly isServer; settings: NgxSmartBannerSettings; private smartBanner; onOpen: EventEmitter<void>; onClose: EventEmitter<void>; private onCloseSubscription$; constructor(platform: Platform, componentResolver: ComponentFactoryResolver, platformId: string, cookieService: CookieService); /** * Initializes ngx smart banner service * * @params settings */ initialize(settings: NgxSmartBannerSettings): void; /** * Determine if platform is enabled */ private get platformEnabled(); static ɵfac: i0.ɵɵFactoryDeclaration<NgxSmartBannerService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgxSmartBannerService>; }