feat(companion): add event surface snapshot helper
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type {
|
||||
CompanionEventName,
|
||||
CompanionEventEnvelope,
|
||||
EventSurfaceSnapshot,
|
||||
CompanionEventHandler,
|
||||
CanvasClearResult,
|
||||
CanvasDeleteResult,
|
||||
@@ -301,6 +302,10 @@ export class MacOSCompanionClient {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
|
||||
getEventSurfaceSnapshot(): EventSurfaceSnapshot {
|
||||
return this.runtime.getEventSurfaceSnapshot();
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
@@ -571,6 +576,10 @@ export class IOSCompanionClient {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
|
||||
getEventSurfaceSnapshot(): EventSurfaceSnapshot {
|
||||
return this.runtime.getEventSurfaceSnapshot();
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
@@ -839,6 +848,10 @@ export class AndroidCompanionClient {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
|
||||
getEventSurfaceSnapshot(): EventSurfaceSnapshot {
|
||||
return this.runtime.getEventSurfaceSnapshot();
|
||||
}
|
||||
|
||||
waitForAnyEvent<TData = unknown>(
|
||||
eventNames: readonly (CompanionEventName | string)[],
|
||||
options?: {
|
||||
|
||||
Reference in New Issue
Block a user