# Interface SubscribeEventListener

订阅事件变化监听

#### Version

25.12.0

interface SubscribeEventListener {
onEventChange(subscribeEvents: SubscribeInfoEvent[]): void;
onSubscriptionSyncCompleted(type: SubscribeType): void;
onSubscriptionChangedOnOtherDevices(
subscribeEvents: SubscribeEvent[],
): void;
}

- Defined in user/listener/SubscribeEventListener.ts:9

##### Index

### Methods

onEventChange
onSubscriptionSyncCompleted
onSubscriptionChangedOnOtherDevices

## Methods

### onEventChange

- onEventChange(subscribeEvents: SubscribeInfoEvent[]): void

  订阅事件变化

  #### Parameters

  - subscribeEvents: SubscribeInfoEvent[]

    订阅事件列表

  #### Returns void

  - Defined in user/listener/SubscribeEventListener.ts:14

### onSubscriptionSyncCompleted

- onSubscriptionSyncCompleted(type: SubscribeType): void

  订阅同步完成

  #### Parameters

  - type: SubscribeType

    订阅类型

  #### Returns void

  - Defined in user/listener/SubscribeEventListener.ts:20

### onSubscriptionChangedOnOtherDevices

- onSubscriptionChangedOnOtherDevices(subscribeEvents: SubscribeEvent[]): void

  订阅在其他设备上发生变化

  #### Parameters

  - subscribeEvents: SubscribeEvent[]

    订阅事件列表

  #### Returns void

  - Defined in user/listener/SubscribeEventListener.ts:26