@univerjs-pro/collaboration-client v0.5.0-beta.1Docs


Class: WebURLService

This service reads the url from the host platform and return url parts, such as queries, hashes and path.

Extends

Implements

Constructors

new WebURLService()

new WebURLService(): WebURLService

Returns

WebURLService

Overrides

RxDisposable.constructor

Defined in

packages/collaboration-client/src/services/url/web-url.service.ts:10

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseRxDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
dispose$protectedSubject<void>undefinedRxDisposable.dispose$submodules/univer/packages/core/src/shared/lifecycle.ts:117
urlChange$readonlyObservable<void>undefined-packages/collaboration-client/src/services/url/web-url.service.ts:8

Methods

dispose()

dispose(): void

Returns

void

Inherited from

RxDisposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:119


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

RxDisposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

RxDisposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getParam()

getParam(key): undefined | string

Parameters

ParameterType
keystring

Returns

undefined | string

Implementation of

IURLService.getParam

Defined in

packages/collaboration-client/src/services/url/web-url.service.ts:41


removeParam()

removeParam(key, useReplace): void

Parameters

ParameterTypeDefault value
keystringundefined
useReplacebooleanfalse

Returns

void

Implementation of

IURLService.removeParam

Defined in

packages/collaboration-client/src/services/url/web-url.service.ts:30


setParam()

setParam(
   key, 
   value, 
   useReplace): void

Parameters

ParameterTypeDefault value
keystringundefined
valuestringundefined
useReplacebooleanfalse

Returns

void

Implementation of

IURLService.setParam

Defined in

packages/collaboration-client/src/services/url/web-url.service.ts:20