com.tencent.tencentmap.mapsdk.maps

## 类 SupportMapFragment

- java.lang.Object
- - android.support.v4.app.Fragment
  - - com.tencent.tencentmap.mapsdk.maps.SupportMapFragment

- 所有已实现的接口:
    android.arch.lifecycle.LifecycleOwner, android.arch.lifecycle.ViewModelStoreOwner, android.content.ComponentCallbacks, android.view.View.OnCreateContextMenuListener

      public class SupportMapFragment
      extends android.support.v4.app.Fragment

  含有 `MapView` 的Fragment, 由于 API Level要求在 12 以下的应用中。

  如果你的应用要求在 API Level 12以上，用 `MapFragment` 代替。

  关于Fragment,参见 Android Fragment

- - ### 嵌套类概要

    - ### 从类继承的嵌套类/接口 android.support.v4.app.Fragment

      `android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState`

  - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected MapView` | `mapV`

  - ### 构造器概要

    构造器
    构造器和说明
    `SupportMapFragment()`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `TencentMap` | `getMap()` 获取当前Fragment的 `MapView` 关联的 `TencentMap`对象。
    `protected void` | `initMap(android.content.Context context)`
    `static SupportMapFragment` | `newInstance(android.content.Context mContex)` 创建一个新的SupportMapFragment
    `protected MapView` | `onCreateMapView(android.content.Context context, TencentMapOptions options)`
    `android.view.View` | `onCreateView(android.view.LayoutInflater layoutinflater, android.view.ViewGroup viewgroup, android.os.Bundle bundle)`
    `void` | `onDestroy()`
    `void` | `onDestroyView()`
    `void` | `onLowMemory()`
    `void` | `onPause()`
    `void` | `onResume()`
    `void` | `onSaveInstanceState(android.os.Bundle bundle)`
    `void` | `onStart()`
    `void` | `onStop()`
    `void` | `setArguments(android.os.Bundle bundle)`
    `void` | `setOnTop(boolean isOnTop)` 参见 `MapView.setOnTop(boolean)`

    - ### 从类继承的方法 android.support.v4.app.Fragment

      `dump, equals, getActivity, getAllowEnterTransitionOverlap, getAllowReturnTransitionOverlap, getArguments, getChildFragmentManager, getContext, getEnterTransition, getExitTransition, getFragmentManager, getHost, getId, getLayoutInflater, getLayoutInflater, getLifecycle, getLoaderManager, getParentFragment, getReenterTransition, getResources, getRetainInstance, getReturnTransition, getSharedElementEnterTransition, getSharedElementReturnTransition, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, getViewLifecycleOwner, getViewLifecycleOwnerLiveData, getViewModelStore, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isStateSaved, isVisible, onActivityCreated, onActivityResult, onAttach, onAttach, onAttachFragment, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateAnimator, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onGetLayoutInflater, onHiddenChanged, onInflate, onInflate, onMultiWindowModeChanged, onOptionsItemSelected, onOptionsMenuClosed, onPictureInPictureModeChanged, onPrepareOptionsMenu, onRequestPermissionsResult, onViewCreated, onViewStateRestored, postponeEnterTransition, registerForContextMenu, requestPermissions, requireActivity, requireContext, requireFragmentManager, requireHost, setAllowEnterTransitionOverlap, setAllowReturnTransitionOverlap, setEnterSharedElementCallback, setEnterTransition, setExitSharedElementCallback, setExitTransition, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setReenterTransition, setRetainInstance, setReturnTransition, setSharedElementEnterTransition, setSharedElementReturnTransition, setTargetFragment, setUserVisibleHint, shouldShowRequestPermissionRationale, startActivity, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResult, startPostponedEnterTransition, toString, unregisterForContextMenu`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 字段详细资料

    - #### mapV

          protected MapView mapV

  - ### 构造器详细资料

    - #### SupportMapFragment

          public SupportMapFragment()

  - ### 方法详细资料

    - #### newInstance

          public static SupportMapFragment newInstance(android.content.Context mContex)

      创建一个新的SupportMapFragment
      参数:
        `mContex` - 要创建的Context， 参见 Android Context
      返回:

    - #### initMap

          protected void initMap(android.content.Context context)

    - #### getMap

          public TencentMap getMap()

      获取当前Fragment的 `MapView` 关联的 `TencentMap`对象。
      返回:

    - #### onCreateView

          public android.view.View onCreateView(android.view.LayoutInflater layoutinflater,
                                                android.view.ViewGroup viewgroup,
                                                android.os.Bundle bundle)

      覆盖:
        `onCreateView` 在类中 `android.support.v4.app.Fragment`

    - #### onCreateMapView

          protected MapView onCreateMapView(android.content.Context context,
                                            TencentMapOptions options)

    - #### onResume

          public void onResume()

      覆盖:
        `onResume` 在类中 `android.support.v4.app.Fragment`

    - #### onPause

          public void onPause()

      覆盖:
        `onPause` 在类中 `android.support.v4.app.Fragment`

    - #### onDestroyView

          public void onDestroyView()

      覆盖:
        `onDestroyView` 在类中 `android.support.v4.app.Fragment`

    - #### onDestroy

          public void onDestroy()

      覆盖:
        `onDestroy` 在类中 `android.support.v4.app.Fragment`

    - #### onStart

          public void onStart()

      覆盖:
        `onStart` 在类中 `android.support.v4.app.Fragment`

    - #### onStop

          public void onStop()

      覆盖:
        `onStop` 在类中 `android.support.v4.app.Fragment`

    - #### onLowMemory

          public void onLowMemory()

      指定者:
        `onLowMemory` 在接口中 `android.content.ComponentCallbacks`
      覆盖:
        `onLowMemory` 在类中 `android.support.v4.app.Fragment`

    - #### onSaveInstanceState

          public void onSaveInstanceState(android.os.Bundle bundle)

      覆盖:
        `onSaveInstanceState` 在类中 `android.support.v4.app.Fragment`

    - #### setArguments

          public void setArguments(android.os.Bundle bundle)

      覆盖:
        `setArguments` 在类中 `android.support.v4.app.Fragment`

    - #### setOnTop

          public void setOnTop(boolean isOnTop)

      参见 `MapView.setOnTop(boolean)`
      参数:
        `isOnTop` -