diff options
author | marian <ymarian@google.com> | 2023-04-10 11:40:16 -0400 |
---|---|---|
committer | Mariano Martin <ymarian@google.com> | 2023-04-10 17:49:50 +0000 |
commit | 88873178abb6280387270fdd214f68f5a06b2779 (patch) | |
tree | 1c627dadfc8c2d30203fc94fa5a851a276290420 | |
parent | 88faa1499cd928ca10484c214f5a7b6637311321 (diff) | |
download | support-88873178abb6280387270fdd214f68f5a06b2779.tar.gz |
[TimePicker] Remove TimePickerState from stable API
Relnote: TimePicker removed from stable API, further changes are expected in the state API
Test: N/A
Bug: 277591998
Change-Id: I3f39a13a8cfd4ae5fdc2c05b644452b7bceea963
6 files changed, 8 insertions, 33 deletions
diff --git a/compose/material3/material3/api/current.ignore b/compose/material3/material3/api/current.ignore new file mode 100644 index 00000000000..dd3f23a4cb3 --- /dev/null +++ b/compose/material3/material3/api/current.ignore @@ -0,0 +1,3 @@ +// Baseline format: 1.0 +RemovedClass: androidx.compose.material3.TimePickerState: + Removed class androidx.compose.material3.TimePickerState diff --git a/compose/material3/material3/api/current.txt b/compose/material3/material3/api/current.txt index a0df8a51070..09014505b18 100644 --- a/compose/material3/material3/api/current.txt +++ b/compose/material3/material3/api/current.txt @@ -826,22 +826,6 @@ package androidx.compose.material3 { property public static final androidx.compose.runtime.ProvidableCompositionLocal<androidx.compose.ui.text.TextStyle> LocalTextStyle; } - @androidx.compose.runtime.Stable public final class TimePickerState { - ctor public TimePickerState(int initialHour, int initialMinute, boolean is24Hour); - method public int getHour(); - method public int getMinute(); - method public boolean is24hour(); - method public suspend Object? settle(kotlin.coroutines.Continuation<? super kotlin.Unit>); - property public final int hour; - property public final boolean is24hour; - property public final int minute; - field public static final androidx.compose.material3.TimePickerState.Companion Companion; - } - - public static final class TimePickerState.Companion { - method public androidx.compose.runtime.saveable.Saver<androidx.compose.material3.TimePickerState,?> Saver(); - } - @androidx.compose.runtime.Immutable public final class Typography { ctor public Typography(optional androidx.compose.ui.text.TextStyle displayLarge, optional androidx.compose.ui.text.TextStyle displayMedium, optional androidx.compose.ui.text.TextStyle displaySmall, optional androidx.compose.ui.text.TextStyle headlineLarge, optional androidx.compose.ui.text.TextStyle headlineMedium, optional androidx.compose.ui.text.TextStyle headlineSmall, optional androidx.compose.ui.text.TextStyle titleLarge, optional androidx.compose.ui.text.TextStyle titleMedium, optional androidx.compose.ui.text.TextStyle titleSmall, optional androidx.compose.ui.text.TextStyle bodyLarge, optional androidx.compose.ui.text.TextStyle bodyMedium, optional androidx.compose.ui.text.TextStyle bodySmall, optional androidx.compose.ui.text.TextStyle labelLarge, optional androidx.compose.ui.text.TextStyle labelMedium, optional androidx.compose.ui.text.TextStyle labelSmall); method public androidx.compose.material3.Typography copy(optional androidx.compose.ui.text.TextStyle displayLarge, optional androidx.compose.ui.text.TextStyle displayMedium, optional androidx.compose.ui.text.TextStyle displaySmall, optional androidx.compose.ui.text.TextStyle headlineLarge, optional androidx.compose.ui.text.TextStyle headlineMedium, optional androidx.compose.ui.text.TextStyle headlineSmall, optional androidx.compose.ui.text.TextStyle titleLarge, optional androidx.compose.ui.text.TextStyle titleMedium, optional androidx.compose.ui.text.TextStyle titleSmall, optional androidx.compose.ui.text.TextStyle bodyLarge, optional androidx.compose.ui.text.TextStyle bodyMedium, optional androidx.compose.ui.text.TextStyle bodySmall, optional androidx.compose.ui.text.TextStyle labelLarge, optional androidx.compose.ui.text.TextStyle labelMedium, optional androidx.compose.ui.text.TextStyle labelSmall); diff --git a/compose/material3/material3/api/public_plus_experimental_current.txt b/compose/material3/material3/api/public_plus_experimental_current.txt index fd0421f8ed5..c9a1a36ac72 100644 --- a/compose/material3/material3/api/public_plus_experimental_current.txt +++ b/compose/material3/material3/api/public_plus_experimental_current.txt @@ -1229,7 +1229,7 @@ package androidx.compose.material3 { property public final int Vertical; } - @androidx.compose.runtime.Stable public final class TimePickerState { + @androidx.compose.material3.ExperimentalMaterial3Api @androidx.compose.runtime.Stable public final class TimePickerState { ctor public TimePickerState(int initialHour, int initialMinute, boolean is24Hour); method public int getHour(); method public int getMinute(); diff --git a/compose/material3/material3/api/restricted_current.ignore b/compose/material3/material3/api/restricted_current.ignore new file mode 100644 index 00000000000..dd3f23a4cb3 --- /dev/null +++ b/compose/material3/material3/api/restricted_current.ignore @@ -0,0 +1,3 @@ +// Baseline format: 1.0 +RemovedClass: androidx.compose.material3.TimePickerState: + Removed class androidx.compose.material3.TimePickerState diff --git a/compose/material3/material3/api/restricted_current.txt b/compose/material3/material3/api/restricted_current.txt index a0df8a51070..09014505b18 100644 --- a/compose/material3/material3/api/restricted_current.txt +++ b/compose/material3/material3/api/restricted_current.txt @@ -826,22 +826,6 @@ package androidx.compose.material3 { property public static final androidx.compose.runtime.ProvidableCompositionLocal<androidx.compose.ui.text.TextStyle> LocalTextStyle; } - @androidx.compose.runtime.Stable public final class TimePickerState { - ctor public TimePickerState(int initialHour, int initialMinute, boolean is24Hour); - method public int getHour(); - method public int getMinute(); - method public boolean is24hour(); - method public suspend Object? settle(kotlin.coroutines.Continuation<? super kotlin.Unit>); - property public final int hour; - property public final boolean is24hour; - property public final int minute; - field public static final androidx.compose.material3.TimePickerState.Companion Companion; - } - - public static final class TimePickerState.Companion { - method public androidx.compose.runtime.saveable.Saver<androidx.compose.material3.TimePickerState,?> Saver(); - } - @androidx.compose.runtime.Immutable public final class Typography { ctor public Typography(optional androidx.compose.ui.text.TextStyle displayLarge, optional androidx.compose.ui.text.TextStyle displayMedium, optional androidx.compose.ui.text.TextStyle displaySmall, optional androidx.compose.ui.text.TextStyle headlineLarge, optional androidx.compose.ui.text.TextStyle headlineMedium, optional androidx.compose.ui.text.TextStyle headlineSmall, optional androidx.compose.ui.text.TextStyle titleLarge, optional androidx.compose.ui.text.TextStyle titleMedium, optional androidx.compose.ui.text.TextStyle titleSmall, optional androidx.compose.ui.text.TextStyle bodyLarge, optional androidx.compose.ui.text.TextStyle bodyMedium, optional androidx.compose.ui.text.TextStyle bodySmall, optional androidx.compose.ui.text.TextStyle labelLarge, optional androidx.compose.ui.text.TextStyle labelMedium, optional androidx.compose.ui.text.TextStyle labelSmall); method public androidx.compose.material3.Typography copy(optional androidx.compose.ui.text.TextStyle displayLarge, optional androidx.compose.ui.text.TextStyle displayMedium, optional androidx.compose.ui.text.TextStyle displaySmall, optional androidx.compose.ui.text.TextStyle headlineLarge, optional androidx.compose.ui.text.TextStyle headlineMedium, optional androidx.compose.ui.text.TextStyle headlineSmall, optional androidx.compose.ui.text.TextStyle titleLarge, optional androidx.compose.ui.text.TextStyle titleMedium, optional androidx.compose.ui.text.TextStyle titleSmall, optional androidx.compose.ui.text.TextStyle bodyLarge, optional androidx.compose.ui.text.TextStyle bodyMedium, optional androidx.compose.ui.text.TextStyle bodySmall, optional androidx.compose.ui.text.TextStyle labelLarge, optional androidx.compose.ui.text.TextStyle labelMedium, optional androidx.compose.ui.text.TextStyle labelSmall); diff --git a/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TimePicker.kt b/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TimePicker.kt index 04a642d2e1a..cd8bc5796f3 100644 --- a/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TimePicker.kt +++ b/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/TimePicker.kt @@ -488,6 +488,7 @@ value class TimePickerLayoutType internal constructor(internal val value: Int) { * or `true` for 24 hour format without toggle. */ @Stable +@ExperimentalMaterial3Api class TimePickerState( initialHour: Int, initialMinute: Int, |