MapFragment

open class MapFragment : Fragment, MapDataProvider

A fragment class that automatically creates a Map.

Functions

dump
Link copied to clipboard
open fun dump(prefix: String, fd: FileDescriptor, writer: PrintWriter, args: Array<String>)
equals
Link copied to clipboard
fun equals(o: Any): Boolean
getActivity
Link copied to clipboard
fun getActivity(): FragmentActivity
getAllowEnterTransitionOverlap
Link copied to clipboard
open fun getAllowEnterTransitionOverlap(): Boolean
getAllowReturnTransitionOverlap
Link copied to clipboard
open fun getAllowReturnTransitionOverlap(): Boolean
getArguments
Link copied to clipboard
fun getArguments(): Bundle
getChildFragmentManager
Link copied to clipboard
fun getChildFragmentManager(): FragmentManager
getContext
Link copied to clipboard
open fun getContext(): Context
getEnterTransition
Link copied to clipboard
open fun getEnterTransition(): Any
getExitTransition
Link copied to clipboard
open fun getExitTransition(): Any
getFragmentManager
Link copied to clipboard
fun getFragmentManager(): FragmentManager
getHost
Link copied to clipboard
fun getHost(): Any
getId
Link copied to clipboard
fun getId(): Int
getLayoutInflater
Link copied to clipboard
fun getLayoutInflater(): LayoutInflater
getLifecycle
Link copied to clipboard
open fun getLifecycle(): Lifecycle
getLoaderManager
Link copied to clipboard
open fun getLoaderManager(): LoaderManager
getMapAsync
Link copied to clipboard
open fun getMapAsync(onMapInitListener: OnMapInitListener)
Listener notified about map object changesReturns the map object when it is ready via OnMapInitListener
getMapView
Link copied to clipboard
open fun getMapView(): MapView
The map object.
getParentFragment
Link copied to clipboard
fun getParentFragment(): Fragment
getReenterTransition
Link copied to clipboard
open fun getReenterTransition(): Any
getResources
Link copied to clipboard
fun getResources(): Resources
getRetainInstance
Link copied to clipboard
fun getRetainInstance(): Boolean
getReturnTransition
Link copied to clipboard
open fun getReturnTransition(): Any
getSharedElementEnterTransition
Link copied to clipboard
open fun getSharedElementEnterTransition(): Any
getSharedElementReturnTransition
Link copied to clipboard
open fun getSharedElementReturnTransition(): Any
getString
Link copied to clipboard
fun getString(resId: Int): String
getTag
Link copied to clipboard
fun getTag(): String
getTargetFragment
Link copied to clipboard
fun getTargetFragment(): Fragment
getTargetRequestCode
Link copied to clipboard
fun getTargetRequestCode(): Int
getText
Link copied to clipboard
fun getText(resId: Int): CharSequence
getUserVisibleHint
Link copied to clipboard
open fun getUserVisibleHint(): Boolean
getView
Link copied to clipboard
open fun getView(): View
getViewLifecycleOwner
Link copied to clipboard
open fun getViewLifecycleOwner(): LifecycleOwner
getViewLifecycleOwnerLiveData
Link copied to clipboard
open fun getViewLifecycleOwnerLiveData(): LiveData<LifecycleOwner>
getViewModelStore
Link copied to clipboard
open fun getViewModelStore(): ViewModelStore
hashCode
Link copied to clipboard
fun hashCode(): Int
hasOptionsMenu
Link copied to clipboard
fun hasOptionsMenu(): Boolean
instantiate
Link copied to clipboard
open fun instantiate(context: Context, fname: String): Fragment
isAdded
Link copied to clipboard
fun isAdded(): Boolean
isDetached
Link copied to clipboard
fun isDetached(): Boolean
isHidden
Link copied to clipboard
fun isHidden(): Boolean
isInLayout
Link copied to clipboard
fun isInLayout(): Boolean
isMenuVisible
Link copied to clipboard
fun isMenuVisible(): Boolean
isRemoving
Link copied to clipboard
fun isRemoving(): Boolean
isResumed
Link copied to clipboard
fun isResumed(): Boolean
isStateSaved
Link copied to clipboard
fun isStateSaved(): Boolean
isVisible
Link copied to clipboard
fun isVisible(): Boolean
newInstance
Link copied to clipboard
open fun newInstance(@Nullable() initialCameraState: CameraState): MapFragment
Create new fragment and set initial camera state.
open fun newInstance(surfaceType: Int): MapFragment
Create new fragment and set the gl surface type for creating OpenGL surface.
open fun newInstance(@Nullable() mapSkins: List<String>): MapFragment
Create new fragment and set initial map skins.
open fun newInstance(surfaceType: Int, @Nullable() initialCameraState: CameraState, @Nullable() initialSkins: List<String>): MapFragment
Create new fragment and set the gl surface type for creating OpenGL surface and initial camera state.
onActivityCreated
Link copied to clipboard
open fun onActivityCreated(savedInstanceState: Bundle)
onActivityResult
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent)
onAttach
Link copied to clipboard
open fun onAttach(context: Context)
onAttachFragment
Link copied to clipboard
open fun onAttachFragment(childFragment: Fragment)
onConfigurationChanged
Link copied to clipboard
open fun onConfigurationChanged(newConfig: Configuration)
onContextItemSelected
Link copied to clipboard
open fun onContextItemSelected(item: MenuItem): Boolean
onCreate
Link copied to clipboard
open fun onCreate(savedInstanceState: Bundle)
open fun onCreate(@Nullable() savedInstanceState: Bundle)
onCreateAnimation
Link copied to clipboard
open fun onCreateAnimation(transit: Int, enter: Boolean, nextAnim: Int): Animation
onCreateAnimator
Link copied to clipboard
open fun onCreateAnimator(transit: Int, enter: Boolean, nextAnim: Int): Animator
onCreateContextMenu
Link copied to clipboard
open fun onCreateContextMenu(menu: ContextMenu, v: View, menuInfo: ContextMenu.ContextMenuInfo)
onCreateOptionsMenu
Link copied to clipboard
open fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater)
onCreateView
Link copied to clipboard
open fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View
open fun onCreateView(@NonNull() inflater: LayoutInflater, @Nullable() container: ViewGroup, @Nullable() savedInstanceState: Bundle): View
Called when this fragment is first attached to its Activity.
onDestroy
Link copied to clipboard
open fun onDestroy()
open fun onDestroy()
onDestroyOptionsMenu
Link copied to clipboard
open fun onDestroyOptionsMenu()
onDestroyView
Link copied to clipboard
open fun onDestroyView()
open fun onDestroyView()
Called when the view previously created by onCreateView(LayoutInflater, ViewGroup, Bundle) hasbeen detached from this fragment.
onDetach
Link copied to clipboard
open fun onDetach()
open fun onDetach()
onGetLayoutInflater
Link copied to clipboard
open fun onGetLayoutInflater(savedInstanceState: Bundle): LayoutInflater
onHiddenChanged
Link copied to clipboard
open fun onHiddenChanged(hidden: Boolean)
onInflate
Link copied to clipboard
open fun onInflate(context: Context, attrs: AttributeSet, savedInstanceState: Bundle)
open fun onInflate(context: Context, attrs: AttributeSet, savedInstanceState: Bundle)
onLowMemory
Link copied to clipboard
open fun onLowMemory()
onMultiWindowModeChanged
Link copied to clipboard
open fun onMultiWindowModeChanged(isInMultiWindowMode: Boolean)
onOptionsItemSelected
Link copied to clipboard
open fun onOptionsItemSelected(item: MenuItem): Boolean
onOptionsMenuClosed
Link copied to clipboard
open fun onOptionsMenuClosed(menu: Menu)
onPause
Link copied to clipboard
open fun onPause()
open fun onPause()
onPictureInPictureModeChanged
Link copied to clipboard
open fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean)
onPrepareOptionsMenu
Link copied to clipboard
open fun onPrepareOptionsMenu(menu: Menu)
onRequestPermissionsResult
Link copied to clipboard
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: Array<Int>)
onResume
Link copied to clipboard
open fun onResume()
open fun onResume()
onSaveInstanceState
Link copied to clipboard
open fun onSaveInstanceState(outState: Bundle)
open fun onSaveInstanceState(@NonNull() outState: Bundle)
onStart
Link copied to clipboard
open fun onStart()
open fun onStart()
onStop
Link copied to clipboard
open fun onStop()
open fun onStop()
onViewCreated
Link copied to clipboard
open fun onViewCreated(view: View, savedInstanceState: Bundle)
onViewStateRestored
Link copied to clipboard
open fun onViewStateRestored(savedInstanceState: Bundle)
open fun onViewStateRestored(@Nullable() savedInstanceState: Bundle)
postponeEnterTransition
Link copied to clipboard
open fun postponeEnterTransition()
registerForContextMenu
Link copied to clipboard
open fun registerForContextMenu(view: View)
requestPermissions
Link copied to clipboard
fun requestPermissions(permissions: Array<String>, requestCode: Int)
requireActivity
Link copied to clipboard
fun requireActivity(): FragmentActivity
requireContext
Link copied to clipboard
fun requireContext(): Context
requireFragmentManager
Link copied to clipboard
fun requireFragmentManager(): FragmentManager
requireHost
Link copied to clipboard
fun requireHost(): Any
setAllowEnterTransitionOverlap
Link copied to clipboard
open fun setAllowEnterTransitionOverlap(allow: Boolean)
setAllowReturnTransitionOverlap
Link copied to clipboard
open fun setAllowReturnTransitionOverlap(allow: Boolean)
setArguments
Link copied to clipboard
open fun setArguments(args: Bundle)
setEnterSharedElementCallback
Link copied to clipboard
open fun setEnterSharedElementCallback(callback: SharedElementCallback)
setEnterTransition
Link copied to clipboard
open fun setEnterTransition(transition: Any)
setExitSharedElementCallback
Link copied to clipboard
open fun setExitSharedElementCallback(callback: SharedElementCallback)
setExitTransition
Link copied to clipboard
open fun setExitTransition(transition: Any)
setHasOptionsMenu
Link copied to clipboard
open fun setHasOptionsMenu(hasMenu: Boolean)
setInitialSavedState
Link copied to clipboard
open fun setInitialSavedState(state: Fragment.SavedState)
setMenuVisibility
Link copied to clipboard
open fun setMenuVisibility(menuVisible: Boolean)
setReenterTransition
Link copied to clipboard
open fun setReenterTransition(transition: Any)
setRetainInstance
Link copied to clipboard
open fun setRetainInstance(retain: Boolean)
setReturnTransition
Link copied to clipboard
open fun setReturnTransition(transition: Any)
setSharedElementEnterTransition
Link copied to clipboard
open fun setSharedElementEnterTransition(transition: Any)
setSharedElementReturnTransition
Link copied to clipboard
open fun setSharedElementReturnTransition(transition: Any)
setTargetFragment
Link copied to clipboard
open fun setTargetFragment(fragment: Fragment, requestCode: Int)
setUserVisibleHint
Link copied to clipboard
open fun setUserVisibleHint(isVisibleToUser: Boolean)
shouldShowRequestPermissionRationale
Link copied to clipboard
open fun shouldShowRequestPermissionRationale(permission: String): Boolean
startActivity
Link copied to clipboard
open fun startActivity(intent: Intent)
startActivityForResult
Link copied to clipboard
open fun startActivityForResult(intent: Intent, requestCode: Int)
startIntentSenderForResult
Link copied to clipboard
open fun startIntentSenderForResult(intent: IntentSender, requestCode: Int, fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int, options: Bundle)
startPostponedEnterTransition
Link copied to clipboard
open fun startPostponedEnterTransition()
toString
Link copied to clipboard
open fun toString(): String
unregisterForContextMenu
Link copied to clipboard
open fun unregisterForContextMenu(view: View)