Interface IResizeObserverFactory
Factory interface for creating instances of IResizeObserver.
public interface IResizeObserverFactory
- Extension Methods
Methods
Create()
Creates a new instance of IResizeObserver.
IResizeObserver Create()
Returns
- IResizeObserver
A new instance of IResizeObserver.
Remarks
If you are creating this IResizeObserver instance yourself using this factory, then you need to manually call DisposeAsync(); otherwise, you will get a memory leak.
Create(ResizeObserverOptions)
Creates a new instance of IResizeObserver with the specified options.
IResizeObserver Create(ResizeObserverOptions options)
Parameters
options
ResizeObserverOptionsThe options to configure the resize observer.
Returns
- IResizeObserver
A new instance of IResizeObserver.
Remarks
If you are creating this IResizeObserver instance yourself using this factory, then you need to manually call DisposeAsync(); otherwise, you will get a memory leak.