@100mslive/hms-video-store
Version:
@100mslive Core SDK which abstracts the complexities of webRTC while providing a reactive store for data management with a unidirectional data flow
20 lines (19 loc) • 732 B
TypeScript
export interface HMSIntersectionObserverCallback {
(entry: IntersectionObserverEntry): void;
}
/**
* This is a wrapper around IntersectionObserver which will call the callback passed
* for an element while observing, only when that element is intersecting
*/
export declare class HMSIntersectionObserverWrapper {
private intersectionObserver?;
private readonly TAG;
private listeners;
constructor();
isSupported(): boolean;
observe: (element: HTMLElement, onIntersection: HMSIntersectionObserverCallback) => void;
unobserve: (element: HTMLElement) => void;
private createObserver;
private handleIntersection;
}
export declare const HMSIntersectionObserver: HMSIntersectionObserverWrapper;