public class MapFragmentUtils extends 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.
|
public static Bundle createFragmentArgs(MapboxMapOptions options)
options
- The MapboxMapOptions to convertpublic static MapboxMapOptions resolveArgs(Context context, Bundle args)
context
- The context of the activity hosting the fragmentargs
- The fragment arguments© 2015–2018 Mapbox. All rights reserved.