SupportMapFragment

Support Fragment wrapper around a map view.

A Map component in an app. This fragment is the simplest way to place a map in an application. It's a wrapper around a view of a map to automatically handle the necessary life cycle needs. Being a fragment, this component can be added to an activity's layout or can dynamically be added using a FragmentManager.

To get a reference to the MapView, use getMapAsync}

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun dump(prefix: String, fd: FileDescriptor, writer: PrintWriter, args: Array<String>)
Link copied to clipboard
fun equals(o: Any): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getContext(): Context
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getHost(): Any
Link copied to clipboard
fun getId(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMapAsync(@NonNull onMapReadyCallback: OnMapReadyCallback)
Sets a callback object which will be triggered when the MapLibreMap instance is ready to be used.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getString(resId: Int): String
Link copied to clipboard
fun getTag(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getText(resId: Int): CharSequence
Link copied to clipboard
Link copied to clipboard
open fun getView(): View
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open fun instantiate(context: Context, fname: String): Fragment
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates a default MapFragment instance
Creates a MapFragment instance
Link copied to clipboard
open fun onActivityCreated(savedInstanceState: Bundle)
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent)
Link copied to clipboard
open fun onAttach(context: Context)
Called when the context attaches to this fragment.
Link copied to clipboard
open fun onAttachFragment(childFragment: Fragment)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onCreate(savedInstanceState: Bundle)
Link copied to clipboard
open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation
Link copied to clipboard
open fun onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int): Animator
Link copied to clipboard
Link copied to clipboard
open fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater)
Link copied to clipboard
open fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View
Creates the fragment view hierarchy.
Link copied to clipboard
open fun onDestroy()
Called when the fragment is destroyed.
Link copied to clipboard
Link copied to clipboard
open fun onDestroyView()
Called when the fragment is view hierarchy is being destroyed.
Link copied to clipboard
open fun onDetach()
Link copied to clipboard
open fun onGetLayoutInflater(savedInstanceState: Bundle): LayoutInflater
Link copied to clipboard
open fun onHiddenChanged(hidden: Boolean)
Link copied to clipboard
open fun onInflate(@NonNull context: Context, attrs: AttributeSet, savedInstanceState: Bundle)
Called when this fragment is inflated, parses XML tag attributes.
Link copied to clipboard
open fun onLowMemory()
Called when the fragment receives onLowMemory call from the hosting Activity.
Link copied to clipboard
open fun onMapReady(@NonNull maplibreMap: MapLibreMap)
Called when the map is ready to be used.
Link copied to clipboard
open fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun onOptionsMenuClosed(menu: Menu)
Link copied to clipboard
open fun onPause()
Called when the fragment is pausing.
Link copied to clipboard
open fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
Link copied to clipboard
open fun onPrepareOptionsMenu(menu: Menu)
Link copied to clipboard
open fun onPrimaryNavigationFragmentChanged(isPrimaryNavigationFragment: Boolean)
Link copied to clipboard
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: Array<Int>)
Link copied to clipboard
open fun onResume()
Called when the fragment is ready to be interacted with.
Link copied to clipboard
open fun onSaveInstanceState(@NonNull outState: Bundle)
Called when the fragment state needs to be saved.
Link copied to clipboard
open fun onStart()
Called when the fragment is visible for the users.
Link copied to clipboard
open fun onStop()
Called when the fragment is no longer visible for the user.
Link copied to clipboard
open fun onViewCreated(view: View, savedInstanceState: Bundle)
Called when the fragment view hierarchy is created.
Link copied to clipboard
open fun onViewStateRestored(savedInstanceState: Bundle)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestPermissions(permissions: Array<String>, requestCode: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setArguments(args: Bundle)
Link copied to clipboard
open fun setEnterTransition(transition: Any)
Link copied to clipboard
open fun setExitTransition(transition: Any)
Link copied to clipboard
open fun setHasOptionsMenu(hasMenu: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setMenuVisibility(menuVisible: Boolean)
Link copied to clipboard
open fun setReenterTransition(transition: Any)
Link copied to clipboard
open fun setRetainInstance(retain: Boolean)
Link copied to clipboard
open fun setReturnTransition(transition: Any)
Link copied to clipboard
open fun setSharedElementEnterTransition(transition: Any)
Link copied to clipboard
Link copied to clipboard
open fun setTargetFragment(fragment: Fragment, requestCode: Int)
Link copied to clipboard
open fun setUserVisibleHint(isVisibleToUser: Boolean)
Link copied to clipboard
open fun startActivity(intent: Intent)
Link copied to clipboard
open fun startActivityForResult(intent: Intent, requestCode: Int)
Link copied to clipboard
open fun startIntentSenderForResult(intent: IntentSender, requestCode: Int, fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int, options: Bundle)
Link copied to clipboard
Link copied to clipboard
open fun toString(): String
Link copied to clipboard