UNPKG

@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) 705 B
export interface HMSResizeObserverCallback { (entry: ResizeObserverEntry): void; } /** * This is a wrapper around ResizeObserver which will call the callback passed * for an element while observing, only when that element is intersecting */ export declare class HMSResizeObserverWrapper { private resizeObserver?; private readonly TAG; private listeners; constructor(); isSupported(): boolean; observe: (element: HTMLElement, onResize: HMSResizeObserverCallback, options?: ResizeObserverOptions) => void; unobserve: (element: HTMLElement) => void; private createObserver; private handleResize; } export declare const HMSResizeObserver: HMSResizeObserverWrapper;