Skip to main content

Type Alias: ForegroundServiceConfig

ForegroundServiceConfig: object

A type representing the configuration for foreground service permissions.

Type declaration

channelId?

optional channelId: string

The id of the channel. Must be unique per package.

channelName?

optional channelName: string

The user visible name of the channel.

enableCamera?

optional enableCamera: boolean

Indicates whether the camera is enabled for the foreground service.

enableMicrophone?

optional enableMicrophone: boolean

Indicates whether the microphone is enabled for the foreground service.

notificationContent?

optional notificationContent: string

The text (second row) of the notification, in a standard notification.

notificationTitle?

optional notificationTitle: string

The title (first row) of the notification, in a standard notification.

Defined in

packages/react-native-client/src/hooks/useForegroundService.ts:9