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 android.os.Bundle |
createFragmentArgs(MapboxMapOptions options)
Convert MapboxMapOptions to a bundle of fragment arguments.
|
static MapboxMapOptions |
resolveArgs(android.content.Context context,
android.os.Bundle args)
Convert a bundle of fragment arguments to MapboxMapOptions.
|
@NonNull public static android.os.Bundle createFragmentArgs(MapboxMapOptions options)
options
- The MapboxMapOptions to convert@Nullable public static MapboxMapOptions resolveArgs(@NonNull android.content.Context context, @Nullable android.os.Bundle args)
context
- The context of the activity hosting the fragmentargs
- The fragment arguments