@omostan/ngx-idle
Version:
A module for responding to idle users in Angular applications. this is a forked version of the original @ng-Idle
28 lines • 1.02 kB
TypeScript
import { EventEmitter, NgZone, OnDestroy } from '@angular/core';
import { HttpClient, HttpRequest, HttpResponse } from '@angular/common/http';
import { KeepaliveSvc } from '@ng-idle/core';
import * as i0 from "@angular/core";
/**
* An example of an injectable service.
*/
export declare class Keepalive extends KeepaliveSvc implements OnDestroy {
private http;
private zone;
private pingRequest;
private pingInterval;
private pingHandle;
onPing: EventEmitter<any>;
onPingResponse: EventEmitter<HttpResponse<any>>;
constructor(http: HttpClient, zone: NgZone);
request<T>(url?: string | HttpRequest<T>): HttpRequest<T>;
interval(seconds?: number): number;
ping(): void;
start(): void;
stop(): void;
ngOnDestroy(): void;
isRunning(): boolean;
private hasPingHandle;
static ɵfac: i0.ɵɵFactoryDeclaration<Keepalive, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<Keepalive>;
}
//# sourceMappingURL=keepalive.d.ts.map