HyperTrackMapAdapter Class Method Reference

This class can be overridden to customise HyperTrackMapFragment interface. An instance of MapAdapter needs to be passed to the method HyperTrackMapFragment#setHTMapAdapter(HyperTrackMapAdapter) as parameter.

Other APIs in MapAdapter can be used to customise UI elements in HyperTrackMapFragment.

Summary

Method Description
getMapFragmentInitialState Implement this method to set initial state for Map View in HyperTrackMapFragment.
getMapPadding Implement this method to set default padding for Map View in HyperTrackMapFragment.
setMyLocationEnabled Implement this method to display Google Map's MyLocation Marker on the MapView.
setMyLocationButtonEnabled Implement this method to display Google Map's MyLocationButton on the MapView.
getResetBoundsButtonIcon Implement this method to provide a Custom Icon to the Reset bounds button.
showResetBoundsButton Implement this method to provide a toggle the visibility of reset bound button.
getBoundButtonTintColor Implement this method to set a tint color on reset bound button icon.
isRotateUserMarker Implement this method to Set or Unset rotation for the user Marker.
showUserMarkerForActionId Implement this method to Show/Hide the User Marker for an action.
showUserPlaceMarkerInfoWindowForActionID Implement this method to Show/Hide the User Place Marker Info Window.
showExpectedPlaceMarkerForActionID Implement this method to Show/Hide the Expected Place Marker.
showExpectedPlaceMarkerInfoWindowForActionID Implement this method to Show/Hide the Expected Place Marker Info Window.
showActionSummarySourceMarkerInfoWindowForActionID Implement this method to Show/Hide the Action Summary Source Place Marker Info Window.
showActionSummaryDestinationMarkerInfoWindowForActionID Implement this method to Show/Hide the Action Summary Destination Place Marker Info Window.
showActionSummary Implement this method to Show/Hide the Action Summary View (View having the Action Summary Info, Markers and Polyline).
showUserInfo Implement this method to Show the User Info View (View having the User Photo, Name and Call button).
showCallButtonForActionID Implement this method to Show the Call to User Button.
showTrafficLayer Implement this method to Show the Traffic Layer on hyperTrackMapFragment.
showTrailingPolyline Implement this method to Show the trailing polyline for a user marker
showExpectedPolyline Implement this method to Show the expected polyline for a user marker
showBackButton Implement this method to show the back button on the map fragment
getUserMarkerIconForActionID Implement this method to provide a Custom Icon to the user Marker according to the user activity.
getExpectedPlaceMarkerIconForActionID Implement this method to provide a Custom Icon to the Expected Place Marker.
getActionSummarySourceMarkerIconForActionID Implement this method to provide a custom icon to the Action Summary Source Marker.
getActionSummaryDestinationMarkerIconForActionID Implement this method to provide a Custom Icon to the Action Summary Destination Marker.
getUserPlaceMarkerViewForActionID Implement this method to provide a Custom View to the User Place Marker.
getExpectedPlaceMarkerViewForActionID Implement this method to provide a Custom View to the Expected Place Marker.
getUserPlaceMarkerInfoWindowViewForActionID Implement this method to provide a Custom View to the User Place Marker Info Window.
getUserPlaceMarkerErrorInfoWindowViewForActionID Implement this method to provide a Custom View to the User Place Marker Error Info Window.
getExpectedPlaceMarkerInfoWindowViewForActionID Implement this method to provide a Custom View to the Expected Place Marker Info Window.
getActionSummarySourceMarkerViewForActionID Implement this method to provide a Custom View to the Action Summary Source Place Marker.
getActionSummaryDestinationMarkerViewForActionID Implement this method to provide a Custom View to the Action Summary Destination Place Marker.
getActionSummarySourceMarkerInfoWindowViewForActionID Implement this method to provide a Custom View to the Action Summary Source Place Marker Info Window.
getActionSummaryDestinationMarkerInfoWindowViewForActionID Implement this method to provide a Custom View to the Action Summary Destination Place Marker Info Window.
getInfoWindowOfMarker Implement this method to provide a Custom View to the Custom Marker Info Window.
getActionStatusForActionID Implement this method to provide a custom action status for given Action Id.
getRoutePolylineColor Implement this method to provide a custom route polyline(trailing polyline) color.
getRoutePolylinePattern Implement this method to provide a custom pattern for route polyline(trailing polyline).
getPulseColor Implement this method to provide a custom color for user marker pulse radiation.

