Skip to main content

Variable: useMicrophonePermissions()

const useMicrophonePermissions: (options?) => [null | PermissionResponse, RequestPermissionMethod<PermissionResponse>, GetPermissionMethod<PermissionResponse>]

Defined in: packages/react-native-client/src/hooks/usePermissions.ts:63

Check or request permissions to access the microphone. This uses both requestMicrophonePermissionsAsync and getMicrophonePermissionsAsync to interact with the permissions.

Parameters

ParameterType
options?PermissionHookOptions<object>

Returns

[null | PermissionResponse, RequestPermissionMethod<PermissionResponse>, GetPermissionMethod<PermissionResponse>]

Example

import { useMicrophonePermissions } from '@fishjam-cloud/react-native-client'; const [status, requestPermission] = useMicrophonePermissions();