Diagnostics

Implements

Constructors

constructor

new Diagnostics(sdk, sdkListener)

Parameters

NameType
sdkHMSSdk
sdkListenerHMSUpdateListener

Accessors

localPeer

get localPeer(): undefined | HMSLocalPeer

Returns

undefined | HMSLocalPeer

Methods

checkBrowserSupport

checkBrowserSupport(): void

Returns

void

Implementation of

HMSDiagnosticsInterface.checkBrowserSupport


getRecordedAudio

getRecordedAudio(): undefined | string

Returns

undefined | string

Implementation of

HMSDiagnosticsInterface.getRecordedAudio


requestPermission

requestPermission(check): Promise<MediaPermissionCheck>

Parameters

Returns

Promise<MediaPermissionCheck>

Implementation of

HMSDiagnosticsInterface.requestPermission


startCameraCheck

startCameraCheck(inputDevice?): Promise<void>

Parameters

NameType
inputDevice?string

Returns

Promise<void>

Implementation of

HMSDiagnosticsInterface.startCameraCheck


startConnectivityCheck

startConnectivityCheck(progress, completed, region?): Promise<void>

Parameters

NameType
progress(state: ConnectivityState) => void
completed(result: ConnectivityCheckResult) => void
region?string

Returns

Promise<void>

Implementation of

HMSDiagnosticsInterface.startConnectivityCheck


startMicCheck

startMicCheck(«destructured»): Promise<void>

Parameters

NameType
«destructured»Object
› inputDevice?string
› onError?(error: Error) => void
› onStop?() => void
› time?number

Returns

Promise<void>

Implementation of

HMSDiagnosticsInterface.startMicCheck


stopCameraCheck

stopCameraCheck(): void

Returns

void

Implementation of

HMSDiagnosticsInterface.stopCameraCheck


stopConnectivityCheck

stopConnectivityCheck(): Promise<void>

Returns

Promise<void>

Implementation of

HMSDiagnosticsInterface.stopConnectivityCheck


stopMicCheck

stopMicCheck(): void

Returns

void

Implementation of

HMSDiagnosticsInterface.stopMicCheck


Have a suggestion? Recommend changes ->

Was this helpful?

1234