Skip to content

Commit

Permalink
experimental annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
kmadsen committed Aug 19, 2022
1 parent da86407 commit a892ec2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion extension-androidauto/api/metalava.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ package com.mapbox.maps.extension.androidauto {
method public default void onScroll(com.mapbox.maps.extension.androidauto.MapboxCarMapSurface mapboxCarMapSurface, com.mapbox.maps.ScreenCoordinate visibleCenter, float distanceX, float distanceY);
}

public fun interface MapboxCarMapInitializer {
@com.mapbox.maps.MapboxExperimental public fun interface MapboxCarMapInitializer {
method public com.mapbox.maps.MapInitOptions onCreate(androidx.car.app.CarContext carContext);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import androidx.car.app.CarContext
import androidx.car.app.Session
import androidx.lifecycle.Lifecycle
import com.mapbox.maps.MapInitOptions
import com.mapbox.maps.MapboxExperimental

/**
* Lazy initialization for the [MapInitOptions]. The [CarContext] is not created until the [Session]
* has been created. Use this initializer to specify custom initial map options.
*/
@MapboxExperimental
fun interface MapboxCarMapInitializer {
/**
* Triggered once the [Session] reaches the [Lifecycle.State.CREATED] state.
Expand Down

0 comments on commit a892ec2

Please sign in to comment.