@aws-amplify/core
Version:
Core category of aws-amplify
11 lines (10 loc) • 466 B
TypeScript
import { SessionListenerInterface, SessionStateChangeListener } from './types';
export declare class SessionListener implements SessionListenerInterface {
private listenerActive;
constructor();
addStateChangeListener(listener: SessionStateChangeListener, notifyOnAdd?: boolean): void;
removeStateChangeListener(handler: SessionStateChangeListener): void;
private handleVisibilityChange;
private notifyHandlers;
private getSessionState;
}