Diagnostics
Implements
Constructors
constructor
• new Diagnostics(sdk, sdkListener)
Parameters
| Name | Type |
|---|---|
sdk | HMSSdk |
sdkListener | HMSUpdateListener |
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
| Name | Type |
|---|---|
check | MediaPermissionCheck |
Returns
Promise<MediaPermissionCheck>
Implementation of
HMSDiagnosticsInterface.requestPermission
startCameraCheck
▸ startCameraCheck(inputDevice?): Promise<void>
Parameters
| Name | Type |
|---|---|
inputDevice? | string |
Returns
Promise<void>
Implementation of
HMSDiagnosticsInterface.startCameraCheck
startConnectivityCheck
▸ startConnectivityCheck(progress, completed, region?, duration?): Promise<void>
Parameters
| Name | Type |
|---|---|
progress | (state: ConnectivityState) => void |
completed | (result: ConnectivityCheckResult) => void |
region? | string |
duration? | number |
Returns
Promise<void>
Implementation of
HMSDiagnosticsInterface.startConnectivityCheck
startMicCheck
▸ startMicCheck(«destructured»): Promise<void>
Parameters
| Name | Type |
|---|---|
«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