Public Methods

getMapFragmentInitialState

Implement this method to set initial state for Map View in HyperTrackMapFragment. This method requires an instance of CameraUpdate object which defines a camera move. This CameraUpdate instance is used to modify the map's initial camera state.

public CameraUpdate getMapFragmentInitialState(Context mContext)
Return
Instance of CameraUpdate defining the initial state for map's camera.
getMapPadding

Implement this method to set default padding for Map View in HyperTrackMapFragment. Pass an array of int representing (left, top, right, bottom) padding values. This methodadds these values to default map padding values.

public int[] getMapPadding(Context mContext)
Returns
Return an array of int representing (left, top, right, bottom) padding values in order.
setMyLocationEnabled

Implement this method to display Google Map's MyLocation Marker on the MapView.

public boolean setMyLocationEnabled(Context mContext)
Returns
flag to enable/disable GoogleMap's MyLocation Marker in the map view.

[info] Required To enable MyLocation Marker, ACCESS_FINE_LOCATION Permission must be granted to the application. Refer to Android docs on adding Location Permissions to the app.

setMyLocationButtonEnabled

Implement this method to display Google Map's MyLocationButton on the MapView.

public boolean setMyLocationButtonEnabled(Context mContext)

| Parameter | Description | | hyperTrackMapFragment | The fragment in which the Map view is placed. |

Returns
flag to enable/disable GoogleMap's MyLocationButton in the map view.

[info] Required To enable MyLocationButton, ACCESS_FINE_LOCATION Permission must be granted to the application. Refer to Android docs on adding Location Permissions to the app.

getResetBoundsButtonIcon

Implement this method to provide a Custom Icon to the Reset bounds button. It is suggested to use R.drawable.* to preserve cross functionality and avoid conflicts.

public int getResetBoundsButtonIcon(Context mContext)
Returns
ResourceId of the resource you want to set as Reset Bounds Button Icon.
showResetBoundsButton

Implement this method to toggle the visibility of Reset bounds button.

public int showResetBoundsButton(Context mContext)
Returns
Flag to show/hide Reset Bounds Button Icon.
getBoundButtonTintColor

Implement this method to set tint color of Reset bounds button.

public int getBoundButtonTintColor(Context mContext)
Returns
ResourceId of the resource you want to set as tint color to Reset Bounds Button Icon.
isRotateUserMarker

Implement this method to Set or Unset rotation for the User Marker.

