Package 

Class MediaDropdownMenuKt

    • Method Summary

      Modifier and Type Method Description
      final static MutableState<DeviceState> rememberCameraState() Creates a DeviceState that is remembered across recompositions.
      final static Unit MediaDeviceMenu(MutableState<DeviceState> cameraState, Modifier modifier) A dropdown menu that enables selection of the available cameras.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • MediaDeviceMenu

        @Composable() final static Unit MediaDeviceMenu(MutableState<DeviceState> cameraState, Modifier modifier)

        A dropdown menu that enables selection of the available cameras.

        When a camera is selected, cameraState's value will be updated with the selected device.

        Example:

        val deviceState = rememberCameraState()
        MediaDeviceMenu(cameraState = deviceState)