setClockTimeFormat

abstract suspend fun setClockTimeFormat(timeFormat: TimeFormat)

Sets Settings.System.TIME_12_24 to the time format setting determined by the timeFormat parameter. This API requires the Manifest.permission.WRITE_SETTINGS permission.

Parameters

timeFormat

The value to set as an enum. TimeFormat.CLOCK_12H for 12-hour clock format, TimeFormat.CLOCK_24H for 24-hour clock format.

Note: timeFormat may not be of value TimeFormat.UNSET.