rememberSystemServiceOrNull

Remembers and retrieves an optional Android system service of type T, returning null if the service is unavailable on the device.

Example usage:

val vibratorManager = rememberSystemServiceOrNull<VibratorManager>()

Return

The requested system service of type T, or null if unavailable.