setClockTimeFormat

@IviExperimental(reasons = [])
fun setClockTimeFormat(context: Context, timeFormat: TimeFormat)

Sets Settings.System.TIME_12_24 to the time format setting determined by the timeValue parameter. This API Requires android.permission.WRITE_PERMISSIONS.

Parameters

context

the Context.

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.