@univerjs-pro/live-share v0.5.0-beta.1 • Docs
Class: LiveShareService
Extends
Constructors
new LiveShareService()
new LiveShareService(): LiveShareService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
Methods
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getInitialStates()
getInitialStates(unitID): IOperationInfo<object>[]
Parameters
Parameter | Type |
---|---|
unitID | string |
Returns
IOperationInfo
<object
>[]
Defined in
packages/live-share/src/services/live-share.service.ts:28
registerInitialStateReporter()
registerInitialStateReporter(reporter): IDisposable
Register a reported that should report a view part’s current state by returning an operation.
Parameters
Parameter | Type |
---|---|
reporter | (unitID ) => IOperationInfo <object > |
Returns
Defined in
packages/live-share/src/services/live-share.service.ts:19
registerSharedOperation()
registerSharedOperation(operation): IDisposable
Parameters
Parameter | Type |
---|---|
operation | string |
Returns
Defined in
packages/live-share/src/services/live-share.service.ts:8
shouldShareOperation()
shouldShareOperation(operation): boolean
Parameters
Parameter | Type |
---|---|
operation | string |
Returns
boolean
Defined in
packages/live-share/src/services/live-share.service.ts:24