Package com.trimblemaps.mapsdk.utils
Class MapFragmentUtils
java.lang.Object
com.trimblemaps.mapsdk.utils.MapFragmentUtils
MapFragment utility class.
Used to extract duplicate code between MapFragment and
SupportMapFragment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic android.os.BundlecreateFragmentArgs(TrimbleMapsMapOptions options) Convert TrimbleMapsMapOptions to a bundle of fragment arguments.static TrimbleMapsMapOptionsresolveArgs(android.content.Context context, android.os.Bundle args) Convert a bundle of fragment arguments to TrimbleMapsMapOptions.
-
Constructor Details
-
MapFragmentUtils
public MapFragmentUtils()
-
-
Method Details
-
createFragmentArgs
Convert TrimbleMapsMapOptions to a bundle of fragment arguments.- Parameters:
options- The TrimbleMapsMapOptions to convert- Returns:
- a bundle of converted fragment arguments
-
resolveArgs
@Nullable public static TrimbleMapsMapOptions resolveArgs(@NonNull android.content.Context context, @Nullable android.os.Bundle args) Convert a bundle of fragment arguments to TrimbleMapsMapOptions.- Parameters:
context- The context of the activity hosting the fragmentargs- The fragment arguments- Returns:
- converted TrimbleMapsMapOptions
-