Skip to main content

KSelectionObserver

kds-plugin-document / Exports / KSelectionObserver

Interface: KSelectionObserver

选择集观察者

此观察者接口用于接收酷大师选择集的变化事件

This observer interface is implemented to react to selection events. To create a new observer, you must define a new class that implements all the methods of the KSelectionObserver class. Once you have defined a observer class, you can add it to the selection object by the KSelection.addObserver method. you also can remove it from the selection object by the KSelection.removeObserver method.

Table of contents​

Methods​

Methods​

onSelectionChange​

▸ onSelectionChange(): void

当酷大师选择集发生变化时,酷大师会调用这个接口

The method is called whenever items are added or removed from the selection object.

Returns​

void

Defined in​

api.d.ts:4898