Skip to main content

Type Alias: ForegroundServiceConfig

ForegroundServiceConfig = object

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

A type representing the configuration for foreground service permissions.

Properties

channelId?

optional channelId: string

Defined in: packages/react-native-client/src/hooks/useForegroundService.ts:21

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


channelName?

optional channelName: string

Defined in: packages/react-native-client/src/hooks/useForegroundService.ts:25

The user visible name of the channel.


enableCamera?

optional enableCamera: boolean

Defined in: packages/react-native-client/src/hooks/useForegroundService.ts:13

Indicates whether the camera is enabled for the foreground service.


enableMicrophone?

optional enableMicrophone: boolean

Defined in: packages/react-native-client/src/hooks/useForegroundService.ts:17

Indicates whether the microphone is enabled for the foreground service.


notificationContent?

optional notificationContent: string

Defined in: packages/react-native-client/src/hooks/useForegroundService.ts:33

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


notificationTitle?

optional notificationTitle: string

Defined in: packages/react-native-client/src/hooks/useForegroundService.ts:29

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