Skip to content

Commit f76b56b

Browse files
authored
Compose interactions: follow-up API comments (#2796)
1 parent d1b8e50 commit f76b56b

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

extension-compose/api/Release/metalava.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,9 +1490,9 @@ package com.mapbox.maps.extension.compose.style.interactions.generated {
14901490

14911491

14921492
}));
1493-
method public default void setStandardBuildingsState(com.mapbox.maps.interactions.standard.generated.StandardBuildingsFeature, kotlin.jvm.functions.Function1<? super com.mapbox.maps.interactions.standard.generated.StandardBuildingsState.Builder,kotlin.Unit> init);
1494-
method public default void setStandardPlaceLabelsState(com.mapbox.maps.interactions.standard.generated.StandardPlaceLabelsFeature, kotlin.jvm.functions.Function1<? super com.mapbox.maps.interactions.standard.generated.StandardPlaceLabelsState.Builder,kotlin.Unit> init);
1495-
method public default void setStandardPoiState(com.mapbox.maps.interactions.standard.generated.StandardPoiFeature, kotlin.jvm.functions.Function1<? super com.mapbox.maps.interactions.standard.generated.StandardPoiState.Builder,kotlin.Unit> init);
1493+
method @com.mapbox.maps.MapboxExperimental public default void setStandardBuildingsState(com.mapbox.maps.interactions.standard.generated.StandardBuildingsFeature, kotlin.jvm.functions.Function1<? super com.mapbox.maps.interactions.standard.generated.StandardBuildingsState.Builder,kotlin.Unit> init);
1494+
method @com.mapbox.maps.MapboxExperimental public default void setStandardPlaceLabelsState(com.mapbox.maps.interactions.standard.generated.StandardPlaceLabelsFeature, kotlin.jvm.functions.Function1<? super com.mapbox.maps.interactions.standard.generated.StandardPlaceLabelsState.Builder,kotlin.Unit> init);
1495+
method @com.mapbox.maps.MapboxExperimental public default void setStandardPoiState(com.mapbox.maps.interactions.standard.generated.StandardPoiFeature, kotlin.jvm.functions.Function1<? super com.mapbox.maps.interactions.standard.generated.StandardPoiState.Builder,kotlin.Unit> init);
14961496
}
14971497

14981498
}
@@ -4235,7 +4235,7 @@ package com.mapbox.maps.extension.compose.style.sources.generated {
42354235

42364236
package com.mapbox.maps.extension.compose.style.standard {
42374237

4238-
@androidx.compose.runtime.Stable public class BaseStandardStyleState {
4238+
@androidx.compose.runtime.Stable @com.mapbox.maps.MapboxExperimental public class BaseStandardStyleState {
42394239
ctor protected BaseStandardStyleState(com.mapbox.maps.extension.compose.style.projection.generated.Projection initialProjection, com.mapbox.maps.extension.compose.style.atmosphere.generated.AtmosphereState initialAtmosphereState, com.mapbox.maps.extension.compose.style.terrain.generated.TerrainState initialTerrainState = com.mapbox.maps.extension.compose.style.terrain.generated.TerrainState.INITIAL, com.mapbox.maps.extension.compose.style.lights.LightsState initialLightsState = com.mapbox.maps.extension.compose.style.lights.LightsState.INITIAL, com.mapbox.maps.TransitionOptions initialStyleTransition);
42404240
method public final com.mapbox.maps.extension.compose.style.atmosphere.generated.AtmosphereState getAtmosphereState();
42414241
method public final com.mapbox.maps.extension.compose.style.lights.LightsState getLightsState();

extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/interactions/generated/FeaturesetFeatureScope.kt

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/standard/BaseStandardStyleState.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import androidx.compose.runtime.Stable
44
import androidx.compose.runtime.getValue
55
import androidx.compose.runtime.mutableStateOf
66
import androidx.compose.runtime.setValue
7+
import com.mapbox.maps.MapboxExperimental
78
import com.mapbox.maps.TransitionOptions
89
import com.mapbox.maps.extension.compose.style.atmosphere.generated.AtmosphereState
910
import com.mapbox.maps.extension.compose.style.lights.LightsState
@@ -14,6 +15,7 @@ import com.mapbox.maps.extension.compose.style.terrain.generated.TerrainState
1415
* The base state holder for the Standard Style.
1516
*/
1617
@Stable
18+
@MapboxExperimental
1719
public open class BaseStandardStyleState protected constructor(
1820
initialProjection: Projection,
1921
initialAtmosphereState: AtmosphereState,

extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/standard/ExperimentalStandardStyleState.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public inline fun rememberExperimentalStandardStyleState(crossinline init: Exper
3434
/**
3535
* Experimental state holder for the Mapbox Standard Style.
3636
*/
37-
@MapboxExperimental
3837
@Stable
38+
@MapboxExperimental
3939
public class ExperimentalStandardStyleState internal constructor(
4040
initialStyleInteractionsState: StandardStyleInteractionsState,
4141
initialProjection: Projection,
@@ -67,12 +67,14 @@ public class ExperimentalStandardStyleState internal constructor(
6767
/**
6868
* The [StyleInteractionsState] manages the map interactions defined for the style.
6969
*/
70+
@MapboxExperimental
7071
public var interactionsState: StandardStyleInteractionsState by mutableStateOf(
7172
initialStyleInteractionsState
7273
)
7374

7475
/**
7576
* Configuration state options to be applied to Mapbox Standard Style.
7677
*/
78+
@MapboxExperimental
7779
public var configurationsState: StandardStyleConfigurationState by mutableStateOf(initialConfigurationState)
7880
}

0 commit comments

Comments
 (0)