public class

ChooseUserPositionFragment

extends BaseFragment<VM extends BaseViewModel>
java.lang.Object
   ↳ Fragment
     ↳ com.mapsted.ui.base.BaseFragment<VM extends com.mapsted.ui.base.BaseViewModel>
       ↳ com.mapsted.ui.map.ChooseUserPositionFragment

Class Overview

When sdk does not have User position, this fragment can be used to allow the user to choose a position on map as his/her current location. After user sets his location, this fragment will set this user position to coreApi. The fragment's callback also receives this position selected.

Summary

Nested Classes
interface ChooseUserPositionFragment.CenterMercatorPin  
interface ChooseUserPositionFragment.Listener  
Fields
public static final String TAG
Public Constructors
ChooseUserPositionFragment()
Public Methods
void createViewModel()
static ChooseUserPositionFragment newInstance(boolean showAlertFirst)
void onAttach(Context context)
void onCreate(Bundle savedInstanceState)
View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
void onDestroy()
void onDestroyView()
void onStart()
void onStop()
void onViewCreated(View view, Bundle savedInstanceState)
void setCallback(ChooseUserPositionFragment.Listener mercatorChosenCallback)
[Expand]
Inherited Methods
From class com.mapsted.ui.base.BaseFragment
From class java.lang.Object

Fields

public static final String TAG

Public Constructors

public ChooseUserPositionFragment ()

Public Methods

public void createViewModel ()

public static ChooseUserPositionFragment newInstance (boolean showAlertFirst)

public void onAttach (Context context)

public void onCreate (Bundle savedInstanceState)

public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

public void onDestroy ()

public void onDestroyView ()

public void onStart ()

public void onStop ()

public void onViewCreated (View view, Bundle savedInstanceState)

public void setCallback (ChooseUserPositionFragment.Listener mercatorChosenCallback)