Class MapFragmentUtils

java.lang.Object
com.trimblemaps.mapsdk.utils.MapFragmentUtils

public class MapFragmentUtils extends Object
MapFragment utility class.

Used to extract duplicate code between MapFragment and SupportMapFragment.

  • Constructor Details

    • MapFragmentUtils

      public MapFragmentUtils()
  • Method Details

    • createFragmentArgs

      @NonNull public static android.os.Bundle createFragmentArgs(TrimbleMapsMapOptions options)
      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 fragment
      args - The fragment arguments
      Returns:
      converted TrimbleMapsMapOptions