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