@fishjam-cloud/react-native-client - v0.19.0
    Preparing search index...

    Variable useForegroundServiceConst

    useForegroundService: (config: ForegroundServiceConfig) => void = ...

    A hook for managing a foreground service on Android. Does nothing on other platforms. You can use this hook to keep your app running in the background. You're also required to run a foreground service when screen sharing.

    Type declaration

      • (config: ForegroundServiceConfig): void
      • Parameters

        • config: ForegroundServiceConfig

          Configuration options for the foreground service.

          A type representing the configuration for foreground service permissions.

          • OptionalchannelId?: string

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

          • OptionalchannelName?: string

            The user visible name of the channel.

          • OptionalenableCamera?: boolean

            Indicates whether the camera is enabled for the foreground service.

          • OptionalenableMicrophone?: boolean

            Indicates whether the microphone is enabled for the foreground service.

          • OptionalnotificationContent?: string

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

          • OptionalnotificationTitle?: string

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

        Returns void