public boolean rotateUserMarker(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the User Marker's rotation is being enabled/disabled.
Returns
Flag for the rotation of User Marker.
showUserMarkerForActionID

Implement this method to Show/Hide the User Marker for an action.

public boolean showUserMarkerForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the User Marker is being shown/hidden.
Returns
Flag to show/hide User Marker
showUserPlaceMarkerInfoWindowForActionID

Implement this method to Show/Hide the User Place Marker Info Window for an action.

public boolean showUserPlaceMarkerInfoWindowForActionID(String actionID)
Parameter Description
actionID The ActionID for which the User Marker Info Window is being shown/hidden.
Returns
Flag to show/hide User Marker Info Window
showExpectedPlaceMarkerForActionID

Implement this method to Show/Hide the Expected Place Marker.

public boolean showExpectedPlaceMarkerForActionID(String actionID)
Parameter Description
actionID The ActionID for which the Expected Place Marker is being shown/hidden.
Returns
Flag to show/hide Expected Place Marker.
showExpectedPlaceMarkerInfoWindowForActionID

Implement this method to Show/Hide the Expected Place Marker Info Window.

public boolean showExpectedPlaceMarkerInfoWindowForActionID( String actionID)
Parameter Description
actionID The ActionID for which the Expected Place Marker Info Window is being shown/hidden.
Returns
Flag to show/hide Expected Place Marker Info Window.
showActionSummarySourceMarkerInfoWindowForActionID

Implement this method to Show/Hide the Action Summary Source Place Marker Info Window.

public boolean showActionSummarySourceMarkerInfoWindowForActionID(String actionID)
Parameter Description
actionID The ActionID for which the Summary Source Place Marker Info Window is being shown/hidden.
Returns
Flag to show/hide Summary Source Place Marker Info Window.
showActionSummaryDestinationMarkerInfoWindowForActionID

Implement this method to Show/Hide the Action Summary Destination Place Marker Info Window.

public boolean showActionSummaryDestinationMarkerInfoWindowForActionID( String actionID)
Parameter Description
actionID The ActionID for which the Destination Source Place Marker Info Window is being shown/hidden.
Returns
Flag to show/hide Expected Place Marker.
showActionSummary

Implement this method to Show/Hide the Action Summary View (View having the Action Summary Info and Polyline).

public boolean showActionSummary()
Returns
Flag to show/hide Action Summary View.
showUserInfo

Implement this method to Show the User Info View (View having the User Photo, Name and Call button).

public boolean showUserInfo()
Returns
Flag to show/hide User Info view.
showCallButtonForActionID

Implement this method to Show the Call to User Button.

public boolean showCallButtonForActionID(Context mContext, String actionID)
Parameter Description
hyperTrackMapFragment The fragment in which the Call Button is placed.
actionID The ActionID for which the Call Button is being shown/hidden.
Returns
Flag to show/hide Call Button.
showTrafficLayer

Implement this method to Show the Traffic Layer on hyperTrackMapFragment.

public boolean showTrafficLayer(Context mContext);
Parameter Description
hyperTrackMapFragment The fragment in which the Traffic Layer is visible.
actionID The ActionID for which the Edit Expected Place Layout is being shown/hidden.
Returns
Flag to show/hide Traffic Layer on map.
showTrailingPolyline

Implement this method to Show the trailing polyline on hyperTrackMapFragment.

public boolean showTrailingPolyline();
Returns
Flag to show/hide trailing polyline on map.
showExpectedPolyline

Implement this method to show/hide the expected polyline on hyperTrackMapFragment.

public boolean showExpectedPolyline();
Returns
Flag to show/hide expected polyline on map.
showBackButton

Implement this method to Show/Hide the back button visibility on hyperTrackMapFragment.

public boolean showBackButton();
Returns
Flag to show/hide back button visibility on map.
getUserMarkerIconForActionID

Implement this method to provide a Custom Icon to the user Marker. NOTE: The icon should be oriented to the north so that bearing of Marker is perfect.

It is suggested to use R.drawable.* to preserve cross functionality and avoid conflicts.

public int getUserMarkerIconForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the User Marker's Icon is being provided.
Returns
ResourceId of the resource you want to set as UserMarker Icon.
getExpectedPlaceMarkerIconForActionID

Implement this method to provide a Custom Icon to the Expected Place Marker. NOTE: The Expected Place Marker is static and doesn't rotate in terms of bearing.

It is suggested to use R.drawable.* to preserve cross functionality and avoid conflicts.

public int getExpectedPlaceMarkerIconForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Expected Place Marker's Custom Icon is being provided.
Returns
ResourceId of the resource you want to set as Expected PlaceMarker Icon.
getActionSummarySourceMarkerIconForActionID

Implement this method to provide a Custom Icon to the Action Summary Source Marker. It is suggested to use R.drawable.* to preserve cross functionality and avoid conflicts.

public int getActionSummarySourceMarkerIconForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Action Summary Source Marker's Custom Icon is being provided.
Returns
ResourceId of the resource you want to set as Action Summary Source Marker.
getActionSummaryDestinationMarkerIconForActionID

Implement this method to provide a Custom Icon to the Action Destination Source Marker.

It is suggested to use R.drawable.* to preserve cross functionality and avoid conflicts.

public int getActionSummaryDestinationMarkerIconForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Action Summary Destination Marker's Custom Icon is being provided.
Returns
ResourceId of the resource you want to set as Action Summary Destination Marker.
getUserPlaceMarkerViewForActionID

Implement this method to provide a Custom View to the User Marker. NOTE: The icon should be oriented to the north so that bearing of Marker is perfect.

public View getUserPlaceMarkerViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the User Marker's Custom View is being provided.
Returns
View of the layout you want to set as UserMarker View.
getExpectedPlaceMarkerViewForActionID

Implement this method to provide a Custom View to the Expected Place Marker.

[info] Note The Expected Place Marker is static and doesn't rotate in terms of bearing. Also, with a Custom View, ETA time would not be displayed on the Marker.

public View getExpectedPlaceMarkerViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Expected Place Marker's Custom View is being provided.
Returns
View of the layout you want to set as Expected PlaceMarker View.
getUserPlaceMarkerInfoWindowViewForActionID

Implement this method to provide a Custom View to the User Place Marker Info Window.

public View getUserPlaceMarkerInfoWindowViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Expected Place Marker's Custom View is being provided.
Returns
View of the layout you want to set as User Place Marker Info Window.
getUserPlaceMarkerErrorInfoWindowViewForActionID

Implement this method to provide a Custom View to the User Place Marker Error Info Window.

public View getUserPlaceMarkerErrorInfoWindowViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Expected Place Marker's Error Info Window Custom View is being provided.
Returns
View of the layout you want to set as User Place Marker Error Info Window.
getExpectedPlaceMarkerInfoWindowViewForActionID

Implement this method to provide a Custom View to the Expected Place Marker Info Window.

public View getExpectedPlaceMarkerInfoWindowViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Expected Place Marker's Info Window Custom View is being provided.
Returns
View of the layout you want to set as Expected Place Marker Info Window.
getActionSummarySourceMarkerViewForActionID

Implement this method to provide a Custom View to the Action Summary Source Place Marker .

public View getActionSummarySourceMarkerViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Action Summary Source Place Marker's Custom View is being provided.
Returns
View of the layout you want to set as Action Summary Source Place Marker.
getActionSummaryDestinationMarkerViewForActionID

Implement this method to provide a Custom View to the Action Summary Destination Place Marker.

public View getActionSummaryDestinationMarkerViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Action Summary Destination Place Marker's Custom View is being provided.
Returns
View of the layout you want to set as Action Summary Destination Place Marker.
getActionSummarySourceMarkerInfoWindowViewForActionID

Implement this method to provide a Custom View to the Action Summary Source Place Marker Info Window.

public View getActionSummarySourceMarkerInfoWindowViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Action Summary Source Place Marker's Info Window Custom View is being provided.
Returns
View of the layout you want to set as Action Summary Source Place Marker Info Window.
getActionSummaryDestinationMarkerInfoWindowViewForActionID

Implement this method to provide a Custom View to the Action Summary Destination Place Marker Info Window.

public View getActionSummaryDestinationMarkerInfoWindowViewForActionID(Context mContext, String actionID)
Parameter Description
actionID The ActionID for which the Action Summary Destination Place Marker's Info Window Custom View is being provided.
Returns
View of the layout you want to set as Action Summary Destination Place Marker Info Window.
getInfoWindowOfMarker

Implement this method to provide a Custom View to the Custom Marker Info Window.

public View getInfoWindowOfMarker(Marker marker)
Parameter Description
marker Clicked marker
Returns
View of the layout you want to set as Marker Info Window.
getActionStatusForActionID

Implement this method to provide a custom action status for given Action Id.

public String getActionStatusForActionID(Context mContext,
String actionID, String actionStatus)
Parameter Description
hyperTrackMapFragment The fragment in which the Action is being tracking.
actionID The ActionID for which the custom Action status being provide.
actionStatus Default Action status
Returns
Custom Action Status
getRoutePolylineColor

Implement this method to set the color of trailing polyline when action is active.

public int getRoutePolylineColor();
Returns
ResourceId of the resource you want to set as Route(Trailing) Polyline. It is suggested to use R.color.* to preserve cross functionality and avoid conflicts.
getRoutePolylinePattern

Implement this method to provide a custom pattern for route polyline(trailing polyline). For more detail (refer)[https://developers.google.com/maps/documentation/android-sdk/shapes#stroke_pattern]

public  List<PatternItem> getRoutePolylinePattern()
Returns
List object
getPulseColor

Implement this method to provide a custom color for user marker pulse radiation.

public int getPulseColor();
Returns
ResourceId of the resource you want to set as Pulse Color . It is suggested to use R.color.* to preserve cross functionality and avoid conflicts.

results matching ""

    No results matching ""