4.0.3 • Published 6 months ago
@types/react-native-incall-manager v4.0.3
Installation
npm install --save @types/react-native-incall-manager
Summary
This package contains type definitions for react-native-incall-manager (https://github.com/zxcpoiu/react-native-incall-manager#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-incall-manager.
index.d.ts
// Type definitions for react-native-incall-manager 3.2
// Project: https://github.com/zxcpoiu/react-native-incall-manager#readme
// Definitions by: Carlos Quiroga <https://github.com/KarlosQ>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
export interface StartSetup {
media?: string | undefined;
auto?: boolean | undefined;
ringback?: string | undefined;
}
export interface StopSetup {
busytone?: string | undefined;
}
declare class InCallManager {
start(setup?: StartSetup): void;
stop(setup?: StopSetup): void;
turnScreenOff(): void;
turnScreenOn(): void;
getIsWiredHeadsetPluggedIn(): Promise<any>;
setFlashOn(enable?: boolean, brightness?: number): number;
setKeepScreenOn(enable?: boolean): void;
setSpeakerphoneOn(enable?: boolean): void;
setForceSpeakerphoneOn(_flag?: boolean): void;
setMicrophoneMute(enable?: boolean): void;
startRingtone(
ringtone?: string,
vibrate_pattern?: any[],
ios_category?: string,
seconds?: number
): void;
stopRingtone(): void;
startRingback(ringback?: string): void;
stopRingback(): void;
checkRecordPermission(): Promise<string>;
requestRecordPermission(): Promise<string>;
checkCameraPermission(): Promise<string>;
requestCameraPermission(): Promise<string>;
pokeScreen(_timeout?: number): void;
getAudioUri(audioType: string, fileType: string): any;
chooseAudioRoute(route: any): any;
}
declare const _default: InCallManager;
export default _default;
Additional Details
- Last updated: Thu, 08 Jul 2021 22:41:09 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Carlos Quiroga.