Class 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 java.lang.String ARGUMENT_KEY_OPTIONS
      Deprecated.
       
      static java.lang.String STATE_MAP_VIEW
      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
      LegacyMapFragment()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void getMapAsync​(OnMapReadyCallback callback)
      Deprecated.
      비동기로 NaverMap 객체를 얻어옵니다.
      MapView getMapView()
      Deprecated.
      이 프래그먼트가 갖고 있는 MapView를 반환합니다.
      static LegacyMapFragment newInstance()
      Deprecated.
      새로운 인스턴스를 생성합니다.
      static LegacyMapFragment newInstance​(NaverMapOptions options)
      Deprecated.
      주어진 options를 사용해 새로운 인스턴스를 생성합니다.
      android.view.View onCreateView​(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
      Deprecated.
      void onDestroyView()
      Deprecated.
      void onInflate​(android.app.Activity activity, android.util.AttributeSet attrs, android.os.Bundle savedInstanceState)
      Deprecated.
      void onLowMemory()
      Deprecated.
      void onPause()
      Deprecated.
      void onResume()
      Deprecated.
      void onSaveInstanceState​(android.os.Bundle outState)
      Deprecated.
      void onStart()
      Deprecated.
      void onStop()
      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 Detail

      • ARGUMENT_KEY_OPTIONS

        public static final java.lang.String ARGUMENT_KEY_OPTIONS
        Deprecated.
        See Also:
        Constant Field Values
      • STATE_MAP_VIEW

        public static final java.lang.String STATE_MAP_VIEW
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LegacyMapFragment

        public LegacyMapFragment()
        Deprecated.
    • Method Detail

      • 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
      • getMapView

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