Class LegacyMapFragment

java.lang.Object
android.app.Fragment
com.naver.maps.map.LegacyMapFragment
All Implemented Interfaces:
android.content.ComponentCallbacks, android.content.ComponentCallbacks2, android.view.View.OnCreateContextMenuListener

@Deprecated @UiThread public class LegacyMapFragment extends android.app.Fragment
Deprecated.
MapFragment를 사용하세요.
지도를 출력하는 프래그먼트 클래스. 화면에 이 프래그먼트를 추가하고 getMapAsync(OnMapReadyCallback)를 호출해 콜백을 등록하면 NaverMap 인스턴스를 얻을 수 있습니다. MapFragment와 달리 안드로이드 플랫폼의 프래그먼트를 사용합니다.
  • Nested Class Summary

    Nested classes/interfaces inherited from class android.app.Fragment

    android.app.Fragment.InstantiationException, android.app.Fragment.SavedState
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Deprecated.
     
    static final String
    Deprecated.
     

    Fields inherited from interface android.content.ComponentCallbacks2

    TRIM_MEMORY_BACKGROUND, TRIM_MEMORY_COMPLETE, TRIM_MEMORY_MODERATE, TRIM_MEMORY_RUNNING_CRITICAL, TRIM_MEMORY_RUNNING_LOW, TRIM_MEMORY_RUNNING_MODERATE, TRIM_MEMORY_UI_HIDDEN
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    비동기로 NaverMap 객체를 얻어옵니다.
    Deprecated.
    이 프래그먼트가 갖고 있는 MapView를 반환합니다.
    Deprecated.
    새로운 인스턴스를 생성합니다.
    Deprecated.
    주어진 options를 사용해 새로운 인스턴스를 생성합니다.
    android.view.View
    onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
    Deprecated.
    void
    Deprecated.
    void
    onInflate(android.app.Activity activity, android.util.AttributeSet attrs, android.os.Bundle savedInstanceState)
    Deprecated.
    void
    Deprecated.
    void
    Deprecated.
    void
    Deprecated.
    void
    onSaveInstanceState(android.os.Bundle outState)
    Deprecated.
    void
    Deprecated.
    void
    Deprecated.
    void
    onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)
    Deprecated.

    Methods inherited from class android.app.Fragment

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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • LegacyMapFragment

      public LegacyMapFragment()
      Deprecated.
  • Method Details

    • newInstance

      public static LegacyMapFragment newInstance()
      Deprecated.
      새로운 인스턴스를 생성합니다.
      Returns:
      LegacyMapFragment 인스턴스.
    • newInstance

      public static LegacyMapFragment newInstance(@Nullable NaverMapOptions options)
      Deprecated.
      주어진 options를 사용해 새로운 인스턴스를 생성합니다.
      Parameters:
      options - 지도 옵션.
      Returns:
      LegacyMapFragment 인스턴스.
    • onInflate

      public void onInflate(android.app.Activity activity, android.util.AttributeSet attrs, android.os.Bundle savedInstanceState)
      Deprecated.
      Overrides:
      onInflate in class android.app.Fragment
    • onCreateView

      public android.view.View onCreateView(@NonNull android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
      Deprecated.
      Overrides:
      onCreateView in class android.app.Fragment
    • onViewCreated

      public void onViewCreated(@NonNull android.view.View view, android.os.Bundle savedInstanceState)
      Deprecated.
      Overrides:
      onViewCreated in class android.app.Fragment
    • onStart

      public void onStart()
      Deprecated.
      Overrides:
      onStart in class android.app.Fragment
    • onResume

      public void onResume()
      Deprecated.
      Overrides:
      onResume in class android.app.Fragment
    • onPause

      public void onPause()
      Deprecated.
      Overrides:
      onPause in class android.app.Fragment
    • onSaveInstanceState

      public void onSaveInstanceState(@NonNull android.os.Bundle outState)
      Deprecated.
      Overrides:
      onSaveInstanceState in class android.app.Fragment
    • onStop

      public void onStop()
      Deprecated.
      Overrides:
      onStop in class android.app.Fragment
    • onDestroyView

      public void onDestroyView()
      Deprecated.
      Overrides:
      onDestroyView in class android.app.Fragment
    • onLowMemory

      public void onLowMemory()
      Deprecated.
      Specified by:
      onLowMemory in interface android.content.ComponentCallbacks
      Overrides:
      onLowMemory in class android.app.Fragment
    • getMapAsync

      public void getMapAsync(@NonNull OnMapReadyCallback callback)
      Deprecated.
      비동기로 NaverMap 객체를 얻어옵니다. NaverMap 객체가 준비되면 callbackOnMapReadyCallback.onMapReady(NaverMap)가 호출됩니다.
      Parameters:
      callback - 콜백.
    • getMapView

      @Nullable public MapView getMapView()
      Deprecated.
      이 프래그먼트가 갖고 있는 MapView를 반환합니다. onCreateView()가 호출되기 전, onDestroyView()가 호출된 후에는 null이 반환됩니다.
      Returns:
      MapView 인스턴스.