File size: 534 Bytes
4a5ef51
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {NativeModule, requireNativeModule} from 'expo';

import type {
  MentraVideoStreamReceiverModuleEvents,
  WebRtcReceiverResult,
} from './MentraVideoStreamReceiver.types';

declare class MentraVideoStreamReceiverModule extends NativeModule<MentraVideoStreamReceiverModuleEvents> {
  isSupported(): Promise<boolean>;
  startWebRtcReceiver(): Promise<WebRtcReceiverResult>;
  stopWebRtcReceiver(): Promise<void>;
}

export default requireNativeModule<MentraVideoStreamReceiverModule>('MentraVideoStreamReceiver');