DefinitelyTyped/types/react-native-incall-manager/react-native-incall-manager-tests.ts
Carlos Q 8a1b68be3a [react-native-incall-manager] New types definition (#37156)
* Add locales property

* Add member in definitions by

* reverse

* RN-incall-manager type definition

* Remove public

* Fix array declaration

* Add static

* Fix static, in test do a new

* reverse

* Class to instance of class
2019-07-26 13:46:37 -07:00

44 lines
814 B
TypeScript

import InCallManager from "react-native-incall-manager";
InCallManager.start({ media: "video" });
InCallManager.start();
InCallManager.stop({ busytone: "video" });
InCallManager.stop();
InCallManager.turnScreenOn();
InCallManager.turnScreenOff();
InCallManager.setKeepScreenOn(true);
InCallManager.setKeepScreenOn();
InCallManager.setSpeakerphoneOn();
InCallManager.setSpeakerphoneOn(true);
InCallManager.setMicrophoneMute();
InCallManager.setMicrophoneMute(false);
InCallManager.checkRecordPermission();
InCallManager.requestRecordPermission();
InCallManager.getAudioUri("", "");
InCallManager.startRingtone();
InCallManager.startRingtone("", [], "", 0);
InCallManager.stopRingtone();
InCallManager.setFlashOn();
InCallManager.setFlashOn(true, 1);
InCallManager.getIsWiredHeadsetPluggedIn();