IntersectionObserver

Overview

provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.

Location

 

disconnect

Stops the IntersectionObserver object from observing any target.

 

method disconnect: dynamic

 

dynamic disconnect()

 

func disconnect() -> dynamic

 

dynamic disconnect()

 

Function disconnect() As dynamic

root

 

property root: HTMLElement read;

 

HTMLElement root { get; }

 

var root: HTMLElement { get{} }

 

HTMLElement root { __get; }

 

ReadOnly Property root() As HTMLElement

rootMargin

 

property rootMargin: String read;

 

String rootMargin { get; }

 

var rootMargin: String { get{} }

 

String rootMargin { __get; }

 

ReadOnly Property rootMargin() As String

takeRecords

Returns an array of IntersectionObserverEntry objects for all observed targets.

 

method takeRecords: array of IntersectionObserverEntry

 

IntersectionObserverEntry[] takeRecords()

 

func takeRecords() -> IntersectionObserverEntry...

 

IntersectionObserverEntry[] takeRecords()

 

Function takeRecords() As IntersectionObserverEntry()

thresholds

 

property thresholds: Double read;

 

Double thresholds { get; }

 

var thresholds: Double { get{} }

 

Double thresholds { __get; }

 

ReadOnly Property thresholds() As Double

unobserve

Tells the IntersectionObserver to stop observing a particular target element.

 

method unobserve(partarget: dynamic)

 

void unobserve(dynamic partarget)

 

func unobserve(_ partarget: dynamic)

 

void unobserve(dynamic partarget)

 

Sub unobserve(partarget As dynamic)

Parameters:

  • partarget:

 

root

 

property root: HTMLElement read;

 

HTMLElement root { get; }

 

var root: HTMLElement { get{} }

 

HTMLElement root { __get; }

 

ReadOnly Property root() As HTMLElement

rootMargin

 

property rootMargin: String read;

 

String rootMargin { get; }

 

var rootMargin: String { get{} }

 

String rootMargin { __get; }

 

ReadOnly Property rootMargin() As String

thresholds

 

property thresholds: Double read;

 

Double thresholds { get; }

 

var thresholds: Double { get{} }

 

Double thresholds { __get; }

 

ReadOnly Property thresholds() As Double

 

disconnect

Stops the IntersectionObserver object from observing any target.

 

method disconnect: dynamic

 

dynamic disconnect()

 

func disconnect() -> dynamic

 

dynamic disconnect()

 

Function disconnect() As dynamic

takeRecords

Returns an array of IntersectionObserverEntry objects for all observed targets.

 

method takeRecords: array of IntersectionObserverEntry

 

IntersectionObserverEntry[] takeRecords()

 

func takeRecords() -> IntersectionObserverEntry...

 

IntersectionObserverEntry[] takeRecords()

 

Function takeRecords() As IntersectionObserverEntry()

unobserve

Tells the IntersectionObserver to stop observing a particular target element.

 

method unobserve(partarget: dynamic)

 

void unobserve(dynamic partarget)

 

func unobserve(_ partarget: dynamic)

 

void unobserve(dynamic partarget)

 

Sub unobserve(partarget As dynamic)

Parameters:

  • partarget: