public class MapFragmentUtils
extends java.lang.Object
Used to extract duplicate code between MapFragment and
SupportMapFragment.
| Constructor and Description |
|---|
MapFragmentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Bundle |
createFragmentArgs(MapboxMapOptions options)
Convert MapboxMapOptions to a bundle of fragment arguments.
|
static MapboxMapOptions |
resolveArgs(Context context,
Bundle args)
Convert a bundle of fragment arguments to MapboxMapOptions.
|
@NonNull public static Bundle createFragmentArgs(MapboxMapOptions options)
options - The MapboxMapOptions to convert@Nullable public static MapboxMapOptions resolveArgs(@NonNull Context context, @Nullable Bundle args)
context - The context of the activity hosting the fragmentargs - The fragment arguments